scripting Help
#1

help me put this code here to put it to store players with these varaives ai mode of game faction admins, leaders, owner of the hill, front, manager, steam and bonfire everything off line ...

PHP код:
         if(dialogid == 9999)
        {
            new 
String[128], info[400];
            if(
response)
            {
                if(
listitem == 0)
                {
                    for(new 
i=0i<MAX_PLAYERSi++)
                    {
                   if(
Player[i][Admin] > && Player[i][Faccoes] ==  Player[playerid][Faccoes])
                               {
                               
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Admin]%s\n"Nome(i));
                          
strcat(infoString);
                        }
                    }
                    
strcat(info" ");
                    
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Administradores da Comunidade"info,"Ok","");
                }
                if(
listitem == 1)
                {
                    for(new 
i=0i<MAX_PLAYERSi++)
                        {
                                if(
Player[i][Lider] > && Player[i][Faccoes] ==  Player[playerid][Faccoes])
                                {
                                   
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Lider]%s\n"Nome(i));
                                
strcat(infoString);
                            }
                        }
                     
strcat(info" ");
                     
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Lider da comunidade"info,"Ok","");
                }
                if(
listitem == 2)
                {
                    for(new 
i=0i<MAX_PLAYERSi++)
                        {
                                if(
Player[i][Dono] > && Player[i][Faccoes] ==  Player[playerid][Faccoes])
                                {
                                   
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Dono]%s\n"Nome(i));
                                
strcat(infoString);
                            }
                        }
                     
strcat(info" ");
                     
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Dono do Morro"info,"Ok","");
                
                }
                 if(
listitem == 3)
                {
                 for(new 
i=0i<MAX_PLAYERSi++)
                        {
                                if(
Player[playerid][Cargo]==&& Player[i][Faccoes] ==  Player[playerid][Faccoes])
                                {
                                   
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Frente]%s\n"Nome(i));
                                
strcat(infoString);
                            }
                        }
                 
strcat(info" ");
                 
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Frentes da Comunidade"info,"Ok","");
                }
                if(
listitem == 4)
{
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
Player[playerid][Cargo]==&& Player[i][Faccoes] ==  Player[playerid][Faccoes])
        {
            
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Gerente]%s\n"Nome(i));
            
strcat(infoString);
        }
    }
    
strcat(info" ");
    
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Gerentes da Comunidade"info,"Ok","");
}
                if(
listitem == 5)
{
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
Player[playerid][Cargo]==&& Player[i][Faccoes] ==  Player[playerid][Faccoes])
        {
            
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Vapor]%s\n"Nome(i));
            
strcat(infoString);
        }
    }
    
strcat(info" ");
    
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Vapores da Comunidade"info,"Ok","");
}
                if(
listitem == 6)
            {
    for(new 
i=0i<MAX_PLAYERSi++)
    {
        if(
Player[playerid][Cargo]==&& Player[i][Faccoes] ==  Player[playerid][Faccoes])
        {
            
format(Stringsizeof(String), "{1D4FC4}» {ffffff}[Fogueteiro]%s\n"Nome(i));
            
strcat(infoString);
        }
    }
    
strcat(info" ");
    
ShowPlayerDialog(playeridD_HQDIALOG_STYLE_LIST,"{1D4FC4}» {ffffff}Fogueteiros da Comunidade"info,"Ok","");
}
}

Reply


Messages In This Thread
scripting Help - by didimk157 - 02.02.2017, 12:46
Re: scripting Help - by Sew_Sumi - 02.02.2017, 12:54
Re: scripting Help - by didimk157 - 03.02.2017, 09:08
Re: scripting Help - by didimk157 - 11.02.2017, 09:56
Re: scripting Help - by Sew_Sumi - 11.02.2017, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)