21.10.2011, 20:44
hey i made /afk and /back command...now im making /afklist command to check which players are afk
i made that:
but that will show only for one player(you), am i right?....how can i fix this?...
i made that:
PHP код:
COMMAND:afklist(playerid,params[])
{
new Name[24], pName[MAX_PLAYER_NAME];
{
if (PlayerIsAFK[playerid] == 1)
{
GetPlayerName(playerid,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;
}