Garry's Mod

Garry's Mod

評價次數不足
[E2] CurrencyCore
   
獎勵
加入最愛
已加入最愛
移除最愛
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
檔案大小
發佈於
更新時間
3.030 KB
2018 年 1 月 27 日 下午 9:57
2018 年 2 月 9 日 上午 12:57
13 項更新註記 (檢視)

訂閱以下載
[E2] CurrencyCore

描述
A super simple currency addon for E2, indended for sandbox fun not for anything serious


functions:
getBalance()
pay(ply)
getPayAmount() - returns your periodic amount
getPayInterval() - returns periodic interval
runOnPay(enable) - makes the chip run when your balance changes
paidClk()
paidAmount()
payingPlayer() - whoever paid you (if anyone)
dropCurrency(amount) - just deletes some if your balance - returns 0 if error but clamps to your max anyway
ply:SetBalance(amount) (admin only by default)
ply:GetBalance() (admin only by default)
payMessage() - returns the message in the most recent payment, useful for purchases

console commands:
currencycore_payinterval, default 60 seconds
currencycore_maxamount
currencycore_setbalance - 0 for disabled, 1 for admin only, 2 for everyone
currencycore_getbalance - 0 for disabled, 1 for admin only, 2 for everyone
currencycore_reset - resets all balances
currencycore_paycommand - default is "!pay"

chat command:
!pay <name> <amount> <optional message> -- this is only needed because it couldn't be securely/easily done otherwise
12 則留言
Scraplord7 (Spookie) 6 月 8 日 下午 4:41 
how come i have this downloaded but it won't show any of the actual mod in the game?
Im_Skeleton 2023 年 5 月 31 日 下午 5:26 
I may be stupid for asking this but what are the functions for
Daeva 2020 年 1 月 18 日 上午 11:52 
can I trade this for bitcons?
Armystuntman 2019 年 10 月 1 日 上午 7:39 
idk what the jokes are about, but anyway
tested this and everything works (currencycore_reset doesn't seem to work but it might just be a quirk, but it's not required)
Thanks for making this, I enjoy this pseudo-roleplay sandbox kind of thing.
Bjard 2019 年 10 月 1 日 上午 1:33 
yeah but how do I buy ranks lmoah :joy3:
Antonym  [作者] 2019 年 10 月 1 日 上午 12:15 
currencycore_pay_standard (default 20), yep amounts are saved permanently
Armystuntman 2019 年 9 月 30 日 下午 12:30 
Is there a way to disable or edit the amount of payday money you get periodically?
Also, does the pay amount save when you relog?
Fred "Bizkit" Durst 2018 年 3 月 15 日 下午 4:56 
wont work for me
brad 2018 年 1 月 27 日 下午 11:02 
:star_of_david:
Antonym  [作者] 2018 年 1 月 27 日 下午 10:30 
:menorah: