Code:
public fwd_touch(blocker, id)
{
new flags = get_user_flags(id, 0);
if(!(flags & ADMIN_LEVEL_H))
if(!is_user_alive(blocker) || !get_pcvar_num(cvar_antiblock))
return FMRES_IGNORED
static button[2]
button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)
if(button[0] & IN_USE || button[1] & IN_USE)
{
static CsTeams:team[2]
team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)
if(team[0] != team[1])
return FMRES_IGNORED
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
}
return FMRES_IGNORED
}
change to
Code:
public fwd_touch(blocker, id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_H)) return FMRES_IGNORED;
if(!is_user_alive(blocker) || !get_pcvar_num(cvar_antiblock))
return FMRES_IGNORED
static button[2]
button[0] = pev(id, pev_button), button[1] = pev(blocker, pev_button)
if(button[0] & IN_USE || button[1] & IN_USE)
{
static CsTeams:team[2]
team[0] = cs_get_user_team(id), team[1] = cs_get_user_team(blocker)
if(team[0] != team[1])
return FMRES_IGNORED
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
}
return FMRES_IGNORED
}