12.07.2011, 13:25
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/admins", true) == 0)
{
new bool:found, str[30];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
GetPlayerName(i, str, 24);
format(str, sizeof str, " » %s", str);
SendClientMessage(playerid, 0xFFFF00FF, str);
found = true;
}
}
if(!found) { SendClientMessage( playerid, "No administrators online." ); }
return 1;
}
return 0;
}