Quote:
Originally Posted by AeroBlast
pawn Код:
COMMAND:afklist(playerid,params[]) { new Name[24], pName[MAX_PLAYER_NAME]; for(new i=0;i<MAX_PLAYERS;i++) { if (PlayerIsAFK[i] == 1) { GetPlayerName(i,pName,MAX_PLAYER_NAME); format(Name, sizeof(Name), "%s\r\n", pName); SendClientMessage(playerid,COLOR_BLUE, "AFK LIST:"); SendClientMessage(playerid,COLOR_YELLOW, Name); } else { SendClientMessage(playerid,COLOR_YELLOW, "No one is AFK!"); } } return 1; }
I've got no idea if this works.
EDIT: late
|
Doesnt works...and when i type /afklist i get about 50times writen No one is AFK!