Opening a menu
How can i make it so that only one admin at a time is able to access the menu from a plugin.
For eg. Code:
public checkformenu(id) |
Re: Opening a menu
Post in Suggestion/Requests section if you don't know how to script.
PHP Code:
|
Re: Opening a menu
This false due to menu override.
Check in a loop if a player has that menu opened. |
Re: Opening a menu
Quote:
|
Re: Opening a menu
Menu override means opening a new menu while the old menu is being displayed which result in not calling the handler of the old menu that were displayed.
|
Re: Opening a menu
Quote:
|
Re: Opening a menu
To check if a player has the menu opened.
|
Re: Opening a menu
Quote:
https://github.com/alliedmodders/amx...modx.cpp#L1306 https://github.com/alliedmodders/amx...modx.cpp#L1316 https://github.com/alliedmodders/amx...menus.cpp#L862 |
Re: Opening a menu
Seems like it was an old bug not sure if it was fixed in v182
https://forums.alliedmods.net/showthread.php?p=407839 Still it will be much better to use player_menu_info to check if the user has the menu displayed since it covers most cases. |
| All times are GMT -4. The time now is 17:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.