It will block demo recording.
Quote:
Originally Posted by platzpatrone
got this from AMX Super and using it in own plugins:
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author"
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("fullupdate","fullupdate") }
public fullupdate(id) { return PLUGIN_HANDLED_MAIN }
|
It does not block a demo recording and protects from a spam command fullupdate
PHP Code:
#define PLUGIN "Anti Fullupdate Spam"
#define VERSION "1.3"
#define AUTHOR "Pike"
new floodcounter[33]
public plugin_init()
{
register_clcmd("fullupdate","fullupdate")
}
public fullupdate(id)
{
floodcounter[id]++
if(floodcounter[id]==4)
{
hackDetected(id)
}
return PLUGIN_HANDLED
}
public client_connect(id)
{
floodcounter[id] = 0
}
public hackDetected(id)
{
new name[32], ip[32], authid[32]
get_user_name(id, name, 31)
get_user_ip(id, ip, 32, 1)
get_user_authid(id, authid, 31)
server_cmd("kick #%d ^"Using spam command^"", get_user_userid(id))
log_amx("^"%s^"<%s> %s Using fullupdate spam command", name, authid, ip)
}