Sorry for error!
![√](img/ok.gif)
![](img/smiles/sick.gif)
local longshot_distsq = 640^2 + 480^2 + 32 addhook("kill", "longshot_kill") function longshot_kill(k,v) 	local x, y, x2, y2 	x = player(k, "x"); y = player(k, "y") 	x2 = player(v, "x"); y2 = player(v, "y") 	local distsq = (x2 - x)^2 + (y2 - y)^2 	if ( distsq >= longshot_distsq ) then 		msg2(k, "Longshot!"); 	end end
local longshot_distsq = 640^2 + 480^2 + 32 addhook("kill", "longshot_kill") function longshot_kill(k,v) 	local x, y, x2, y2 	x = player(k, "x"); y = player(k, "y") 	x2 = player(v, "x"); y2 = player(v, "y") 	local distsq = (x2 - x)^2 + (y2 - y)^2 	if ( distsq >= longshot_distsq ) then 		msg2(k, "Longshot!"); 	end end
addhook("hit","longshot") function longshot(victim,killer,wpn,hpdmg) 	if(hpdmg >= player(victim,"health")) then 		if( ( player(victim,"x")-player(killer,"x") > 680 or player(victim,"x")-player(killer,"x") < -680 ) ) or ( player(victim,"x")-player(killer,"y") > 520 or player(victim,"y")-player(killer,"y") < -520 ) ) then 			msg("©255000000Longshot kill by player '"..player(killer,"name").."'!") 		end 	end end
local longshot_distsq = (320^2 + 240^2 + 32)^0.5 addhook("kill", "longshot_kill") function longshot_kill(k,v) 	local x, y, x2, y2 	x = player(k, "x"); y = player(k, "y") 	x2 = player(v, "x"); y2 = player(v, "y") 	local distsq = ((x2 - x)^2 + (y2 - y)^2)^0.5 	if ( distsq >= longshot_distsq ) then 		msg2(k, "Longshot!"); 	end end
addhook("kill","_kill") function _kill(killer,victim,weapon,x,y)	 	if math.abs(player(killer,"x")-x)>320 or math.abs(player(killer,"y")-y)>240 then 		msg2(killer,"Longshot!") 	end end
addhook("kill","_kill") function _kill(killer,victim,weapon,x,y)	 	if math.abs(player(killer,"x")-x)>320 or math.abs(player(killer,"y")-y)>240 then 		msg2(killer,"Longshot!") 	end end
addhook("kill","_kill") function _kill(killer,victim,weapon,x,y)	 	if math.abs(player(killer,"x")-x)>320 or math.abs(player(killer,"y")-y)>240 then 		msg2(killer,"Longshot!") 	end end