Raised This Month: $ Target: $400
 0% 

[Question]Hide Messages Start With Slash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-07-2012 , 15:13   Re: [Question]Hide Messages Start With Slash
Reply With Quote #22

Better to return PLUGIN_HANDLED_MAIN so place where you declare it in plugins.ini doesn't matter :
Also, array size can be reduced.

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;

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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 05:52.


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