[HELP] Auto close menu with HUD timer
I'm trying to create a function that will auto close this menu after 20 seconds (cvar).
But seems that i'm doing something wrong! PHP Code:
|
Re: Auto close menu with HUD timer
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.
|
Re: Auto close menu with HUD timer
PHP Code:
|
Re: Auto close menu with HUD timer
Quote:
Quote:
|
Re: Auto close menu with HUD timer
hudtimer = 0
remove_task(TASKID) Use this in the beginning of the menu function. |
Re: Auto close menu with HUD timer
PHP Code:
|
Re: Auto close menu with HUD timer
Still not working, my bad!
|
Re: [HELP] Auto close menu with HUD timer
No one can help?
|
Re: [HELP] Auto close menu with HUD timer
Just try below code:
PHP Code:
|
Re: [HELP] Auto close menu with HUD timer
Nope, doesn't work! The hud count is not displayed, only the menu is displayed.
|
| All times are GMT -4. The time now is 22:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.