Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GAMEMODE.Rounds={}
- GAMEMODE.Rounds.CurRound=0
- GAMEMODE.Rounds.TimeStarted=CurTime() or 0
- GAMEMODE.Rounds.TimeToEnd=-1
- GAMEMODE.Rounds.Waiting=false
- function GetCurrentRound()
- return GAMEMODE.Rounds.CurRound
- end
- function GetRoundStartTime()
- return GAMEMODE.Rounds.TimeStarted
- end
- function GetRoundEndTime()
- if !(GAMEMODE.Rounds.TimeToEnd==-1) then
- return GAMEMODE.Rounds.TimeToEnd
- end
- end
- usermessage.Hook("roundData", function(data)
- GAMEMODE.Rounds.CurRound=data:ReadLong() or GAMEMODE.Rounds.CurRound
- GAMEMODE.Rounds.TimeStarted=data:ReadLong() or GAMEMODE.Rounds.TimeStarted
- GAMEMODE.Rounds.TimeToEnd=data:ReadLong() or GAMEMODE.Rounds.TimeToEnd
- end)
- usermessage.Hook("roundWaiting", function(data)
- GAMEMODE.Rounds.Waiting=data:ReadBool()
- GAMEMODE.Rounds.TimeStarted=data:ReadLong() or GAMEMODE.Rounds.TimeStarted
- end)
Advertisement
Add Comment
Please, Sign In to add comment