mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 14:58:06 +03:00
Update pluginmenu.sma
OciXCrom's advice
This commit is contained in:
parent
f44e6d58ef
commit
2e1b9a9b1e
@ -114,6 +114,10 @@ public client_connect(id)
|
||||
*/
|
||||
stock DisplayPluginMenu(id,const MenuText[], const Handler[], const Command[], const Callback[])
|
||||
{
|
||||
// Fix
|
||||
if(!is_user_connected(id))
|
||||
return;
|
||||
|
||||
new Menu=menu_create(MenuText,Handler);
|
||||
|
||||
|
||||
@ -469,7 +473,7 @@ public CvarMenuSelection(id, menu, item)
|
||||
{
|
||||
menu_destroy(menu);
|
||||
|
||||
if (ExplicitPlugin[id]==-1 && is_user_connected(id)) // Fix
|
||||
if (ExplicitPlugin[id]==-1)
|
||||
{
|
||||
DisplayPluginMenu(id,"Plugin Cvar Menu:", "PluginMenuSelection","DisplayCvarMenu","GetNumberOfCvarsForPlid");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user