AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide command for get_concmd (https://forums.alliedmods.net/showthread.php?t=85766)

Sn!ff3r 02-15-2009 16:38

Hide command for get_concmd
 
As title - how to correctly register command, to hide it ? Command wont be show with get_concmd use.

Enipy 02-15-2009 16:45

Re: Hide command for get_concmd
 
register_clcmd( "command","func")

Not it?

ConnorMcLeod 02-15-2009 16:55

Re: Hide command for get_concmd
 
Don't know if it's possible, but if it's not, you could use client_command forward in your plugin.

Sn!ff3r 02-19-2009 17:41

Re: Hide command for get_concmd
 
Quote:

Originally Posted by ConnorMcLeod (Post 762237)
Don't know if it's possible, but if it's not, you could use client_command forward in your plugin.

If I understand you, register_clcmd is also showed.

Exolent[jNr] 02-19-2009 19:38

Re: Hide command for get_concmd
 
Quote:

Originally Posted by Sn!ff3r (Post 764914)
If I understand you, register_clcmd is also showed.

Actually, it isn't.

Emp` 02-19-2009 20:22

Re: Hide command for get_concmd
 
I think you can use ADMIN_ALL for the third parameter.

BOYSplayCS 02-19-2009 20:26

Re: Hide command for get_concmd
 
Emp`, I believe you can also. register_clcmd() holds more than two parameters so adding in ADMIN_ALL would work.

Sn!ff3r 02-20-2009 08:44

Re: Hide command for get_concmd
 
Hmm...
Quote:

Some notes from source code reading:
* index is the console command index. If it's lower than 0, then it's a valid command index value that is returned by register_concmd or register_clcmd or register_srvcmd (and maybe some other functions). Otherwise, it refers to the command index in a list of available console commands that have a type related to id and access flags matching flag.


All times are GMT -4. The time now is 16:58.

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