Quote:
Originally Posted by giogio91
dosen't work at all...
maybe worked long time ago , when hacker's weren't soooo advanced...
maybe somebody can make one that works ^_^ would be very nice of him'
IMAGE...
|
basic filter
PHP Code:
public plugin_init() {
//...
register_clcmd("say", "get_say")
}
new const g_filter[][] =
{
"fuck",
"gay"
}
public get_say(id)
{
new msg[192]
read_args(msg, charsmax(msg))
remove_quotes(msg)
for(new i; i < sizeof g_filter; i++)
{
if(containi(msg, g_filter[i]) != -1)
{
client_print(id, print_notify, "blocked word")
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
__________________