Why doesn't this work? I tried doing this...
PHP Code:
public fw_Touch(touched, toucher)
{
if(!get_pcvar_num(zomb_switch))
return FMRES_IGNORED
if (!pev_valid(touched) || !is_user_connected(toucher) || !g_zombie[toucher])
return FMRES_IGNORED
static classname[33]
pev(touched, pev_classname, classname, 32)
if ( ( classname[0] == 'w' && classname[1] == 'e' && classname[2] == 'a') || (classname[0] == 'a' && classname[1] == 'r' && classname[2] == 'm') || (classname[0] == 'c' && classname[1] == 's' && classname[2] == 'd' ) )
return FMRES_SUPERCEDE
return FMRES_IGNORED
}
wea is for weaponbox and weapon_shield
arm is for armory_entity
csd is for the csdm spawned items
__________________