Integrate 2 Commands [Reps]
#5

Quote:
Originally Posted by DarkZeroX
Посмотреть сообщение
PHP код:
CMD:admins(playerid,params[])
{
    new 
bool:First2 false;
    new 
Counti;
    new 
string[1024];
    new 
adminname[MAX_PLAYER_NAME];
    for(
0MAX_PLAYERSi++)
    if(
IsPlayerConnected(i) && pInfo[i][Admin] > && pInfo[i][Hide] == 0)
    
Count++;
    if(
Count == 0)
    return 
ShowPlayerDialog(playerid,9000,DIALOG_STYLE_MSGBOX,"SPA - Online Admins:","{FF0000}No Admins Online!","Ok","");
    for(
0MAX_PLAYERSi++)
  
    if(
IsPlayerConnected(i) && pInfo[i][Vip] > 0)
    {
        switch(
pInfo[i][Vip])
        {
            case 
1pVRank "FREE";
            case 
2pVRank "Donator";
            case 
3pVRank "Silver";
            case 
4pVRank "Gold";
            case 
5pVRank "CO-Gold";
            case 
6pVRank "Head Donator";
        }
        
GetPlayerName(iadminnamesizeof(adminname));
        if(!
First2)
        {
            
format(stringsizeof(string), "{FFFF00}|_________________VIPS Online_________________|{FFFFFF}\n{FFFF00}%s (ID %d)\t{FFFFFF}[%s]"pName(i),i,pVRank);
            
First2 true;
        }
        else 
format(string,sizeof(string),"%s\n{F11100}%s (ID %d)\t{FFFFFF}[%s]",string,pName(i),i,pVRank);
    }
    if(
IsPlayerConnected(i) && pInfo[i][Admin] > && pInfo[i][Hide] == 0)
    {
        if(
IsPlayerAdmin(i))
        {
             
pARank "RCON Manager";
        }
        else if (
pInfo[i][Admin] > 0)
        {
            switch(
pInfo[i][Admin])
            {
                case 
1pARank "Level 1 - Helper";
                case 
2pARank "Level 2 - Mod";
                case 
3pARank "Level 3 - Admin ";
                case 
4pARank "Level 4 - Admin";
                case 
5pARank "Level 5 - Leader";
                case 
6pARank "Level 6 - Head Administrator";
            }
        }
        
GetPlayerName(iadminnamesizeof(adminname));
        if(!
First2)
        {
            
format(stringsizeof(string), "{00FF00}SPA - Online Admins:\n{F11100}%s (ID %d)\t{FFFFFF}[%s]"pName(i),i,pARank);
            
First2 true;
        }
        else 
format(string,sizeof(string),"%s\n{F11100}%s (ID %d)\t{FFFFFF}[%s]",string,pName(i),i,pARank);
    }
    return 
ShowPlayerDialog(playerid,9000,DIALOG_STYLE_MSGBOX,"SPA - Online Admins:",string,"Ok","");

Tested but not working
Reply


Messages In This Thread
Integrate 2 Commands [Reps] - by SPA - 04.07.2014, 21:57
Re: Integrate 2 Commands [Reps] - by DarkZeroX - 04.07.2014, 21:59
Re: Integrate 2 Commands [Reps] - by SPA - 04.07.2014, 22:03
Re: Integrate 2 Commands [Reps] - by DarkZeroX - 04.07.2014, 22:06
Re: Integrate 2 Commands [Reps] - by SPA - 04.07.2014, 22:09
Re: Integrate 2 Commands [Reps] - by PrivatioBoni - 04.07.2014, 22:14
Re: Integrate 2 Commands [Reps] - by DarkZeroX - 04.07.2014, 22:17
Re: Integrate 2 Commands [Reps] - by SPA - 04.07.2014, 22:19
Re: Integrate 2 Commands [Reps] - by PrivatioBoni - 04.07.2014, 22:25
Re: Integrate 2 Commands [Reps] - by SPA - 04.07.2014, 22:27

Forum Jump:


Users browsing this thread: 1 Guest(s)