PHP Code:
//OnPlayerSpawn
new hour,minute,seconds,year,day,month;
gettime(hour,minute,seconds);
getdate(day,month,year);
new NewLog[100+1000];
format(NewLog,sizeof(NewLog),"%s - Level: %d (Last logged in %d/%d/%d %d:%d:%d)",GetName(playerid), pData[playerid][Admin], year, month, day, hour, minute, seconds);
LogInLog(NewLog);
ForEach(i, MAX_PLAYERS)
{
if(pData[playerid][Admin] >= 3)
{
SendClientMessage(i, 0x00FF0054, NewLog);
}
}