[FilterScript] [Weapon Menu]Team_PRO[Version 1.1 Fixed]
#1

Hello This Is my Third Filterscipt Weapon Menu

Includes

  • All of Weapon
  • Added Dialog Box
  • Infinite Ammo

Photo:


Code If You Want


Version 1.2
PHP код:
#include <a_samp> 
#define DIALOGID 1337 
#if defined FILTERSCRIPT 
public OnFilterScriptInit() 

    print(
"\n--------------------------------------"); 
    print(
" Weapon Menu by Team_PRO is Loaded [V1.2]"); 
    print(
"--------------------------------------\n"); 
    return 
1

public 
OnFilterScriptExit() 

    return 
1

#else 
main() 

    print(
"\n----------------------------------"); 
    print(
" Weapon List By Team_PRO is Unloaded [V1.2]"); 
    print(
"----------------------------------\n"); 

#endif 
public OnGameModeInit() 

    
// Don't use these lines if it's a filterscript 
    
SetGameModeText("Stunt|DM|Fun|Derby"); 
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000); 
    return 
1

public 
OnGameModeExit() 

    print(
"\n--------------------------------------"); 
    print(
" Weapon Menu by Team_PRO is Unloaded [V1.2]"); 
    print(
"--------------------------------------\n"); 
    return 
1

public 
OnPlayerCommandText(playeridcmdtext[]) 

    if (
strcmp("/shop"cmdtexttrue10) == 0
    { 
        
ShowPlayerDialog(playeridDIALOGIDDIALOG_STYLE_LIST"Weapon Lists""{00FF00}Melees\n{00FF00}Pistols\n{00FF00}Sub-Machine Guns\n{00FF00}Rifle's\n{00FF00}Assault Rifle\n{00FF00}Shotgun\n{00FF00}Heavy Weapon\n{00FF00}Thrown\n{00FF00}Other Melees""Select""Cancel"); 
        
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop"); 
        return 
1
    } 
    return 
0

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 

    if(
dialogid == DIALOGID
    { 
        if(
response
        { 
            if(
listitem == 0)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+1DIALOG_STYLE_LIST"Weapon Menu""Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n""Select""Cancel"); 
            } 
            if(
listitem == 1)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+2DIALOG_STYLE_LIST"Weapon Menu""9mm\nSilenced 9mm\nDesert Eagle""Get""Cancel"); 
            } 
            if(
listitem == 2)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+3DIALOG_STYLE_LIST"Weapon Menu""Uzi\nSMG\nTec9""Get""Cancel"); 
            } 
            if(
listitem == 3)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+4DIALOG_STYLE_LIST"Weapon Menu""Country Rifle\nSniper Rifle""Get""Cancel"); 
            } 
            if(
listitem == 4)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+5DIALOG_STYLE_LIST"Weapon Menu""AK-47\nM4""Get""Cancel"); 
            } 
            if(
listitem == 5)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+6DIALOG_STYLE_LIST"Weapon Menu""Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun""Get""Cancel"); 
            } 
            if(
listitem == 6)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+7DIALOG_STYLE_LIST"Weapon Menu""Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw""Get""Cancel"); 
            } 
            if(
listitem == 7)  
            { 
                
ShowPlayerDialog(playeridDIALOGID+8DIALOG_STYLE_LIST"Weapon Menu""Granade\nTear Gas""Get""Cancel"); 
            } 
            if(
listitem == 8
            { 
                
ShowPlayerDialog(playeridDIALOGID+9DIALOG_STYLE_LIST"Weapon Menu""Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers""Get""Cancel"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+1)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid11); 
                
GivePlayerMoney(playerid,-500); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid21); 
                
GivePlayerMoney(playerid,-500); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid31); 
            } 
            if(
listitem == 3
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid41); 
            } 
            if(
listitem == 4
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid51); 
            } 
            if(
listitem == 5
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid61); 
            } 
            if(
listitem == 6
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid71); 
            } 
            if(
listitem == 7
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid81); 
            } 
            if(
listitem == 8
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid101); 
            } 
            if(
listitem == 9
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid4199999); 
            } 
            if(
listitem == 10
            { 
                
GivePlayerMoney(playerid,-500); 
                
GivePlayerWeapon(playerid151); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+2)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2299999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2399999); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2499999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+3)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2899999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2999999); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3299999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+4)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3399999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3499999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+5)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3099999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3199999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+6
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2599999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid2699999); 
            } 
            if(
listitem == 2
            { 
                  
GivePlayerMoney(playerid,-5000); 
                  
GivePlayerWeapon(playerid2799999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+7)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3599999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3699999); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid3899999); 
            } 
            if(
listitem == 3
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid999999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+8)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid1699999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid1799999); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == DIALOGID+9)  
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid4299999); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid391); 
                
GivePlayerWeapon(playerid401); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid461); 
            } 
            if(
listitem == 3
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid441); 
            } 
            if(
listitem == 4
            { 
                
GivePlayerMoney(playerid,-5000); 
                
GivePlayerWeapon(playerid141); 
            } 
        } 
        return 
1
    } 
    return 
0
 } 
Version 1.1
PHP код:
#include <a_samp>
#define DIALOGID 1337
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Weapon Menu by Team_PRO is Loaded [V1.1]");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Weapon List By Team_PRO is Unloaded [V1.1]");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Stunt|DM|Fun|Derby");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    print(
"\n--------------------------------------");
    print(
" Weapon Menu by Team_PRO is Unloaded [V1.1]");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/shop"cmdtexttrue10) == 0)
    {
        
ShowPlayerDialog(playeridDIALOGIDDIALOG_STYLE_LIST"Weapon Lists""{00FF00}Melees\n{00FF00}Pistols\n{00FF00}Sub-Machine Guns\n{00FF00}Rifle's\n{00FF00}Assault Rifle\n{00FF00}Shotgun\n{00FF00}Heavy Weapon\n{00FF00}Thrown\n{00FF00}Other Melees""Select""Cancel");
         
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOGID)
    {
        if(
response)
        {
            if(
listitem == 0
            {
                
ShowPlayerDialog(playeridDIALOGID+1DIALOG_STYLE_LIST"Weapon Menu""Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n""Select""Cancel");
            }
            if(
listitem == 1
            {
                
ShowPlayerDialog(playeridDIALOGID+2DIALOG_STYLE_LIST"Weapon Menu""9mm\nSilenced 9mm\nDesert Eagle""Get""Cancel");
            }
            if(
listitem == 2
            {
                
ShowPlayerDialog(playeridDIALOGID+3DIALOG_STYLE_LIST"Weapon Menu""Uzi\nSMG\nTec9""Get""Cancel");
            }
            if(
listitem == 3
            {
                
ShowPlayerDialog(playeridDIALOGID+4DIALOG_STYLE_LIST"Weapon Menu""Country Rifle\nSniper Rifle""Get""Cancel");
            }
            if(
listitem == 4
            {
                
ShowPlayerDialog(playeridDIALOGID+5DIALOG_STYLE_LIST"Weapon Menu""AK-47\nM4""Get""Cancel");
            }
            if(
listitem == 5
            {
                
ShowPlayerDialog(playeridDIALOGID+6DIALOG_STYLE_LIST"Weapon Menu""Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun""Get""Cancel");
            }
            if(
listitem == 6
            {
                
ShowPlayerDialog(playeridDIALOGID+7DIALOG_STYLE_LIST"Weapon Menu""Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw""Get""Cancel");
            }
            if(
listitem == 7
            {
                
ShowPlayerDialog(playeridDIALOGID+8DIALOG_STYLE_LIST"Weapon Menu""Granade\nTear Gas""Get""Cancel");
            }
            if(
listitem == 8)
            {
                
ShowPlayerDialog(playeridDIALOGID+9DIALOG_STYLE_LIST"Weapon Menu""Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers""Get""Cancel");
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+1
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid11);
                
GivePlayerMoney(playerid,-500);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid21);
                
GivePlayerMoney(playerid,-500);
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid31);
            }
            if(
listitem == 3)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid41);
            }
            if(
listitem == 4)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid51);
            }
            if(
listitem == 5)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid61);
            }
            if(
listitem == 6)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid71);
            }
            if(
listitem == 7)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid81);
            }
            if(
listitem == 8)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid101);
            }
            if(
listitem == 9)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid4199999);
            }
            if(
listitem == 10)
            {
                
GivePlayerMoney(playerid,-500);
                
GivePlayerWeapon(playerid151);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+2
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2299999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2399999);
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2499999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+3
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2899999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2999999);
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3299999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+4
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3399999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3499999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+5
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3099999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3199999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+6)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2599999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid2699999);
            }
            if(
listitem == 2)
            {
                  
GivePlayerMoney(playerid,-5000);
                  
GivePlayerWeapon(playerid2799999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+7
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3599999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3699999);
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid3899999);
            }
            if(
listitem == 3)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid999999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+8
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid1699999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid1799999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+9
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid4299999);
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid391);
                
GivePlayerWeapon(playerid401);
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid461);
            }
            if(
listitem == 3)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid441);
            }
            if(
listitem == 4)
            {
                
GivePlayerMoney(playerid,-5000);
                
GivePlayerWeapon(playerid141);
            }
        }
        return 
1;
    }
    return 
0;
 } 


Version 1.0
PHP код:
#include <a_samp>
#define DIALOGID 1337
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Weapon Menu by Team_PRO is Loaded [V1.0]");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Weapon List By Team_PRO is Unloaded [V1.0]");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Edit me Inside The Pawno");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    print(
"\n--------------------------------------");
    print(
" Weapon Menu by Team_PRO is Unloaded [V1.0]");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
SendClientMessage(playerid,-1,"This Server Used Weapon List By Team_PRO");
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/shop"cmdtexttrue10) == 0)
    {
        
ShowPlayerDialog(playeridDIALOGIDDIALOG_STYLE_LIST"Weapon Lists""Melees\nPistols\nSub-Machine Guns\nRifle's\nAssault Rifle\nShotgun\nHeavy Weapon\nThrown\nOther Melees""Select""Cancel");
         
SendClientMessage(playerid,1,"You've Been Opened The Weapon Menu/Shop");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOGID)
    {
        if(
response)
        {
            if(
listitem == 0
            {
                
ShowPlayerDialog(playeridDIALOGID+1DIALOG_STYLE_LIST"Weapon Menu(By Team_PRO)(All Weapon Is In Here)""Knuckle Dusters\nGolf Club\nNite Stick\nKnife\nBat\nShovel\nPool Cue\nKatana\nDildo\nSpray Can\n""Select""Cancel");
            }
            if(
listitem == 1
            {
                
ShowPlayerDialog(playeridDIALOGID+2DIALOG_STYLE_LIST"Weapon Menu""9mm\nSilenced 9mm\nDesert Eagle""Get""Cancel");
            }
            if(
listitem == 2
            {
                
ShowPlayerDialog(playeridDIALOGID+3DIALOG_STYLE_LIST"Weapon Menu""Uzi\nSMG\nTec9""Get""Cancel");
            }
            if(
listitem == 3
            {
                
ShowPlayerDialog(playeridDIALOGID+4DIALOG_STYLE_LIST"Weapon Menu""Country Rifle\nSniper Rifle""Get""Cancel");
            }
            if(
listitem == 4
            {
                
ShowPlayerDialog(playeridDIALOGID+5DIALOG_STYLE_LIST"Weapon Menu""AK-47\nM4""Get""Cancel");
            }
            if(
listitem == 5
            {
                
ShowPlayerDialog(playeridDIALOGID+6DIALOG_STYLE_LIST"Weapon Menu""Standard Shotgun\nSawnoff Shotgun\nCombat Shotgun""Get""Cancel");
            }
            if(
listitem == 6
            {
                
ShowPlayerDialog(playeridDIALOGID+7DIALOG_STYLE_LIST"Weapon Menu""Rocket Laucher\nHeat Seaker\nMinigun\nChain Saw""Get""Cancel");
            }
            if(
listitem == 7
            {
                
ShowPlayerDialog(playeridDIALOGID+8DIALOG_STYLE_LIST"Weapon Menu""Granade\nTear Gas""Get""Cancel");
            }
            if(
listitem == 8)
            {
                
ShowPlayerDialog(playeridDIALOGID+9DIALOG_STYLE_LIST"Weapon Menu""Fire Extinguisher\nSatchel Charge\nParachute\nNightvision Goggles\nFlowers""Get""Cancel");
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+1
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid11);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid21);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid31);
            }
            if(
listitem == 3)
            {
                
GivePlayerWeapon(playerid41);
            }
            if(
listitem == 4)
            {
                
GivePlayerWeapon(playerid51);
            }
            if(
listitem == 5)
            {
                
GivePlayerWeapon(playerid61);
            }
            if(
listitem == 6)
            {
                
GivePlayerWeapon(playerid71);
            }
            if(
listitem == 7)
            {
                
GivePlayerWeapon(playerid81);
            }
            if(
listitem == 8)
            {
                
GivePlayerWeapon(playerid101);
            }
            if(
listitem == 9)
            {
                
GivePlayerWeapon(playerid4199999);
            }
            if(
listitem == 10)
            {
                
GivePlayerWeapon(playerid151);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+2
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid2299999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid2399999);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid2499999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+3
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid2899999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid2999999);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid3299999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+4
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid3399999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid3499999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+5
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid3099999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid3199999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+6)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid2599999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid2699999);
            }
            if(
listitem == 2)
            {
                  
GivePlayerWeapon(playerid2799999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+7
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid3599999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid3699999);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid3899999);
            }
            if(
listitem == 3)
            {
                
GivePlayerWeapon(playerid999999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+8
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid1699999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid1799999);
            }
        }
        return 
1;
    }
    if(
dialogid == DIALOGID+9
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerWeapon(playerid4299999);
            }
            if(
listitem == 1)
            {
                
GivePlayerWeapon(playerid391);
                
GivePlayerWeapon(playerid401);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid461);
            }
            if(
listitem == 3)
            {
                
GivePlayerWeapon(playerid441);
            }
            if(
listitem == 4)
            {
                
GivePlayerWeapon(playerid141);
            }
        }
        return 
1;
    }
    return 
0;
 } 
PHP код:
Changelog 1.2
-Bug Fixed 
PHP код:
Changelog 1.1
-Bug Fixed
-You Need $500 or $5000 To Buy Weapons 
PHP код:
Changelog 1.0
-Initial Realease 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)