Please help?
#5

PHP код:
CMD:admins(playeridparams[])
{
    new 
string[1000];
    new 
count 0;
    if(
IsPlayerConnected(playerid))
    {
        
sendername[MAX_PLAYER_NAME];
        
SendClientMessage(playeridCOLOR_TEAL"----Admins Online----------------------------------------------------");
         foreach(
Playeri)
        {
            if(
IsPlayerConnected(i))
            {
                if(
playerVariables[i][pAdminLevel] == 1)
                {
                           
format(stringsizeof(string), "(%d) %s - admin level 1"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 2)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - admin level 2"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - admin level 2"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 3)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - admin level 3"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - admin level 3"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 4)
                {
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - admin level 4"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - admin level 4"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 5)
                {
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - admin level 5"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - admin level 5"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 6)
                {
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - admin level 6"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - admin level 6"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
                if(
playerVariables[playerid][pAdminLevel] == 7)
                {
                    
GetPlayerName(isendernamesizeof(sendername));
                    if(
AdminDuty[i] == 0)
                    {
                        
format(stringsizeof(string), "(%d) %s - Founder"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                    else
                    {
                           
format(stringsizeof(string), "(%d) %s - Founder"isendername);
                        
SendClientMessage(playeridCOLOR_WHITEstring);
                        
count++;
                    }
                }
            }
         }
27320    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,"----------------------------------------------------------------------------");
        }
27327        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,"----------------------------------------------------------------------------");
        }
27334        else if (count >= 2)
        {
27336       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;

Try This,, Some furture Please reply !
If Succes +rep for me
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: 1 Guest(s)