How to create /admins
#6

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
}
Reply


Messages In This Thread
How to create /admins - by HighPitchedVoice - 18.03.2012, 11:29
Re: How to create /admins - by Shabi RoxX - 18.03.2012, 11:30
Re: How to create /admins - by niyaz - 18.03.2012, 11:31
Re: How to create /admins - by Laronic - 18.03.2012, 11:33
Re: How to create /admins - by Spooky - 18.03.2012, 11:36
Re: How to create /admins - by James Coral - 18.03.2012, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)