Code:
#include <amxmodx>
#include <engine>
public plugin_init() {
register_plugin("Block102","0.1","devicenull")
}
public client_prethink(id) {
new impulse
impulse = entity_get_int(id,EV_INT_impulse)
if (impulse==102) {
//To Block, uncomment next line
// entity_set_int(id,EV_INT_impulse,0)
//To Kick, uncomment below
// new name[32]
// get_user_name(id,name,32)
// server_cmd("amx_kick %s That command is blocked",name)
//Stop uncommenting
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
Replace 102 with the impulse # to block
__________________