Update pluginmenu.sma

OciXCrom's advice
This commit is contained in:
Totopizza 2019-11-30 10:46:00 -06:00 committed by GitHub
parent f44e6d58ef
commit 2e1b9a9b1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}