Hello,
This morning I've quickly created a little plugin:
Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("Chat-Abuse Punisher","0.01","wayz")
register_clcmd("say", "CmdSpam")
}
public CmdSpam(id)
{
new said[192]
read_args(said,192)
new name[32]
get_user_name(id, name, 31)
if( ( containi(said, "TEST") != -1 ) )
{
server_cmd("amx_ban %s 5 Spam", name)
}
}
Now I would like to set a time interval for let's say 5 minutes, basically if you say "TEST"
more than one time in those 5 minutes, you will get banned. Unfortunately, I didn't find a method to create this yet.