Code:
#include <amxmodx>
new phrase[5][] = {"kanker", "kk", "kenker", "hoer", "neger"}
public say_event(id)
{
new sid[10]
num_to_str(id,sid,10)
new said[192]
read_args(said,191)
for(new i = 0 ;i < 4; i += 1)
if(containi(said,phrase[i]) != -1)
set_task(1.0,"client",0,sid,10)
}
public client(sid[])
{
new id = str_to_num(sid)
engclient_cmd(id,"say", "ik ben een ZIELIGE! LOZER!!! ik kan alleen maar schelden!!!!")
set_user_info(id,"name","ikbenzielig!!")
user_slap(id,10)
client_print(id, print_chat, "[AMXX] Je bent geslapt voor schelden, niet weer doen dit is een waarschuwing")
}
public plugin_init()
{
register_plugin("DONTsay","1.0","biohazz")
register_clcmd("say","say_event")
return PLUGIN_CONTINUE
}
(some of it is dutch so maby some of u dont understand)
i want to make it that when some 1 says 1 of the words for the second time hes getting slayd and when he says 1 of those words for the thirdt time that he is getting kickt but i cant get it work can some 1 do that for me pleas? (im a noob in scripting

)