09.01.2010, 18:05
Код:
if (strcmp("/afklist", cmdtext, true, 10) == 0) { new PName[MAX_PLAYER_NAME]; SendClientMessage(playerid, 0xAA3333AA, "Afk Players:"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(AFK[playerid] == 1) { GetPlayerName(playerid, PName, sizeof(PName)); format(string, 256, "Player: %s", PName); SendClientMessage(playerid, 0xFFFFFFAA, string); } } } return 1; }