26.05.2012, 08:22
(
Last edited by Kathleen; 26/05/2012 at 08:23 AM.
Reason: Adding Text
)
When you stand 15 seconds on the same place you stand in the /listafk
This AFK List is based on Godfather, LS RP, NGG
This AFK List is based on Godfather, LS RP, NGG
pawn Code:
CMD:listafk(playerid, params[]) {
if(PlayerInfo[playerid][pAdmin] >= 2) {
new
szMessage[36 + MAX_PLAYER_NAME];
SendClientMessageEx(playerid,COLOR_WHITE,"--[AFK PLAYERS]--");
foreach(Player, i) if(playerAFK[i] != 0 && playerAFKTime[i] > 15) {
format(szMessage,sizeof(szMessage),"* %s (ID %d), AFK for %d minutes.", GetPlayerNameEx(i), i, playerAFKTime[i] / 15);
if(PlayerInfo[i][pAdmin] >= 2) SendClientMessageEx(playerid,COLOR_RED,szMessage);
else SendClientMessageEx(playerid,COLOR_GREY,szMessage);
}
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use this command.");
return 1;
}