I have a problem with the admin ranks
#5

use an array and put it on top of script

PHP код:
new const gAdminRanks[MAX_ADMINRANKS][] =
{
    {
"Player"}, // if level = 0
    
{"Junior Admin"}, // if level = 1
    
{"Basic Admin"}, // if level = 2
    
{"Advanced Admin"}, // if level = 3
    
{"Senior Admin"}, // if level = 4
    
{"Head Admin"}, // if level = 5
    
{"Executive Admin"// if level = 6
}; 
then in script

PHP код:
SendClientMessage(playeridCOLOR_WHITE"{FFFFFF}Administrators Online");
foreach(new 
Player)
{
    if(
pInfo[i][pAdmin])
    {
        
format(stringsizeof(string), "%s %s{%d}"gAdminRankspInfo[i][pAdmin] ], NameL(i),playerid);
        
SendClientMessage(playeridCOLOR_WHITEstring);
    }

Reply


Messages In This Thread
I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:45
Re: I have a problem with the admin ranks - by Gameluner - 17.12.2017, 14:53
Re: I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:54
Re: I have a problem with the admin ranks - by Gameluner - 17.12.2017, 14:55
Re: I have a problem with the admin ranks - by xMoBi - 17.12.2017, 14:56
Re: I have a problem with the admin ranks - by Barnwell - 17.12.2017, 14:59

Forum Jump:


Users browsing this thread: 1 Guest(s)