Quote:
Originally Posted by Black Rose
I thought that some other plugin was supposed to block them.
If not, you can use this:
Code:
#include <amxmodx>
#include <cstrike>
new gCommands[][] = {
"/rs",
"/rank"
}
public plugin_init() {
register_plugin("Block", "1.0", "[ --{-@ ]");
set_task(0.8, "PlaceAlmostLastInQue");
}
public PlaceAlmostLastInQue() {
register_clcmd("say", "HandleSay");
register_clcmd("say_team", "HandleSay");
}
public HandleSay(id) {
if ( ! is_user_connected(id) )
return PLUGIN_CONTINUE;
static Text[192];
read_args(Text, charsmax(Text));
remove_quotes(Text);
trim(Text);
if ( ! Text[0] )
return PLUGIN_HANDLED;
for ( new i ; i < sizeof gCommands ; i++ ) {
if ( equali(Text, gCommands[i], strlen(gCommands[i])) )
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
|
This new plugins to block some commands ?
That's what what i want
You can make add it on first post ultimate_chat_block.sma it will be cool for most..
Thanks a lot.
EDIT: where to place this plugin, above or under ultimate chat ?