01.06.2011, 09:21
pawn Code:
if(strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, COLOR_RED, " ** Admins online: **");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 100, "%i: %s ( %i ) Duty: %i", PlayerInfo[i][pAdmin], sendername, i, PlayerInfo[i][pAOnDuty]);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
}
}
return 1;
}