03.10.2011, 02:33
pawn Код:
CMD:enevento(playerid,params[])
{
new bool:First2 = false;
new PlayerName2;
new id;
GetPlayerName(id,PlayerName2,MAX_PLAYER_NAME);
new Count, string[128];
for(id = 0; id < MAX_PLAYERS; id++)
{
if(IsPlayerConnected(id))
{
if(GetPlayerVirtualWorld(id) == 9)
{
Count++;
if(!First2)
{
format(string, sizeof(string), "(ID: %d) (Name: %s)", id, PlayerName2);
First2 = true;
}
else format(string,sizeof(string),"%s, (ID: %d) (Name: %s)",string, id, PlayerName2);
}
}
}
}
if(Count == 0)
return SendClientMessage(playerid,COLOR_WHITE,"No hay personas en el evento!");
else return SendClientMessage(playerid,COLOR_WHITE,string);
}
else return;
}