How to make a /afklist command?
#3

Something like this...
pawn Код:
command(afklist, playerid, params)
{
new pString[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];

for(new pID = 0; pID < MAX_PLAYERS; pID ++)
{
if(IsPlayerConnected(pID)
{
if(IsPlayerAFK[pID] == 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Players on AFK");
GetPlayerName(playerid, pName, sizeof(pName));
format(pString, sizeof(pString), "%s" pName);
SendClientMessage(playerid, 0xFFFFFFFF, pString);
}
}
}
return 1;
}
Reply


Messages In This Thread
How to make a /afklist command? - by SomebodyAndMe - 13.12.2011, 17:55
Re: How to make a /afklist command? - by Ballu Miaa - 13.12.2011, 18:19
Re: How to make a /afklist command? - by eDz0r - 13.12.2011, 18:27
Re: How to make a /afklist command? - by Rob_Maate - 13.12.2011, 20:29
Re: How to make a /afklist command? - by Ballu Miaa - 14.12.2011, 01:37
Re: How to make a /afklist command? - by SomebodyAndMe - 14.12.2011, 06:13

Forum Jump:


Users browsing this thread: 1 Guest(s)