how to check when round time has expired?
Is there an accurate way to detect when round time has expired when there is no objective in map?
|
Re: how to check when round time has expired?
I'm not very updated. Someone will point out if there's a better way.
https://wiki.alliedmods.net/Half-Lif...ents#RoundTime I haven't tested it as my server is not running currently. Code:
|
Re: how to check when round time has expired?
Won't work, this message is only sent with initial value (freezetime, or roundtime, or intermediar value when players is spawned at middle of round/freezetime), the count down is made on client.
To prevent an XY problem, tell what you want to do with this detection. |
Re: how to check when round time has expired?
I want to forces end round when round time has expired.
|
Re: how to check when round time has expired?
If you use linux, try this :
PHP Code:
And function signature : On windows the function is not called, that's why plugin can't work. Code:
{ |
Re: how to check when round time has expired?
I don't usually use Linux.
Anyway, maybe it would be useful for sometimes. Thanks. |
Re: how to check when round time has expired?
Try with a task then.
PHP Code:
|
Re: how to check when round time has expired?
Not a bad idea :)
Thanks. |
Re: how to check when round time has expired?
Quote:
|
| All times are GMT -4. The time now is 10:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.