finding time left in a round
Im having trouble figureing this out. Please help me out. I need to find the time left on a round.
Code:
Thanks in advance :D |
Edit: Sry bout that
|
thats for the map time. i need round :shock:
|
Woops sry didn't see :P I'll look into it.
|
okay <3 :D
|
Code:
this stores the game time when a new round starts. when you call the function, it determines how much time has gone by since then, and subtracts it from the maximum round time. |
mp_roundtime is in minutes
get_systime() is in seconds Also i'm not sure but i think that roundtime not depend on systime but on get_gametime because server can lag etc. |
thanks. i have updated the code.
|
You have to do get_cvar_float("mp_roundtime") in other case (0.X * 60) seconds of roundtime could be missed.
And CS mostly uses floor rounding method. |
alright then, fixed.
|
| All times are GMT -4. The time now is 20:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.