21.09.2013, 09:33
Hello, i was maked script weapons shop. In this script you can buy any weapon without army weapons. Cost of each weapons is saved in definition.
You can change cost of any weapon what you can buy. But ammunition is assigned to type of weapon.
In this script i use dialogs from 0 to 9, so if you have dialogs with this ids you must change this.
Okay, now i present you commands.
1. /Weapons - Gui with weapons to buy.
2. /W [Weapon Id] - You can buy weapon by id.
3. /Weaponslist - List with weapons, id and cost in gui.
I have some screens so if you want see them, go here. This script requirement zcmd.
Код:
#define BrassKnucklesCost 500 #define GolfClubCost 500 #define NightstickCost 500 #define KnifeCost 500 #define BaseballBatCost 500 #define ShovelCost 500 #define PoolCueCost 500 #define KatanaCost 500 #define ChainsawCost 500 #define DoubleDildoCost 500 #define DildoCost 500 #define VibratorCost 500 #define SilverVibratorCost 500 #define FlowersCost 500 #define CaneCost 500 #define GrenadeCost 10000 #define TearGasCost 10000 #define MolotovCocktailCost 10000 #define GlockCost 5000 #define SilencedGlockCost 5000 #define DesertEagleCost 5000 #define ShotgunCost 10000 #define SawnOffShotgunCost 10000 #define CombatShotgunCost 10000 #define UziCost 5000 #define MP5Cost 5000 #define Tec9Cost 5000 #define AK47Cost 15000 #define M4Cost 15000 #define CountryRifleCost 25000 #define SniperRifleCost 25000 #define SpraycanCost 500 #define FireExtinguisherCost 500 #define CameraCost 500 #define ParachuteCost 500
Код:
#define WeaponsMeleeAmmunition 1 #define WeaponsThrownAmmunition 50 #define WeaponsPistolsAmmunition 500 #define WeaponsShotgunsAmmunition 100 #define WeaponsMachinePistolsAmmunition 1000 #define WeaponsAssaultRiflesAmmunition 500 #define WeaponsRiflesAmmunition 100 #define WeaponsOtherAmmunition 1000
Код:
#define DialogWeapons 0 #define DialogWeaponsMelee 1 #define DialogWeaponsThrown 2 #define DialogWeaponsPistols 3 #define DialogWeaponsShotguns 4 #define DialogWeaponsMachinePistols 5 #define DialogWeaponsAssaultRifles 6 #define DialogWeaponsRifles 7 #define DialogWeaponsOther 8 #define DialogWeaponsList 9
1. /Weapons - Gui with weapons to buy.
2. /W [Weapon Id] - You can buy weapon by id.
3. /Weaponslist - List with weapons, id and cost in gui.
I have some screens so if you want see them, go here. This script requirement zcmd.