mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Update control.lua
Fixed some spelling and added a nice dash to make it look better
This commit is contained in:
@@ -6,7 +6,7 @@ Contact a member of management on our discord to seek permission to use our code
|
|||||||
Any changes that you may make to the code are yours but that does not make the script yours.
|
Any changes that you may make to the code are yours but that does not make the script yours.
|
||||||
Discord: https://discord.gg/XSsBV6b
|
Discord: https://discord.gg/XSsBV6b
|
||||||
|
|
||||||
The credit below may be used by another script do not remove.
|
The credit below may be used by another script - do not remove.
|
||||||
]]
|
]]
|
||||||
local credits = {{
|
local credits = {{
|
||||||
name='Control',
|
name='Control',
|
||||||
@@ -28,11 +28,11 @@ Event.register(defines.events.on_tick,init)
|
|||||||
--loads all the other scripts
|
--loads all the other scripts
|
||||||
Event.gui_update = script.generate_event_name()
|
Event.gui_update = script.generate_event_name()
|
||||||
credit_loop(require("locale/file-header"))
|
credit_loop(require("locale/file-header"))
|
||||||
--below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes fell free to change the update time on that
|
--below 'game.tick/(3600*game.speed)) % 15 == 0' raises the gui_update event every 15 minutes - feel free to change the update time
|
||||||
Event.register(defines.events.on_tick, function(event)
|
Event.register(defines.events.on_tick, function(event)
|
||||||
if (game.tick/(3600*game.speed)) % 15 == 0 then
|
if (game.tick/(3600*game.speed)) % 15 == 0 then
|
||||||
for _,player in pairs(game.connected_players) do sudo(find_new_rank,{player}) end
|
for _,player in pairs(game.connected_players) do sudo(find_new_rank,{player}) end
|
||||||
script.raise_event(Event.gui_update,{tick=game.tick})
|
script.raise_event(Event.gui_update,{tick=game.tick})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
Event.register(-1,function() global.credits = credits end)
|
Event.register(-1,function() global.credits = credits end)
|
||||||
|
|||||||
Reference in New Issue
Block a user