Garry's Mod

Garry's Mod

Sandbox Weapon Shop and Money System
目前顯示第 1-4 項,共 4 項
更新:9 月 8 日 @ 上午 4:10
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)

更新:2024 年 12 月 6 日 @ 下午 3:26
Famous5000 發表

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

更新:2024 年 11 月 26 日 @ 下午 9:47
Famous5000 發表

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

更新:2024 年 11 月 26 日 @ 下午 9:12
Famous5000 發表

Initial addon creation.