15.08.2012, 13:57
pawn Код:
CMD:playerlist(playerid, params[])
{
new VW, Score, name[MAX_PLAYER_NAME], string[1024];
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(playerid))
{
VW = GetPlayerVirtualWorld(i);
Score = GetPlayerScore(i);
GetPlayerName(i, name, sizeof(name));
format(string, sizeof(string), "%s | %d | %d", name, VW, Score);
SendClientMessage(playerid, -1, string);
}
}
return 1;
}