27.05.2011, 07:03
Here is the code from the script
Код:
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 0)
{
SendClientMessage(playerid, COLOR_WHITE, "Admins Online:");
//foreach(Player, i)
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%d Administrator: %s",PlayerInfo[i][pAdmin],giveplayer);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
}
}
return 1;

