Well yeah, thanks for your help I just mean
You mean like this?Code:{ "ShowTimedCommands": "true", "TimedCommands": [ [ "say 'Automatic Restarts: 17:45, 20:30, 5:00, 6:00 (GMT + 3:00)", 1800 ], [ "say 'Server AUTOMATIC restart in 1 HOUR!!!'", 14400 ], [ "say 'Server AUTOMATIC restart in 10 MINUTES!!!'", 17400 ], [ "oxide.reload p-TimedExecute", 17940 ], [ "restart", 18000 ] ] }
TimedExecute [Unmaintained]
Discussion in 'Plugin Support' started by PaiN, Apr 7, 2015.
-
-
-
Code:{ "ShowTimedCommands": "true", "TimedCommands": [ [ "say 'Server RESTARTS every 5 hours, you get 2 warnings before the restart!", 1800 ], [ "say 'Server AUTOMATIC restart in 1 HOUR!!!'", 14400 ], [ "say 'Server AUTOMATIC restart in 10 MINUTES!!!'", 17400 ], [ "server.save", 17970 ], [ "restart", 18000 ] ] }
-
-
Hello from the swimming pool xD
-
PaiN for something like this you should add support for timmer.once means add a possibility to add something like this:
[
"once",
"restart",
18000
],
[
"repeat"
"say Heeeeeey :3",
1800
]
and add a console command like
execute.reset
to reset the timers
[DOUBLEPOST=1433670860][/DOUBLEPOST] -
There is a problem... timer once is useless... BUT i think after executing the commands u can set the reset command to start again
-
-
When i will come back home i will look into it .. now im just chilling
-
-
The once option would fix the whole issue, reasons: It would give opportunity to reload the plugin after the restart and give warnings every hour. Enjoy the sun
-
TY i will try to code on my phone JOKE
I have a paeudo code in my mind -
At server restarts i got this error:
Code:6:01 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'TimedExecute' File: p-TimedExecute.lua Line: 39 invalid arguments to method call: 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 (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
-
Here it is
I know you've asked last time why i need to send this in intervals, but i dont know why my server doesnt save this settings or removing them so i have no choise or knowing other ways to do so.Attached Files:
-
-
Can you post the code ? Im on my phone and i cant open .json with it
-
Code:
{ "ShowTimedCommands": "true", "TimedCommands": [ [ "ownerid 76561198001500181", "oxide.usergroup add 76561198001500181 admin", "oxide.usergroup add 76561198007995275 moderator", "oxide.usergroup add 76561198126456936 moderator", "oxide.usergroup add 76561198003802425 vip", "oxide.usergroup remove 76561198001500181 player", "oxide.usergroup remove 76561198007995275 player", "oxide.usergroup remove 76561198126456936 player", "oxide.usergroup remove 76561198003802425 player", 300 ], [ "oxide.reload updater", 600 ] ] }
-
[DOUBLEPOST=1433683487][/DOUBLEPOST]I've made the timer that everyone wanted... but now the Repeater is not working.. i will fix it and update the pluginLast edited by a moderator: Jun 7, 2015 -
PaiN updated TimedExecute with a new update entry:
Added TimerOnce and added commands to reset timers