18.03.2012, 12:11
i useing that system
pawn Код:
dcmd_admins(playerid, params[])
{
#pragma unused params
new pname[MAX_PLAYER_NAME];
new string[128];
new admins = 0;
new admtext[64];
SendClientMessage(playerid,COLOR_BLUE,"-----------------------Administrators Online-------------------------");
for(new i = 0; i < MAX_PLAYERS; i++){
if (IsPlayerConnected(i)){
if(AdminLevel[playerid] >= 1) { admtext = "Moderator"; }
if(AdminLevel[playerid] >= 2) { admtext = "Global Moderator"; }
if(AdminLevel[playerid] >= 3) { admtext = "Administrator"; }
if(AdminLevel[playerid] >= 4) { admtext = "Operative Administrator"; }
if(AdminLevel[playerid] >= 5) { admtext = "Head Administrator"; }
if(AdminLevel[playerid] >= 6) { admtext = "Junior Administrator"; }
if(AdminLevel[playerid] >= 1336) { admtext = "Tester/Developer"; }
if(AdminLevel[playerid] >= 1337) { admtext = "Trusted Admin"; }
if(AdminLevel[playerid] >= 1338) { admtext = "Server Owner"; }
GetPlayerName(i, pname, 24);
format(string,sizeof string,"%s - %s", pname,admtext);
SendClientMessage(playerid,-1,string);
admins++;
}
}
if(admins == 0){
SendClientMessage(playerid, COLOR_WHITE, "Currently there are no admins online.");
}
return 1;//This Command is for SAN FIERRO COPS AND ROBBERS
}