View Single Post
metal_upa
Senior Member
Join Date: Jun 2016
Old 04-30-2024 , 03:43   Re: Open MENU on button N
Reply With Quote #5

Quote:
Originally Posted by SaraAki View Post
No error in debug,and yes i try register_clcmd("nightvision", "cmdMenu") but nothing happend when i press N.
Of course it not work because it need at least 2 arguments.

Something like:
PHP Code:
public plugin_init()
{
    
register_clcmd("nightvision""OnDummyMenu");
}

public 
OnDummyMenu(id)
{
    
menuMain(id0); //this is sthe problem
    
return PLUGIN_HANDLED//block original NVG

metal_upa is offline