10.04.2012, 18:05
(
Last edited by Allu; 11/04/2012 at 01:01 PM.
)
pawn Code:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "| Admins Online: |");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1337)
{
if(PlayerInfo[i][pAdmin] == 1337) { tekst = "{13C6E9}Omanik"; }
else if(PlayerInfo[i][pAdmin] == 3) { tekst = "{369BAF}Administraator"; }
else if(PlayerInfo[i][pAdmin] == 2) { tekst = "{3A8A9A}Moderaator"; }
else if(PlayerInfo[i][pAdmin] == 1) { tekst = "{2AC72D}Abistaja"; }
}
GetPlayerName(i, sendername, sizeof(sendername));
if(PlayerInfo[i][pDuty] == 0)
{
format(string, sizeof(string), "%s: {FFFFFF}%s", tekst, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
else if(PlayerInfo[i][pDuty] == 1)
{
format(string, sizeof(string), "%s: {FFFFFF}%s {33AA33}- Tццl", tekst, sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return 1;
}