Raised This Month: $32 Target: $400
 8% 

[HELP] Get current round time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HelloBaBeS
Junior Member
Join Date: Dec 2018
Old 12-06-2018 , 10: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 , 10: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
Junior Member
Join Date: Dec 2018
Old 12-06-2018 , 11: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 , 11: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 11: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 02:39.


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