Raised This Month: $120 Target: $400
 30% 

[HELP] Get current round time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HelloBaBeS
New Member
Join Date: Dec 2018
Old 12-06-2018 , 11:45   [HELP] Get current round time
Reply With Quote #1

Hello,
how to get the current round time?
HelloBaBeS is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 12-06-2018 , 11:55   Re: [HELP] Get current round time
Reply With Quote #2

new Float:seconds = get_pcvar_float( get_cvar_pointer("mp_roundtime") ) * 60.0
__________________
My English is A0
E1_531G is offline
HelloBaBeS
New Member
Join Date: Dec 2018
Old 12-06-2018 , 12:11   Re: [HELP] Get current round time
Reply With Quote #3

I want it when 15 seconds before the end of the round to make a hud appear
HelloBaBeS is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 12-06-2018 , 12:29   Re: [HELP] Get current round time
Reply With Quote #4

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 )
__________________
My English is A0

Last edited by E1_531G; 12-06-2018 at 12:30.
E1_531G is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode