Forum
CS2D Scripts Antispeed hack measureschange
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
No such parameter as exists for the player function. It will be
Anders4000 has written
@ sheeL: Waw, let me rewrite that code.
Remember using tabbing.
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
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" !
@ blood2d: I was being stupid, sorry, the code is correct, if not a little strange.
edited 1×, last 28.02.12 04: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
1
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 written
Yeah, we know, I don't know why people post this code though.
Can't you tell them one last time and close the thread?
sheeL has written
@ Suprise: Fixed
1
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 written
If 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 written
Basing 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.
Impossible with Lua though.
Infinite Rain has written
Yep, 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.