Please help?
#8

Hello!

Take this version, it should work:
PHP код:
CMD:admins(playerid,params[])
{
    new 
count,string[145],sendername[MAX_PLAYER_NAME];
    
SendClientMessage(playeridCOLOR_TEAL"----Admins Online----------------------------------------------------");
    foreach(
Player,i)
    {
        if(
IsPlayerConnected(i))
        {
            if(
playerVariables[i][pAdminLevel] == 1)
            {
                
format(string,sizeof string,"(%d) %s - admin level 1",i,sendername);
                
SendClientMessage(playerid,COLOR_WHITE,string);
                
count ++;
            }
            else if(
playerVariables[i][pAdminLevel] == 2)
            {
                
format(string,sizeof string,"(%d) %s - admin level 2",i,sendername);
                
SendClientMessage(playerid,COLOR_WHITE,string);
                
count ++;
            }
            else if(
playerVariables[i][pAdminLevel] == 3)
            {
                
format(string,sizeof string,"(%d) %s - admin level 3",i,sendername);
                
SendClientMessage(playerid,COLOR_WHITE,string);
                
count ++;
            }
            else if(
playerVariables[i][pAdminLevel] == 4)
            {
                
format(stringsizeof(string), "(%d) %s - admin level 4"isendername);
                  
SendClientMessage(playeridCOLOR_WHITEstring);
                
count++;
            }
            else if(
playerVariables[i][pAdminLevel] == 5)
            {
                
format(stringsizeof(string), "(%d) %s - admin level 5"isendername);
                  
SendClientMessage(playeridCOLOR_WHITEstring);
                
count++;
            }
            else if(
playerVariables[i][pAdminLevel] == 6)
            {
                
format(stringsizeof(string), "(%d) %s - admin level 6"isendername);
                  
SendClientMessage(playeridCOLOR_WHITEstring);
                  
count++;
            }
            else if(
playerVariables[i][pAdminLevel] == 7)
            {
                
format(stringsizeof(string), "(%d) %s - admin level 7"isendername);
                  
SendClientMessage(playeridCOLOR_WHITEstring);
                  
count++;
            }
        }
    }
    if(
count == 0)
    {
        
SendClientMessage(playeridCOLOR_IN2,"* No admins online on the server.");
         
SendClientMessage(playeridCOLOR_TEAL,"----------------------------------------------------------------------------");
          
SendClientMessage(playeridCOLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
           
SendClientMessage(playeridCOLOR_TEAL,"----------------------------------------------------------------------------");
    }
    else if(
count == 1)
    {
        
SendClientMessage(playeridCOLOR_IN2,"* Now are 1 admin online.");
         
SendClientMessage(playeridCOLOR_TEAL,"----------------------------------------------------------------------------");
          
SendClientMessage(playeridCOLOR_WHITE,"Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
           
SendClientMessage(playeridCOLOR_TEAL,"----------------------------------------------------------------------------");
    }
    else if(
count >= 2)
    {
        
format(stringsizeof(string), "* There are now %d admins online."count);
         
SCM(playeridCOLOR_IN2string);
          
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 
1;

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)