06.04.2010, 13:39
i m using this i want to make my self head admin and i want to make 4 level will be lead admin and 3 lvl will be admin and level 2 and server moderator can some one help with this pleasee
appreciate.
appreciate.
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new count = 0;
SendClientMessage(playerid, COLOR_RED, "<|> Admins Online <|>");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid, COLOR_WHITE, "(INFO) Currently no administrators");
}
SendClientMessage(playerid, COLOR_RED, "<|> Admins Online <|>");
}
return 1;