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
#2

This is scripting help, not script for you.

If you need a scripter, you should hit up the "Looking for Scripters/Helpers" thread, otherwise, you need to learn to script.
Reply
#3

I'm not looking for script I'm just looking for help storing type players in a folder .
Reply
#4

up
Reply
#5

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
This is scripting help, not script for you.

If you need a scripter, you should hit up the "Looking for Scripters/Helpers" thread, otherwise, you need to learn to script.
5char
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)