Code:
#include <amxmodx>
public plugin_init() {
register_plugin("X-Spectate Removal","0.10","Avalanche");
register_clcmd("say","cmd_say",-1);
}
public cmd_say(id) {
new text[256];
read_args(text,255);
if(containi(text,"X-Spectate") != -1) {
new authid[32];
get_user_authid(id,authid,31);
server_print("User #%d (%s) said X-Spectate string",id,authid);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
If they say something that contains "X-Spectate" it will block it and send a print message to the server.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS