but with zombie
example:
when i play the flash if it kills the Zombie to get it
edited 1×, last 07.12.11 02:01:00 pm
addhook('projectile', 'OnProjecTile') function OnProjecTile(id, wpn, x, y) 	if wpn == 52 then 		local team = player(id, 'team') 		local tablex = 'tableliving' 		if team == 1 then 			tablex = 'team2living' 		elseif team == 2 then 			tablex = 'team1living' 		end 		 		for _, v in pairs(player(0, tablex)) do 			local px = player(v, 'x') 			local py = player(v, 'y') 			 			if px >= (x - 320) and px <= (x + 320) and py >= (y - 240) and py <= (y + 240) then 				parse(string.format('customkill %s Flashed %s', id, v)) 			end 		end 	end end
Flashbang impact = FlX and FlY 	Explode on FlX and FlY End