[FilterScript] Advanced Weapon System by kosa451
#1

Credits:
Zeex for his zcmd.
kosa451 for creating this filterscript

Includes:


All weapons grouped by category
Dialogs
Unlimited Ammunition



PHP код:
/* 
         _______________________________________________ 
        |                                               | 
        |       [Advanced Weapon System by kosa451]      | 
        |        Credits: Zeex for his easy to use ZCMD    | 
        |        Credits: SAMP Forum for a_samp         | 
        |_______________________________________________| 
*/ 
#define FILTERSCRIPT 
#include <a_samp> 
#include <zcmd> 
#define WEAPONS 9999 
#if defined FILTERSCRIPT 
public OnFilterScriptInit() 

    print(
"\n--------------------------------------"); 
    print(
"    Advanced Weapon System by kosa451 v1.0 Loading..."); 
    print(
"--------------------------------------\n"); 
    print(
" Advanced Weapon System by kosa451Loaded Successfully"); 
    print(
"----------------------------------------------\n"); 
    return 
1

public 
OnFilterScriptExit() 

    return 
1

#else 
#endif 
public OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 

    if(
dialogid == WEAPONS
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
ShowPlayerDialog(playeridWEAPONS+1DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Brass Knuckles(100$)\nGolf Club(100$)\nNite Stick(100$)\nKnife(500$)\nBat(100$)\nShovel(100$)\nPool Cue(100$)\nKatana(100$)\nDildo(100$)\nSpray Can(100$)\nCane(100$)\nFlowers(100$)""Buy""Cancel"); 
            } 
            if(
listitem == 1
            { 
                   
ShowPlayerDialog(playeridWEAPONS+2DIALOG_STYLE_LIST"{CC0000}Weapon Menu""9mm(500$)\nSilenced 9mm(500$)\nDesert Eagle(2000$)""Buy""Cancel"); 
            } 
            if(
listitem == 2
            { 
                   
ShowPlayerDialog(playeridWEAPONS+3DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Uzi(2500$)\nMP5(2500$)\nTec9(2500$)""Buy""Cancel"); 
            } 
            if(
listitem == 3
            { 
                   
ShowPlayerDialog(playeridWEAPONS+4DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Country Rifle(5000$)\nSniper Rifle(10000$)""Buy""Cancel"); 
            } 
            if(
listitem == 4
            { 
                   
ShowPlayerDialog(playeridWEAPONS+5DIALOG_STYLE_LIST"{CC0000}Weapon Menu""AK-47(15000$)\nM4(15000$)""Buy""Cancel"); 
            } 
            if(
listitem == 5
            { 
                   
ShowPlayerDialog(playeridWEAPONS+6DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Shotgun(4000$)\nSawnoff Shotgun(15000$)\nCombat Shotgun(20000$)""Buy""Cancel"); 
            } 
            if(
listitem == 6
            { 
                  
ShowPlayerDialog(playeridWEAPONS+7DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Rocket Laucher(100000$)\nHeat Seaker(100000$)\nMinigun(500000$)\nChain Saw(50000$)""Buy""Cancel"); 
            } 
            if(
listitem == 7
            { 
                
ShowPlayerDialog(playeridWEAPONS+8DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Granade(60000$)\nTear Gas(10000$)\nSatchel Charge(60000$)\nMolotov Cocktail(60000$)""Buy""Cancel"); 
            } 
            if(
listitem == 8
            { 
                   
ShowPlayerDialog(playeridWEAPONS+9DIALOG_STYLE_LIST"{CC0000}Weapon Menu""Fire Extinguisher(5000$)\nParachute(500$)\nNightvision Goggles(5000$)""Buy""Cancel"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+1
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid1999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Brass Knuckles for 100$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid2999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Golf Club for 100$!"); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerWeapon(playerid3999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Nite Stick for 100$!"); 
            } 
            if(
listitem == 3
            { 
                
GivePlayerWeapon(playerid4999); 
                
GivePlayerMoney(playerid, -500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Knife for 500$!"); 
            } 
            if(
listitem == 4
            { 
                
GivePlayerWeapon(playerid5999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Bat for 100$!"); 
            } 
            if(
listitem == 5
            { 
                
GivePlayerWeapon(playerid6999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Shovel for 100$!"); 
            } 
            if(
listitem == 6
            { 
                
GivePlayerWeapon(playerid7999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Pool Cue for 100$!"); 
            } 
            if(
listitem == 7
            { 
                
GivePlayerWeapon(playerid8999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Katana for 100$!"); 
            } 
            if(
listitem == 8
            { 
                
GivePlayerWeapon(playerid11999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Dildo for 100$!"); 
            } 
            if(
listitem == 9
            { 
                
GivePlayerWeapon(playerid4199999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Spray Can for 100$!"); 
            } 
            if(
listitem == 10
            { 
                
GivePlayerWeapon(playerid1599999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Cane for 100$!"); 
            } 
            if(
listitem == 11
            { 
                
GivePlayerWeapon(playerid1499999); 
                
GivePlayerMoney(playerid, -100); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Flowers for 100$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+2
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid2299999); 
                
GivePlayerMoney(playerid, -500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a 9mm for 500$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid2399999); 
                
GivePlayerMoney(playerid, -500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Silenced 9mm for 500$!"); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerWeapon(playerid2499999); 
                
GivePlayerMoney(playerid, -2000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Deagle for 2000$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+3
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid2899999); 
                
GivePlayerMoney(playerid, -2500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a UZI for 2500$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid2999999); 
                
GivePlayerMoney(playerid, -2500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a MP5 for 2500$!"); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerWeapon(playerid3299999); 
                
GivePlayerMoney(playerid, -2500); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Tec-9 for 2500$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+4
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid3399999); 
                
GivePlayerMoney(playerid, -5000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Country Rifle for 5000$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid3499999); 
                
GivePlayerMoney(playerid, -10000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Sniper Rifle for 10000$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+5
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid3099999); 
                
GivePlayerMoney(playerid, -15000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a AK-47 for 15000$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid3199999); 
                
GivePlayerMoney(playerid, -15000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a M4A1 Rifle for 15000$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == WEAPONS+6
    { 
        if(
response
        { 
            if(
listitem == 0
            { 
                
GivePlayerWeapon(playerid2599999); 
                
GivePlayerMoney(playerid, -15000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Shotgun for 4000$!"); 
            } 
            if(
listitem == 1
            { 
                
GivePlayerWeapon(playerid2699999); 
                
GivePlayerMoney(playerid, -15000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Spawnoff Shotgun for 15000$!"); 
            } 
            if(
listitem == 2
            { 
                
GivePlayerWeapon(playerid2799999); 
                
GivePlayerMoney(playerid, -15000); 
                
SendClientMessage(playerid, -1," You successfuly purchased a Combat Shotgun for 20000$!"); 
            } 
        } 
        return 
1
    } 
    if(
dialogid == 
Reply
#2

Simple but Useful
Reply
#3

"Advanced"? ;_; What is Advanced here?
Reply
#4

pawn Код:
if(dialogid ==
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)