AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Get current round time (https://forums.alliedmods.net/showthread.php?t=312496)

HelloBaBeS 12-06-2018 10:45

[HELP] Get current round time
 
Hello,
how to get the current round time?

E1_531G 12-06-2018 10:55

Re: [HELP] Get current round time
 
new Float:seconds = get_pcvar_float( get_cvar_pointer("mp_roundtime") ) * 60.0

HelloBaBeS 12-06-2018 11:11

Re: [HELP] Get current round time
 
I want it when 15 seconds before the end of the round to make a hud appear

E1_531G 12-06-2018 11:29

Re: [HELP] Get current round time
 
On round start:
Quote:

new Float:timer = (get_pcvar_float( get_cvar_pointer("mp_roundtime") ) * 60.0) - 15.0
set_task( timer, "When15secondsLeft", random_task_id )


All times are GMT -4. The time now is 07:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.