Hello there,
i hooked say, but for example im saying 'You know i love you' i still unlock the phrase, it has to be only: 'i love you' for example. What am i doing wrong here?
PHP Code:
public CmdSay(id)
{
new message[192], name[32]
read_args(message, charsmax(message))
get_user_name(id, name, 31)
remove_quotes(message)
if (contain(message, "i love you") >= 0)
{
client_cmd(0, "spk misc/trophy.wav")
ColorChat(id, GREY, "%s ^4%s^1 has unlocked the achievement: ^4Secret Phrase #1", Prefix, name)
return PLUGIN_HANDLED
}
if (contain(message, "i hate you") >= 0)
{
client_cmd(0, "spk misc/trophy.wav")
ColorChat(id, GREY, "%s ^4%s^1 has unlocked the achievement: ^4Secret Phrase #2", Prefix, name)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
__________________