halo i am trying to script a anti flood plugin,but i need some help
PHP Code:
public plugin_init()
{
register_clcmd ("say", "hook_say")
}
public hook_say(id)
{
read_args (message, 191)
remove_quotes (message)
if(equal (message,oldmessage)) //<<<<<here is not work
{
client_print(id,print_chat,"Don't flood the server")
return PLUGIN_HANDLED
}
//.............
oldmessage = message
format (message, 191, "%s")
sendMessage (color, isAlive) // Sends the colored message
}
__________________