Raised This Month: $ Target: $400
 0% 

Hide command for get_concmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-15-2009 , 16:38   Hide command for get_concmd
Reply With Quote #1

As title - how to correctly register command, to hide it ? Command wont be show with get_concmd use.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Enipy
BANNED
Join Date: Jan 2009
Old 02-15-2009 , 16:45   Re: Hide command for get_concmd
Reply With Quote #2

register_clcmd( "command","func")

Not it?
Enipy is offline
Send a message via MSN to Enipy
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-15-2009 , 16:55   Re: Hide command for get_concmd
Reply With Quote #3

Don't know if it's possible, but if it's not, you could use client_command forward in your plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-19-2009 , 17:41   Re: Hide command for get_concmd
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
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.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-19-2009 , 19:38   Re: Hide command for get_concmd
Reply With Quote #5

Quote:
Originally Posted by Sn!ff3r View Post
If I understand you, register_clcmd is also showed.
Actually, it isn't.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-19-2009 , 20:22   Re: Hide command for get_concmd
Reply With Quote #6

I think you can use ADMIN_ALL for the third parameter.
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`
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-19-2009 , 20:26   Re: Hide command for get_concmd
Reply With Quote #7

Emp`, I believe you can also. register_clcmd() holds more than two parameters so adding in ADMIN_ALL would work.
BOYSplayCS is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 02-20-2009 , 08:44   Re: Hide command for get_concmd
Reply With Quote #8

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.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
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 16:58.


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