02.10.2013, 16:59
pawn Код:
dcmd_players(playerid,params[])
{
#pragma unused params
new string[75], count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
if(count != 2) format(string, sizeof(string), "%s%s,", string, PlayerName(i),i);
else format(string, sizeof(string), "%s%s", string, PlayerName(i),i);
count++;
}
if(count == 3)
{
SendClientMessage(playerid, 0xFFF84FFFF, string);
count = 0;
}
}
return 1;
}