Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Fixed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed Oct 19, 2017
1 parent 42280b4 commit 6e68173
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vSync/vs_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,28 @@ end, false)


RegisterCommand('morning', function(source)
local ps = source
if isAllowedToChange(ps) then
if isAllowedToChange(source) then
Time.h = 9
Time.m = 0
TriggerEvent('requestSync')
end
end)
RegisterCommand('noon', function(source)
if isAllowedToChange(ps) then
if isAllowedToChange(source) then
Time.h = 12
Time.m = 0
TriggerEvent('requestSync')
end
end)
RegisterCommand('evening', function(source)
if isAllowedToChange(ps) then
if isAllowedToChange(source) then
Time.h = 18
Time.m = 0
TriggerEvent('requestSync')
end
end)
RegisterCommand('night', function(source)
if isAllowedToChange(ps) then
if isAllowedToChange(source) then
Time.h = 23
Time.m = 0
TriggerEvent('requestSync')
Expand Down

0 comments on commit 6e68173

Please sign in to comment.