17.09.2012, 17:59
http://www.******.ba/search?q=samp+o...iw=815&bih=653
EDIT: I don't want to be rude!
Change pInfo[i][Adminlevel] to your admin variable!
EDIT: I don't want to be rude!
pawn Code:
COMMAND:admins(playerid,params[])
{
SendClientMessage(playerid, ORANGE, " ");
SendClientMessage(playerid, ORANGE, "----' Online Admins '----");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][Adminlevel] >= 1 || pInfo[i][Adminlevel] <= 5)
{
new admtext[64], id[MAX_PLAYER_NAME], string[256];
if(pInfo[i][Adminlevel] == 1) {admtext = "Level: 1 (Administrator)";}
else if(pInfo[i][Adminlevel] == 2) {admtext = "Level: 2, (Master Administrator)";}
else if(pInfo[i][Adminlevel] == 3) {admtext = "Level: 3, (Lead Moderator)";}
else if(pInfo[i][Adminlevel] == 4) {admtext = "Level: 4, (Master Moderator)";}
else if(pInfo[i][Adminlevel] == 5) {admtext = "Level: 5, (Owner)";}
else if(IsPlayerAdmin(i)) {admtext = "RCON Administrator";}
else {admtext = "No admins online";}
GetPlayerName(i, id, sizeof(id));
format(string, 256, "%s ( %s )", id, admtext);
SendClientMessage(playerid, GREEN, string);
}
}
}
return 1;
}