Does the speed also depend on lag and fps?
Regards,
J.
General
Normal speed of a player
Normal speed of a player
1

local LastX = 0
local LastY = 0
addhook('ms100','SP')
function SP()
	local function P(X,Y) return(math.sqrt(X * X + Y * Y)) end
	local X = player(1,'x')
	local Y = player(1,'y')
	msg(P(LastX-X,LastY-Y))
	LastX = X
	LastY = Y
end
xpos = {}
ypos = {}
addhook("ms100","check")
function check()
	for i=1,32 do
		if (player(i,"exists")) and (player(i,"health"))>0 then
			local dx = math.abs((player(i,"x"))-xpos[i])
			local dy = math.abs((player(i,"y"))-ypos[i])
			parse("hudtxt2 "..i..' 0 "©000255000dx '..dx..'" 40 415')
--check only change in x-axis
			xpos[i] = player(i,"x")
			ypos[i] = player(i,"y")
		end
	end
end
if dx>25 or dy>25 then
	parse("kick "..i.." speed detected")
end
1
