Hello i can switch one code and i
ENGINE
Code:
register_touch("player", "land_mine", "mine_touched")
public mine_touched(id, ent)
{
if(!get_pcvar_num(mines_enabled))
return
if(!is_user_alive(id))
return
explode(ent, 0)
}
FAKEMETA (my code)
Code:
register_forward(FM_Touch,"hook_touch")
public hook_touch(id,ent)
{
new classname[32]
pev(id,pev_classname,classname,31)
if ( equal(classname, "mine_touched"))
{
if(!get_pcvar_num(mines_enabled))
return FMRES_IGNORED;
if(!is_user_alive(id))
return FMRES_IGNORED;
ent("land_mine", 0)
return FMRES_IGNORED;
}
return FMRES_IGNORED;
}
MY code doesn´t work