Raised This Month: $ Target: $400
 0% 

[HELP] Auto close menu with HUD timer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 10-17-2015 , 10:20   Re: Auto close menu with HUD timer
Reply With Quote #1

PHP Code:
set_task(get_pcvar_num(cvar), "close_menu"TASKID__"b"
Hope im right...
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
CHE4TER
Member
Join Date: Jul 2013
Location: Portugal
Old 10-17-2015 , 16:13   Re: Auto close menu with HUD timer
Reply With Quote #2

Quote:
Originally Posted by OciXCrom View Post
It's counting like that because you have opened the menu more than once, which causes the task to be called multiple times. Reset the timer when opening the menu.
Can u show?


Quote:
Originally Posted by Chihuahuax View Post
PHP Code:
set_task(get_pcvar_num(cvar), "close_menu"TASKID__"b"
Hope im right...
The cvar is for the time wich will close the menu. set_task(1.0) = start the counter after 1 second.
CHE4TER is offline
Reply



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 22:08.


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