[Help] Set TIme to a Menu
How i set time in a menu ? Because i need the menu have only 10 seconds to choose 1 option.
Sory, if im using bad english. |
Re: [Help] Set TIme to a Menu
- Create the menu with the default time in a global variable.
- use set_task() with a 1.0 interval & reduce the time variable by 1. - Destroy & recreate the menu again until the time var is 0. There are several plugins that use countdowns in menu's. Try looking at the code of those. |
Re: [Help] Set TIme to a Menu
I just want the menu disapear in 10 seconds if any option is choosed...
|
Re: [Help] Set TIme to a Menu
I'm confused.
A menu automaticly disappears when you choose any option. |
Re: [Help] Set TIme to a Menu
but if someone is afk, the menu keeps opened... and i dont want that
|
Re: [Help] Set TIme to a Menu
Then set a task when you create the menu
& use PHP Code:
|
Re: [Help] Set TIme to a Menu
You could use old style menus (they have a time argument for how long the menu will show) or you can just set a task to use menu_cancel on a player (the menu will still show, but the menu will not work).
Additionally, instead of menu_cancel you could use: Code:
show_menu( iPlayer, 0, "^n", 1 ); |
Re: [Help] Set TIme to a Menu
How i put it in here:
PHP Code:
|
| All times are GMT -4. The time now is 08:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.