Please help?
#10

Better do something like this

PHP код:
stock GetAdminLevel(playerid) {
    new 
Rank[24];
    switch(
playerVariables[playerid][pAdminLevel]) {
        case 
1"Level 1"//change to what admin rank u want to call it
        
case 2"Level 2";
        case 
3"Level 3";
        case 
4"Level 4";
        case 
5"Level 5";
        case 
6"Level 6";
        case 
7"Level 7";
    }
    return 
Rank;
}
CMD:admins(playerid,params[])
{
    new 
string[128],sendername[MAX_PLAYER_NAME],count;
    foreach(
Player,i) {
        if(
IsPlayerConnected(i)) {
            
format(string,sizeof(string),"Name: %s -- Rank: %s",GetAdminLevel(i),sendername);
            
count++;
            
SendClientMessage(playerid,COLOR_WHITE,string);
        }
    }
    if(
count == 0) return SendClientMessage(playerid,COLOR_RED,"There are no admins online");
    else if(
count >= 1) {
        
format(string,sizeof(string),"There are %i admins online",count);
        
SendClientMessage(playerid,COLOR_RED,string);
        
SendClientMessage(playeridCOLOR_TEAL"----------------------------------------------------------------------------");
          
SendClientMessage(playeridCOLOR_WHITE"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
        
SendClientMessage(playeridCOLOR_TEAL"----------------------------------------------------------------------------");
    }
    return 
true;

UNTESTED
Reply


Messages In This Thread
Please help? - by GabiXx - 20.12.2015, 21:49
Re: Please help? - by N0FeaR - 20.12.2015, 22:16
Re: Please help? - by GabiXx - 20.12.2015, 22:28
Re: Please help? - by SilverStand - 21.12.2015, 01:53
Re: Please help? - by Amunra - 21.12.2015, 02:13
Re: Please help? - by jlalt - 21.12.2015, 03:03
Re: Please help? - by GabiXx - 21.12.2015, 16:05
Re: Please help? - by Mencent - 21.12.2015, 16:31
Re: Please help? - by GabiXx - 21.12.2015, 19:04
Re: Please help? - by TwinkiDaBoss - 21.12.2015, 21:35

Forum Jump:


Users browsing this thread: 2 Guest(s)