28.03.2009, 04:27
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid,GREEN,"Online Admins:");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 0)
{
GetPlayerName(i,string,sizeof(string));
format(string,sizeof(string),"- %s (%d), Level: %d",string,i,PlayerInfo[i][pAdmin]);//name,id,level
SendClientMessage(playerid,PURPLE,string);
}
}
return 1;
}