Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_WHITE 0xFFFFFFFF
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n_____________________________________________");
- print("");
- print(" NOOBRE - Weapon System Loaded");
- print(");
- print("_____________________________________________\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/weaponshop", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "NOOBRE Weapon System","Pistol\nSilenced Pistol\nFake Pistol\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nUzi Machine Gun\nMP5\nTec-9\nAK-47\nM4\nArmour\nGrenade\nTearGas\nMolotov Cocktail\nSatchel Charge\nRocket Launcher","Select","Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 2 && response)
- {
- switch (listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "NOOBRE Weapon System","Pistol\nSilenced Pistol\nDesert Eagle\nShotgun\nSawn-off Shotgun\nCombat Shotgun\nUzi Machine Gun\nMP5\nTec-9\nAK-47\nM4\nArmour\nGrenade\nTearGas\nMolotov Cocktail\nSatchel Charge\nRocket Launcher","Select","Cancel");
- }
- }
- }
- if (dialogid == 1 && response)
- {
- switch (listitem)
- {
- case 0:
- {
- GivePlayerWeapon(playerid, 22, 1000);
- }
- case 1:
- {
- GivePlayerWeapon(playerid, 23, 1000);
- }
- case 3:
- {
- GivePlayerWeapon(playerid, 0, 1000);
- }
- case 4:
- {
- GivePlayerWeapon(playerid, 24, 1000);
- }
- case 5:
- {
- GivePlayerWeapon(playerid, 25, 1000);
- }
- case 6:
- {
- GivePlayerWeapon(playerid, 26, 1000);
- }
- case 7:
- {
- GivePlayerWeapon(playerid, 27, 1000);
- }
- case 8:
- {
- GivePlayerWeapon(playerid, 28, 1000);
- }
- case 9:
- {
- GivePlayerWeapon(playerid, 29, 1000);
- }
- case 10:
- {
- GivePlayerWeapon(playerid, 32, 1000);
- }
- case 11:
- {
- GivePlayerWeapon(playerid, 30, 1000);
- }
- case 12:
- {
- GivePlayerWeapon(playerid, 31, 1000);
- }
- case 13:
- {
- SetPlayerArmour(playerid, 100);
- }
- case 14:
- {
- GivePlayerWeapon(playerid, 16, 25);
- }
- case 15:
- {
- GivePlayerWeapon(playerid, 17, 25);
- }
- case 16:
- {
- GivePlayerWeapon(playerid, 18, 25);
- }
- case 17:
- {
- GivePlayerWeapon(playerid, 39, 25);
- }
- case 18:
- {
- GivePlayerWeapon(playerid, 35, 50);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment