Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <a_npc>
- #include <core>
- #include <float>
- #include <string>
- #include <file>
- #include <time>
- #include <datagram>
- #include <a_players>
- #include <a_vehicles>
- #include <a_objects>
- #include <a_sampdb>
- #include <Sinclude>
- #include <properties 1.6.8>
- #include <dutils>
- #include <dudb>
- new weapons;
- public OnFilterScriptInit()
- {
- weapons = CreatePickup(1318, 23, 1916.51, 1381.41, 9.88);
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == weapons)
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a weapon", "Grenade \n Tear gas \n Molotovs \n Pistol \n Silenced pistol \n Desert Eagle \n Shotgun \n Sawn off shotgun \n Combat Shotgun\n Micro uzi \n Mp5 \n Ak47\n m4 \n tec9 \n Rifle \n Sniper \n Rocket launcher + target \n Common rocket launcher \n Flame Thrower\n Minigun", "Buy", "Cancel");
- return 1;
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 2)
- {
- if(response)
- {
- if(GetPlayerMoney(playerid) >= 10000) {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 16, 9999);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 17, 9999);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 18, 9999);
- return 1;
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 22, 9999);
- return 1;
- }
- if(listitem == 4)
- {
- GivePlayerWeapon(playerid, 23, 9999);
- return 1;
- }
- if(listitem == 5)
- {
- GivePlayerWeapon(playerid, 24, 9999);
- return 1;
- }
- if(listitem == 6)
- {
- GivePlayerWeapon(playerid, 25, 9999);
- return 1;
- }
- if(listitem == 7)
- {
- GivePlayerWeapon(playerid, 26, 9999);
- return 1;
- }
- if(listitem == 8)
- {
- GivePlayerWeapon(playerid, 27, 9999);
- return 1;
- }
- if(listitem == 9)
- {
- GivePlayerWeapon(playerid, 28, 9999);
- return 1;
- }
- if(listitem == 10)
- {
- GivePlayerWeapon(playerid, 29, 9999);
- return 1;
- }
- if(listitem == 11)
- {
- GivePlayerWeapon(playerid, 30, 9999);
- return 1;
- }
- if(listitem == 12)
- {
- GivePlayerWeapon(playerid, 31, 9999);
- return 1;
- }
- if(listitem == 13)
- {
- GivePlayerWeapon(playerid, 32, 9999);
- return 1;
- }
- if(listitem == 14)
- {
- GivePlayerWeapon(playerid, 33, 9999);
- return 1;
- }
- if(listitem == 15)
- {
- GivePlayerWeapon(playerid, 34, 9999);
- return 1;
- }
- if(listitem == 16)
- {
- GivePlayerWeapon(playerid, 35, 9999);
- return 1;
- }
- if(listitem == 17)
- {
- GivePlayerWeapon(playerid, 36, 9999);
- return 1;
- }
- if(listitem == 18)
- {
- GivePlayerWeapon(playerid, 37, 9999);
- return 1;
- }
- if(listitem == 19)
- {
- GivePlayerWeapon(playerid, 38, 9999);
- return 1;
- }
- }
- }
- }
- return 1;
- }
- // feito por FeLiPe , So por fun mesmo x=
Advertisement
Add Comment
Please, Sign In to add comment