[FilterScript] Weapons Shop System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapons Shop System (
/showthread.php?tid=547316)
[UPDATED] Weapons Shop System -
Raweresh - 22.11.2014
It's, in my opinion, the simplest possible script with weapons shop using files. There is one command named /Weapons. Updated version have ammunation shops with discounts.
If you want to change the id, name, ammo or the price of the weapon, do it in the file WSS.cfg.
Data record looks like this:
Код:
1|Brass Knuckles|1|1000
2|Golf Club|1|1000
3|Nightstick|1|1000
4|Knife|1|1000
5|Baseball Bat|1|1000
6|Shovel|1|1000
7|Pool Cue|1|1000
8|Katana|1|1000
9|Chainsaw|1|1000
10|Purple Dildo|1|1000
11|Dildo|1|1000
12|Vibrator|1|1000
13|Silver Vibrator|1|1000
14|Flowers|1|1000
15|Cane|1|1000
16|Grenade|50|50000
17|Tear Gas|50|50000
18|Molotov Cocktail|50|50000
22|9mm|850|10000
23|Silenced 9mm|850|15000
24|Desert Eagle|350|25000
25|Shotgun|50|20000
26|Sawnoff Shotgun|100|25000
27|Combat Shotgun|350|25000
28|Micro SMG/Uzi|5000|25000
29|MP5|5000|20000
30|AK-47|1500|20000
31|M4|5000|25000
32|Tec-9|5000|25000
33|Country Rifle|50|20000
34|Sniper Rifle|50|25000
41|Spraycan|25000|1000
42|Fire Extinguisher|25000|1000
43|Camera|50|1000
46|Parachute|1|1000
Код:
#define WSS_MAXIMAL_WEAPONS 35
#define WSS_MAXIMAL_WEAPON_NAME 32
#define WSS_MAXIMAL_AMMUNATIONS 11
#define WSS_COLOR_WHITE 0xFFFFFFFF
#define WSS_COLOR_RED 0xFF0000FF
#define WSS_COLOR_GREEN 0x00FF00FF
#define WSS_WHITE "{FFFFFF}"
#define WSS_GREEN "{00FF00}"
#define WSS_DIALOG_ONE 0
#define WSS_DIALOG_TWO 1
#define WSS_DISCOUNT 10
Change WSS_MAXIMAL_WEAPONS if you add or remove weapon from the file.
Change WSS_MAXIMAL_AMMUNATIONS if you add or remove ammunation from script.
Change WSS_DIALOG_ONE if you are using dialog id 0 in your gamemode or other scripts.
Change WSS_DIALOG_TWO if you are are using dialog id 1 in your gamemode or other scripts.
Change WSS_DISCOUNT if you want to change discount percent in ammunation shops.
Re: Weapons Shop System -
Ryz - 22.11.2014
wow nice work with listitem!! good good.
Re: Weapons Shop System -
finelaq - 22.11.2014
Good work!
It's easy to use, so i am going to use it!
Thanks!
Re: Weapons Shop System -
LeXuZ - 22.11.2014
Nice work, looks good
Respuesta: Weapons Shop System -
!R1Ch@rD! - 22.11.2014
Nice work men
Re: Weapons Shop System -
Raweresh - 03.12.2014
Thanks guys. I have added a few definitions for easier handling script.
Re: Weapons Shop System -
Rube - 03.12.2014
Good work
Re : Weapons Shop System -
samp_boy - 03.12.2014
you worked hard for making all samp weapons
i give you a +Rep
Re: Weapons Shop System -
MysteriousGaming - 06.12.2014
Very good.
You have nice knowledge with pawn lang. Think. So
Re: Weapons Shop System -
Ahammad - 06.12.2014
wow nice job, how do you make this cogragulation from me