#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your own code here
register_forward(FM_PlayerPreThink, "fwPreThink");
}
public fwPreThink(id){
if(!is_user_alive(id) && !(get_user_weapon(id) & CSW_KNIFE))
return PLUGIN_CONTINUE
new bitButton = pev(id, pev_button);
if(bitButton & IN_ATTACK)
set_pev(id, pev_button, bitButton &= ~IN_ATTACK);
return PLUGIN_CONTINUE
}
(to był raczej ten kod, bo długo się z tym bawiłem, lecz późno w nocy na wyłączonym myśleniu )