I never had a work with npcs but I need help
When you kill NPC Soldier Item type 24 will appear under it
Can you please help ma?
addhook npc,soldier if player('npc.soldier') == dead' then parse('spawnitem under npc.soldier 24') 		return 100 times!~2 end 	end 		end
addhook npc,soldier if player('npc.soldier') == dead' then parse('spawnitem under npc.soldier 24') 		return 100 times!~2 end 	end 		end
addhook npc,soldier em... missing "" and () and npc hook does not exist if player('npc.soldier') == dead' varisable not declared, and has ' meaning its a string, and also has 3 ' signs, and checks if string is dead (unexisting variable) then parse('spawnitem under npc.soldier 24') under is not valid in console, its suppose to have x y cord variable npc.soldier is not declared and missing "....", why return 100 times!~2 on a cs2d hook, you should return eithere 0 or 1, and times!~2 is invalid end end end
if npcdrop==nil then npcdrop={} end function npcdrop.objectkill(object_id,player_id) 	if(object(object_id,"type")==30) then 		if(object(object_id,"player")==5) then 			parse("spawnitem 24 "..object(object_id,"tilex").." "..object(object_id,"tiley")) 		end 	end end addhook("objectkill","npcdrop.objectkill")