Raised This Month: $ Target: $400
 0% 

Is there a way to hide a command from amx_help?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-22-2011 , 16:11   Re: Is there a way to hide a command from amx_help?
Reply With Quote #1

From amxmodx.cpp
Code:
	if (access < 0)		// is access is -1 then hide from listing
	{
		access = 0;
		listable = false;
	}
Setting the flags to -1 (leaving the default value) will cause it to not be shown.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2011 , 16:14   Re: Is there a way to hide a command from amx_help?
Reply With Quote #2

Quote:
Originally Posted by Emp` View Post
From amxmodx.cpp
Code:
	if (access < 0)		// is access is -1 then hide from listing
	{
		access = 0;
		listable = false;
	}
Setting the flags to -1 (leaving the default value) will cause it to not be shown.
Interesting. Too bad there is no way to do it from cmdaccess.ini.

So, in conclusion, the plugin which contains the command needs to be edited so that the third argument of the register command is -1.
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode