22.11.2014, 03:33
(
Последний раз редактировалось Raweresh; 23.12.2014 в 01:52.
Причина: Update
)
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.
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.