and i need know , if is possible , when got killed by a NPC , add a customkill like :
sheep NPC headcrab
this is possible ? and if yes , what hook is needed be used ?
Thanks For The Time ... and Help
addhook("kill","magicpotato") function magicpotato(kil,vic,wep,x,y) 	if object(kil,"health")==INSERTHEADCRABSHEALTHHERE then 	parse("custom kill -- etc. etc.) 	end end
addhook('die','a') function a() for id = 1 ,32 do if (object(obj,"type")==30) then parse('customkill '..id..' Zombie '..id..'') end end end
equip = {} equip[1] = '69' addhook('hit','zm_zom_die_ct') function zm_zom_die_ct(obj,id) for id = 1,32 do local x = player(id,'x') local y = player(id,'y') if player(id,'health') == 10 then if object(obj,"type")==30 then parse('customkill '..id..' Zombie '..id..'') parse('maket '..id..'') parse('spawnplayer '..id..' '..x..' '..y..'') parse('strip '..id..' '..equip[1]..'') parse('equip '..id..' '..equip[1]..'') return 1 end end end end