menu display and destroy
1.
PHP Code:
2. Second question in this post. |
Re: menu display and destroy
Exactly.
If your menu is not dynamic, create it in plugin_init and do never use destroy. |
Re: menu display and destroy
What do you mean by saying dynamic? What's the difference between static and dynamic menus?
|
Re: menu display and destroy
Its a identical menu for any players and don't change in any case...
|
Re: menu display and destroy
So if it's separated by the teams (Ts see one options and CTs others) so it's dynamical?
One more common question. Is it correct way to display same menu again after players choise (want to make multiple choises from menu) PHP Code:
|
Re: menu display and destroy
Code is correct, if you want to show again menu, don't destroy it.
You could add alive check in SomeMenu function though. |
Re: menu display and destroy
Quote:
Anyways i make both alive check in SomeMenu and menu_handler just to be sure :D |
Re: menu display and destroy
You can add the is_user_alive check in both the menu handler and SomeFunction.
|
| All times are GMT -4. The time now is 10:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.