Garry's Mod
Sandbox Weapon Shop and Money System
Hiển thị 1-4 trong 4 mục
Cập nhật: 8 Thg09 @ 4:10am
bởi w.black57

- Added console command and config in Shop Options: wblmoney_noammocaprestriction (1 by default) - Will disable Ammo cap restriction
- Added console command and config in Shop Options: wblmoney_noammocaponbuy (0 by default) - Will disable Ammo cap when buying ammo
- Fixed lua error when trying to buy 1 primary ammo from an unknown weapon
- Added money gain when you repair with the carpenter's hammer in the Zombie Survival Weapons & Melee mod by Shadow!


For Devs:
- Added Global functions to add or remove money (These can be actually be done using changeMoney(player,amount) function but this function does not check before deducting the player's cash):

1. Moneyadd(ply, add, seen)
ply - player that will receive the money gain
add - amount of money to add
seen - keep it true all the time

2. Moneydeduct(ply, cost, seen)
ply - player that will receive the money gain
add - amount of money to be deducted
seen - keep it true all the time
This function will return true if there is enough money on the player
If the player does not have enough money, it will return as false and will not deduct the player's cash

- w.black57 (Original Author)

Cập nhật: 6 Thg12, 2024 @ 3:26pm

Merging changes from BETA to STABLE [many bugfixes, should be stable now] (#16)

Cập nhật: 26 Thg11, 2024 @ 9:47pm

Merging changes from BETA to STABLE [1 bugfix, 0 new features]

Cập nhật: 26 Thg11, 2024 @ 9:12pm

Initial addon creation.