I got this plugin to block some special symbols in chat but i want it to be blocked in Player Names too,
Thanks in advance
PHP Code:
#include <amxmodx>
#include <colorchat>
new const gBlockTexts[][] = {
"",
"",
"",
"",
"#",
"%"
};
public plugin_init()
{
register_plugin("Block Special Symbols", "1.0", "[~]~[N]o.Ob [K]iLl3r~[~]");
register_clcmd("say", "CmdSay");
register_clcmd("say_team", "CmdSay");
}
public CmdSay(id)
{
new args[192];
read_args(args, charsmax(args));
remove_quotes(args);
for(new i = 0; i < sizeof(gBlockTexts); i++) {
if(containi(args, gBlockTexts[i]) != -1 ) {
ColorChat(id, print_chat, "Using ^3Special Symbols ^1is not ^4allowed")
}
}
return PLUGIN_CONTINUE;
}