View Single Post
massouh2004
Junior Member
Join Date: Mar 2018
Location: Casablanca, Morocco.
Old 03-22-2018 , 14:00   Re: Hide slash messages
Reply With Quote #17

Quote:
Originally Posted by CookieCrumbler View Post
Hardcode return PLUGIN_HANDLED into your plugin

eg:

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /saysomething""some_command"ADMIN_BAN);
}


public 
some_command()
{
    if ( 
whatever == something 
    {
        
server_cmd("say Printing some message from using /saysomething say command")
    
        return 
PLUGIN_HANDLED
    
}

    return 
PLUGIN_CONTINUE;   

Please explaine to me why you used this code and by what we should name it?

PHP Code:
    if ( whatever == something 
    { 
massouh2004 is offline