new cvar_antiblock, Float:g_lasttimetouched[33] // lol
register_plugin("anti block", "0.1", "cheap_suit")
register_forward(FM_Touch, "fwd_touch")
register_forward(FM_PlayerPreThink, "fwd_playerprethink")
cvar_antiblock = register_cvar("zp_antiblock", "1")
public fwd_playerprethink(id)
static solid; solid = pev(id, pev_solid)
if(solid == SOLID_NOT && (get_gametime() - g_lasttimetouched[id]) > 0.34)
set_pev(id, pev_solid, SOLID_BBOX)
public fwd_touch(blocker, id)
if(!is_user_alive(blocker) || !is_user_alive(id) || !get_pcvar_num(cvar_antiblock))
button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)
team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)
set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)
static Float:gametime; gametime = get_gametime()
g_lasttimetouched[id] = gametime, g_lasttimetouched[blocker] = gametime