Garry's Mod

Garry's Mod

Sandbox Weapon Shop and Money System
Menampilkan1-4 dari 4 kiriman
Pembaruan: 8 Sep @ 4:10am
berdasarkan 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)

Pembaruan: 6 Des 2024 @ 3:26pm
berdasarkan Famous5000

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

Pembaruan: 26 Nov 2024 @ 9:47pm
berdasarkan Famous5000

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

Pembaruan: 26 Nov 2024 @ 9:12pm
berdasarkan Famous5000

Initial addon creation.