Im making a better plugin but some of it is not working.
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("Say Event","1.0","NicK")
register_clcmd("say","say_event")
}
public plugin_precache()
{
precache_sound("misc/doh4.wav")
precache_sound("misc/fucku.wav")
precache_sound("misc/ahh.wav")
}
new phrase[1][] = { "doh" }
new phrasetwo[1][] = { "fu" }
new phrasethree[1][] = { "ahh" }
new phrasefour[8][] = { "bs", "bullshit", "hacker", "hack", "hax", "speedhack", "wallhack", "aimbot"}
new phrasefive[8][] = { "noobed", "newbie", "suxor", "owned", "newb", "whore", "awp", "gay"}
new phrasesix[8][] = { "gay", "fag", "homo", "ghey", "queer", "noob", "loser", "bitch"}
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 < 1; i += 1)
if(containi(said,phrase[i]) != -1) {
set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2)
show_hudmessage(0,"DOH!!!")
set_task(1.0,"client",0,sid,10)
break
}
else if(containi(said,phrasetwo[i]) != -1) {
set_hudmessage(225, 25, 25, -1.0, 0.32, 0, 2.0, 9.0, 0.8, 0.8, 2)
show_hudmessage(0,"You son of a bitch!!!")
set_task(1.0,"client2",0,sid,10)
break
}
else if(containi(said,phrasethree[i]) != -1) {
set_task(1.0,"client3",0,sid,10)
break
}
else if(containi(said,phrasefour[i]) != -1) {
set_task(1.0,"client4",0,sid,10)
break
}
else if(containi(said,phrasefive[i]) != -1) {
set_task(1.0,"client5",0,sid,10)
break
}
else if(containi(said,phrasesix[i]) != -1) {
set_task(1.0,"client6",0,sid,10)
break
}
}
public client(sid[])
client_cmd(0,"spk misc/doh4")
public client2(sid[])
client_cmd(0,"spk misc/fucku")
public client3(sid[])
client_cmd(0,"spk misc/ahh")
public client4(sid[])
engclient_cmd(sid[0],"say", "But Im just balming my noobness on you")
public client5(sid[])
engclient_cmd(sid[0],"say", "I really am just a noob though")
public client6(sid[])
engclient_cmd(sid[0],"say", "Admin I disrespect everyone on this server, including you!!!")
Any of the words that are replaced with But Im just balming my noobness on you, I really am just a noob though, Admin I disrespect everyone on this server, including you!!!, do not work, in console it says stop flooding the server. The play of the wav sounds work though. Anyone know what the problem is?