Raised This Month: $51 Target: $400
 12% 

[Help] / ( Slash ) Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-28-2022 , 08:34   [Help] / ( Slash ) Commands
Reply With Quote #1

Hi.
I want to know how I Hide / ( slash ) commands from chat?
Ex: /owners, /cam, /class, /bank.
Is there any plugin for hiding these commands or need to change some settings?
Need help.
crystal xtreme is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-28-2022 , 09:52   Re: [Help] / ( Slash ) Commands
Reply With Quote #2

Edit each plugin.
__________________
DJEarthQuake is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-28-2022 , 10:15   Re: [Help] / ( Slash ) Commands
Reply With Quote #3

It's not full answer man how i edit it?
what i need to edit? Which code? And which file?
crystal xtreme is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-28-2022 , 13:29   Re: [Help] / ( Slash ) Commands
Reply With Quote #4

Quote:
Originally Posted by DJEarthQuake View Post
Edit each plugin.
You're joking, right?

Quote:
Originally Posted by crystal xtreme View Post
It's not full answer man how i edit it?
what i need to edit? Which code? And which file?
https://forums.alliedmods.net/showthread.php?t=162005

Search next time. Searched and found it within a minute
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-29-2022 , 00:36   Re: [Help] / ( Slash ) Commands
Reply With Quote #5

Quote:
Originally Posted by Napoleon_be View Post
You're joking, right?
To be fair, that is ONE solution.
__________________

Last edited by fysiks; 07-31-2022 at 19:41. Reason: remove flawed quoted solution
fysiks is offline
crystal xtreme
Member
Join Date: Sep 2021
Location: Pakistan, Karachi.
Old 07-31-2022 , 09:59   Re: [Help] / ( Slash ) Commands
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
To be fair, that is ONE solution.



There were some posts in that thread that don't work so here is the final solution:
Thanks.But it's still not working sir.
crystal xtreme is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2022 , 19:44   Re: [Help] / ( Slash ) Commands
Reply With Quote #7

Quote:
Originally Posted by crystal xtreme View Post
Thanks.But it's still not working sir.
I found the issue. Here is a working version that I tested locally:

PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Hide Slash Commands""1.0.0""AMX Mod X Community" );
    
register_clcmd"say""CmdSay" );
    
register_clcmd"say_team""CmdSay" );
}

public 
CmdSayid )
{
    new 
szArg[4];
    
read_argsszArgcharsmaxszArg ) );

    return 
szArg[1] == '/' PLUGIN_HANDLED_MAIN PLUGIN_CONTINUE;

__________________
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 01:49.


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