Forum
Scripts
Antispeed hack measures
change
1
player(id,"speed")
1
player(id,"speedmod")
@
Apache uwu: Actually, the console can revert
@
Anders4000: I forgot the tab, after I solve this
EngiN33R has written
Anders4000 has written@
sheeL: Waw, let me rewrite that code.
Remember using tabbing.
sheeL: Waw, let me rewrite that code.Remember using tabbing.
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("movetile","antihack")
addhook("startround","a")
function antihack(id)
	if (player(id,"speed")>3) then
		parse("speedmod "..id.." 0")
		msg(player(id,"name").." Used Speed Hacker! @C")
	end
end
function a()
	msg(id,"Welcome")
end
No such parameter as
1
player(id,"speed")
1
player(id,"speedmod")
look enginer
here is player(id,"speed") :$
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("movetile","antihack")
function antihack(id)
if (player(id,"speed")>3) then
parse("speedmod "..id.." 0")
msg(player(id,"name").." Used Speed Hacker! @C")
end
end
_player = player
function player(id,value)
	if value=="speed" then
		return player(id,"speedmod")
	else
		return _player(id,value)
	end
end
blood2d: Err, are you stupid? The argument to the player function in that code is 'speedmod', which proves that the argument 'speed' is non-existent for that function. 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("movetile","antihack")
function antihack(id)
if (player(id,"speedmod")>3) then -- Fixed
parse("speedmod "..id.." 0") -- Fixed
msg(player(id,"name").." Used Speed Hacker! @C")
end
end
_player = player
function player(id,value)
	if value=="speedmod" then
		return player(id,"speedmod")
	else
		return _player(id,value)
	end
end
wtf?
speed = fail '_'
use speedmod
@
blood2d: change "speed" to "speedmod" !
sheeL: Congratulations! You just made an edit that will send the function in an endless loop and end up in either a stack overflow or a crash.@
blood2d: I was being stupid, sorry, the code is correct, if not a little strange. edited 1×, last 28.02.12 03:28:13 pm
EngiN33R has written@
EngiN33R: Just wanted to give an idea of the error he made, now I realized that I messed up and you also 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
addhook("movetile","antihack")
function antihack(id)
if (player(id,"speed")>3) then
parse("speedmod "..id.." 0")
msg(player(id,"name").." Used Speed Hacker! @C")
end
end
_player = player
function player(id,value)
if value=="speed" then
return player(id,"speedmod")
else
return _player(id,value)
end
end
But edit:
1
parse("kick "..id) OR ban :D
Suprise: Fixed1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("movetile","_movetile")
function _movetile(id)
if (player(id,"speed")>3) then
parse("speedmod "..id.." 0")
parse("banusgn "..id)
msg(player(id,"name").." Used Speed Hacker! @C")
end
end
_player = player
function player(id,value)
if value=="speed" then
return player(id,"speedmod")
else
return _player(id,value)
end
end
EngiN33R has writtenYeah, we know, I don't know why people post this code though.
Can't you tell them one last time and close the thread?
Re: Antispeed hack measures
Deleted User
sheeL has written@
Suprise: Fixed
Suprise: Fixed1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
addhook("movetile","_movetile")
function _movetile(id)
if (player(id,"speed")>3) then
parse("speedmod "..id.." 0")
parse("banusgn "..id)
msg(player(id,"name").." Used Speed Hacker! @C")
end
end
_player = player
function player(id,value)
if value=="speed" then
return player(id,"speedmod")
else
return _player(id,value)
end
end
Are you idiots? It's not speedmod.
If someone really wanted to make an anti-speedhack. Measure the distance the player travels.
Yates has writtenIf someone really wanted to make an anti-speedhack. Measure the distance the player travels.
This.
Basing yourself in speedmod can kick innocent people due to lags, and that's classic.
Mechanolith has writtenBasing yourself in speedmod can kick [...]
If it would work, then the speed would be the same (0). But it's clientside and can't be changed serverside, you would need to use console. Lua won't do the trick, otherwise DC would have LONG done that. But I'm fine with the anti-shit uP's making for me (Many thanks to him) so I don't really need all this.
Re: Antispeed hack measures
Deleted User
Impossible with Lua though.
Infinite Rain has writtenYep, need somehow detect client side stuffs
Impossible with Lua though.
Impossible with Lua though.
Erm, uprate6 makes his anti-hacks with Lua, as far as I know.
Re: Antispeed hack measures
Deleted User
must see
Antispeed hack measures


Offline