Raised This Month: $ Target: $400
 0% 

[ReQ] hide some say commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
slypire
Junior Member
Join Date: May 2013
Old 08-10-2013 , 09:41   [ReQ] hide some say commands
Reply With Quote #1

Hi guys, have anybody idea and free time to make plugin that when someone say /rs, /knife and make that non seenable in chat, if you guys understand me, thanks!
slypire is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-10-2013 , 11:08   Re: [ReQ] hide some say commands
Reply With Quote #2

ConnorMcLeod recommended using the 2nd plugin

PHP Code:
#include < amxmodx >

public plugin_init( )
{
    
register_plugin"Hide Slash Commands""1.0.0""Kreation" );
    
    
register_clcmd"say""CmdSay" );
    
register_clcmd"say_team""CmdSay" );
}

public 
CmdSayid )
{
    new 
szArg[192];
    
read_argsszArgcharsmaxszArg ) );
    
remove_quotesszArg );
    
    return ( 
szArg[0] == '/' );



or


PHP Code:
#include < amxmodx > 

public plugin_init( )  

    
register_plugin"Hide Slash Commands""1.0.0""Kreation" ); 
    
register_clcmd"say""CmdSay" ); 
    
register_clcmd"say_team""CmdSay" ); 


public 
CmdSayid 

    new 
szArg[4]; 
    
read_argsszArgcharsmaxszArg ) ); 
    
remove_quotesszArg ); 

    return 
szArg[0] == '/' PLUGIN_HANDLED_MAIN PLUGIN_CONTINUE


http://forums.alliedmods.net/showpos...5&postcount=22


#3


PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "HideCommand"
#define VERSION "1.0"
#define AUTHOR "Kreation"

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say""CheckMsg")
    
register_clcmd("say_team""CheckMsg")
}

public 
CheckMsg(id)
{
    new 
szMessage[192]

    
read_args(szMessagecharsmaxszMessage ))
    
remove_quotesszMessage )

    if(
szMessage[0] == '/')
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE


Last edited by sami_spt; 08-11-2013 at 02:31.
sami_spt is offline
slypire
Junior Member
Join Date: May 2013
Old 08-10-2013 , 11:15   Re: [ReQ] hide some say commands
Reply With Quote #3

Thank you.
slypire is offline
slypire
Junior Member
Join Date: May 2013
Old 08-10-2013 , 16:43   Re: [ReQ] hide some say commands
Reply With Quote #4

Hmm, now i tried this but i still see when someone say /rs or /knife, any solutions? thanks!
slypire is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-10-2013 , 16:47   Re: [ReQ] hide some say commands
Reply With Quote #5

Quote:
Originally Posted by slypire View Post
Hmm, now i tried this but i still see when someone say /rs or /knife, any solutions? thanks!
When saying something doesn't work you need to give more details. Which one did you try? Are those the only commands that are not blocked? Is the plugin running? Where is the plugin in the plugin order?

More details!
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-10-2013 , 16:48   Re: [ReQ] hide some say commands
Reply With Quote #6

Declare this plugin at the end of plugins.ini

And after that plugin, put the chat colored or adminchat or adminlisten plugins you are using.

Also, in this plugin, replace PLUGIN_HANDLED_MAIN with PLUGIN_HANDLED
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
slypire
Junior Member
Join Date: May 2013
Old 08-10-2013 , 17:41   Re: [ReQ] hide some say commands
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Declare this plugin at the end of plugins.ini

And after that plugin, put the chat colored or adminchat or adminlisten plugins you are using.

Also, in this plugin, replace PLUGIN_HANDLED_MAIN with PLUGIN_HANDLED

Its same again ...
slypire is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-11-2013 , 02:24   Re: [ReQ] hide some say commands
Reply With Quote #8

Let's answer fysiks then.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-11-2013 , 02:30   Re: [ReQ] hide some say commands
Reply With Quote #9

added #3 plugin in post #2

Last edited by sami_spt; 08-11-2013 at 02:30.
sami_spt is offline
akash_guptacosmos
Senior Member
Join Date: May 2013
Location: India,Kolkata
Old 08-11-2013 , 02:33   Re: [ReQ] hide some say commands
Reply With Quote #10

Attached Files
File Type: sma Get Plugin or Get Source (slash.sma - 637 views - 514 Bytes)
akash_guptacosmos 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 00:05.


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