26.06.2015, 10:01
Here:
PHP код:
COMMAND:admin(playerid,params[])
{
new id[MAX_PLAYER_NAME], string[128];
SendClientMessage(playerid, 0xFFAE00FF, " ");
SendClientMessage(playerid, 0xFFAE00FF, "----' Online Admins '----");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i, id, sizeof(id));
format(string, sizeof(string), "%s (%d) ", id, i,);
SendClientMessage(playerid, 0x00FF00FF, string);
}
else if(!IsPlayerConnected(i) && PlayerInfo[i][pAdmin] <= 0)
{
SendClientMessage(playerid, 0xFFAE00FF, "There Are No Admins Online");
}
}
}
return 1;
}