AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Unkown Command Change?? (https://forums.alliedmods.net/showthread.php?t=178160)

kiki33hun 02-12-2012 05:54

Unkown Command Change??
 
How to change unkown command text?

PHP Code:

public handle_say(id
{
static 
szSaid16 ];
read_argsszSaid charsmaxszSaid ) );
parseszSaid szSaid charsmaxszSaid ) );

if( 
equaliszSaid "blabla") || equaliszSaid "blaablaa") || equaliszSaid "/test") ) 
{
return 
1;
}

return 
client_print(idprint_chat"Unkown Command")


This posibble?

Flipper_SPb 02-12-2012 06:37

Re: Unkown Command Change??
 
PHP Code:

    return client_print(idprint_chat"Unkown Command"
    return 
PLUGIN_HANDLED


?

What do you want exactly?

Devil259 02-12-2012 10:02

Re: Unkown Command Change??
 
To remove the "Unknown command" in console, just return PLUGIN_HANDLED.


All times are GMT -4. The time now is 11:13.

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