SA-MP Forums Archive
scripting Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: scripting Help (/showthread.php?tid=627833)



scripting Help - didimk157 - 02.02.2017

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","");
}
}




Re: scripting Help - Sew_Sumi - 02.02.2017

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.


Re: scripting Help - didimk157 - 03.02.2017

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


Re: scripting Help - didimk157 - 11.02.2017

up


Re: scripting Help - Sew_Sumi - 11.02.2017

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