Code:
public fwdTouch(ent, id) {
if(!pev_valid(ent) || !is_user_alive(id)) return FMRES_IGNORED
new classname[32]
pev(ent, pev_classname, classname, charsmax(classname))
if(equali(classname, "supplybox")) {
emit_sound(id, CHAN_AUTO, g_sound, 1.0, ATTN_NORM, 0, PITCH_NORM)
ScreenFade(id, 3.0, 255, 255, 0, 0)
engfunc(EngFunc_RemoveEntity, ent)
remove_task(ent)
if(zp_get_user_zombie(id))
zombie_item(id)
else
human_item(id)
}
return FMRES_IGNORED
}