AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide Con Command (https://forums.alliedmods.net/showthread.php?t=74385)

Reaper2331 07-17-2008 17:05

Hide Con Command
 
how to i hide a con command from the amx_help command?

AntiBots 07-17-2008 17:15

Re: Hide Con Command
 
Pause adminhelp.amxx

or change "amx_help" "" to

"amx_help" "l" ; adminhelp.amxx in cmdaccess.ini in config dir.

Exolent[jNr] 07-17-2008 17:25

Re: Hide Con Command
 
He wants to hide a particular command, not all of them.

Reaper2331 07-17-2008 17:59

Re: Hide Con Command
 
yeah i guess i should of worded it better...

i want to hide a command from showing up in the amx_help list.

im making a plugin and in the plugin it it registering a concmd and my head admins and high admins all have the same flag im registering it to. i only want the head admins to know about it...i know i could just change the flags but for my reasons(clan reasons) i only want to hide the commands.

EDIT:
would puting the plugin before the
adminhelp.amxx ; help command for admin console commands

work?

AntiBots 07-17-2008 19:55

Re: Hide Con Command
 
The only posible that i know is disable adminhelp.amxx.
But someone can know another opcion.

EDIT:
Or you can put LEVEL_H or A,B,C,D,E,F,G and only put that flag for the admin that can use that plugin.

travo 07-18-2008 12:32

Re: Hide Con Command
 
there might be a easier way, but I would do this

PHP Code:


public client_command(id)
{
    new 
command[20];
    
read_argv(0command19);
    if (
containi(command"amx_whatever") != -1)
    {
        new 
target[30];
        
read_argv(1target29);
        new 
player cmd_target(idtarget2);

    }



Exolent[jNr] 07-18-2008 13:47

Re: Hide Con Command
 
Why would you use contain[i]() when checking for command?
If you are doing that way, you should use equal[i]()

Reaper2331 07-25-2008 19:23

Re: Hide Con Command
 
so ever find a way to do this?

Exolent[jNr] 07-25-2008 19:42

Re: Hide Con Command
 
you could do:

Code:
public plugin_init() {     register_clcmd("your_command", "CmdYourCommand", ADMIN_FLAGS, "description");     register_srvcmd("your_command", "CmdYourCommand", -1, "description"); } public CmdYourCommand() {     // ... }

hleV 07-25-2008 19:47

Re: Hide Con Command
 
PHP Code:

register_concmd("amx_test""Test"

?


All times are GMT -4. The time now is 05:30.

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