Spiritwind submitted a new resource:
MoneyTime for Economics - Pays Players a specified amount for every specified seconds played.
Read more about this resource...
MoneyTime
Moved
Total Downloads: 2,413 - First Release: Mar 12, 2015 - Last Update: Dec 12, 2017
- 5/5, 5 likes
-
Wulf Community Admin
-
Spiritwind updated MoneyTime for Economics with a new update entry:
Added Resource ID
-
Wulf Community Admin
A couple of issues I noticed with your plugin:
- There is no OnUserDisconnect in Experimental, only OnPlayerDisconnected. See http://docs.oxidemod.org/.
- Timers are automatically destroyed on unload if you pass self.Plugin with your timers, as you should be.
Code:timer.Repeat(self.Config.Interval, 0, function() self:PayTime(player) end, self.Plugin)
- I'd link the plugin's page rather than the forum thread. http://oxidemod.org/resources/moneytime-for-economics.836/
-
Does this look better? http://paste.ubuntu.com/10583019/
Also, what do you mean about linking to the plugins page instead of the forum thread? -
Wulf Community Admin
http://forum.rustoxide.com/plugins/economics.717/ instead of http://oxidemod.org/resources/moneytime-for-economics.836/. -
http://oxidemod.org/resources/economics.717/
Other than that, have no clue what else you could mean. -
Spiritwind updated MoneyTime for Economics with a new update entry:
OnPlayerDisconnected and Unload Fix
-
Wulf Community Admin
-
when I edit config to "PayCheck": "<color=#D4A017>paid $150 </color>"
and reload it defaults back to "PayMessage": "You were paid $150 for playing on the server!",
[DOUBLEPOST=1426162847][/DOUBLEPOST]Code:[Oxide] 8:21 AM [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'MoneyTime' File: MoneyTime.lua Line: 37 attempt to index field '?' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
Last edited by a moderator: Mar 12, 2015 -
Nice work,love this!
-
On the second one, the timer to pay a player is created when they join the server. That error message is from them not having joined the server after the plugin was added, reloaded, or updated. Will however make it so it gives a message when there is no timer for them in the logs instead of an error message.
-
Spiritwind updated MoneyTime for Economics with a new update entry:
Minor Bug Fixes, Change Message Name
-
me not working
"Interval": 100,
"ChatName": "SERVER",
"PayAmount": 70 -
Try going in the server, opening console/F1 and typing oxide.reload MoneyTime
Then try reconnected and wait to see if you get paid. -
Code:
[5/3/2015 3:40:41 AM] [Oxide] 3:40 AM [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'MoneyTime' File: MoneyTime.lua Line: 39 attempt to call method 'Destroy' (a string value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
-
Any ETA when this will support specific group amounts?
-
great, just what i was looking for, any news on the planned update "Ability to specify players that receive an increase in payamount or the interval at which funds are received." ? Will it work with permissions? Thanks
-
Can anyone help to solve that problem, caused by last udate?
Attached Files:
-
-
hey i get ths error
Code:[Oxide] 10:13 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'MoneyForGather' File: money-for-gather.lua Line: 145 attempt to index field 'Initiator' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
Working on an update for this.