Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT // potrebno za ZCMD, ni sam ne znam zašto
- #define oruzjedialog 20999
- #define nevatrenodialog 20998
- #define pistoljdialog 20997
- #define sacmaredialog 20996
- #define puskedialog 20995
- #define autopuskedialog 20994
- #define bombedialog 20993
- #define ostalodialog 20992
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Oružje FS by monkeypantzz.amx ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == oruzjedialog)
- {
- if(!response) return SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Odustali ste od odabira oružja!");
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, nevatrenodialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Bokser\nGolf Palica\nNož\nBejzbol Palica\nLopata\nMac\nMotorna Testera\nCvece", "Odaberi", "Natrag");
- return 1;
- }
- case 1:
- {
- ShowPlayerDialog(playerid, pistoljdialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Colt 45\nSilenced 9mm\nDesert Eagle", "Odaberi", "Natrag");
- return 1;
- }
- case 2:
- {
- ShowPlayerDialog(playerid, sacmaredialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Shotgun\nSawn-off shotgun\nCombat shotgun", "Odaberi", "Natrag");
- return 1;
- }
- case 3:
- {
- ShowPlayerDialog(playerid, puskedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "AK-47\nM4\nCountry Rifle\nSniper Rifle", "Odaberi", "Natrag");
- return 1;
- }
- case 4:
- {
- ShowPlayerDialog(playerid, autopuskedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Micro SMG\nMP5\nTec9", "Odaberi", "Natrag");
- return 1;
- }
- case 5:
- {
- ShowPlayerDialog(playerid, bombedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Granata\nDimna Bomba\nMolotovljev koktel\nBomba sa detonatorom", "Odaberi", "Natrag");
- return 1;
- }
- case 6:
- {
- ShowPlayerDialog(playerid, ostalodialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite oruzje", "Raketni Bacac\nHS Raketni Bacac\nMinigun\nBacac Plamena\nPadobran\nSprej", "Odaberi", "Natrag");
- return 1;
- }
- }
- }
- }
- if(dialogid == nevatrenodialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 1, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Bokser{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 2, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Palicu za golf{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 4, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Nož{FFFFFF} !");
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 5, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Bejzbol palicu{FFFFFF} !");
- return 1;
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 6, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Lopatu{FFFFFF} !");
- return 1;
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 8, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Mac{FFFFFF} !");
- return 1;
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 9, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Motornu testeru{FFFFFF} !");
- return 1;
- }
- case 7:
- {
- GivePlayerWeapon(playerid, 14, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Cvece{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == pistoljdialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 22, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Colt 45{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 23, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Silenced 9mm{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 24, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Desert eagle{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == sacmaredialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 25, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Shotgun{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 26, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Sawn-off shotgun{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 27, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Combat shotgun{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == puskedialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 30, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}AK-47{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 31, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}M4{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 33, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Country Rifle{FFFFFF} !");
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 34, 500);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Sniper Rifle{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == autopuskedialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 28, 1000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Micro SMG{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 29, 1000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}MP5{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 32, 1000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Tec9{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == bombedialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 16, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Granatu{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 17, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Dimnu bombu{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 18, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Molotovljev koktel{FFFFFF} !");
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 39, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Bombu sa detonatorom{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- if(dialogid == ostalodialog)
- {
- if(!response) return ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- {
- switch(listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 35, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Raketni bacac{FFFFFF} !");
- return 1;
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 36, 100);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}HS Raketni bacac{FFFFFF} !");
- return 1;
- }
- case 2:
- {
- GivePlayerWeapon(playerid, 38, 10000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Minigun{FFFFFF} !");
- return 1;
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 37, 1000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Bacac plamena{FFFFFF} !");
- return 1;
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 46, 1);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Padobran{FFFFFF} !");
- return 1;
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 41, 1000);
- SendClientMessage(playerid,-1,"{FF003F}GunDialog {FFFFFF}| Izabrali ste {14F1FC}Sprej{FFFFFF} !");
- return 1;
- }
- }
- }
- }
- return 1;
- }
- CMD:oruzje(playerid, params[])
- {
- ShowPlayerDialog(playerid, oruzjedialog, DIALOG_STYLE_LIST, "{FF003F}Odaberite vrstu oružja", "Nevatreno oružje\nPištolji\nSacmarice\nPuške\nAutomatske puške\nBombe\nOstalo", "Odaberi", "Odustani");
- return 1;
- }
- CMD:weapons(playerid, params[])
- {
- return cmd_oruzje(playerid, params);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement