Forum

> > CS2D > Scripts > Antispeed hack measures
Forums overviewCS2D overview Scripts overviewLog in to reply

English Antispeed hack measures

48 replies
Page
To the start Previous 1 2 3 Next To the start

old Re: Antispeed hack measures

blood2d
User Off Offline

Quote
user EngiN33R has written
user Anders4000 has written
@user sheeL: Waw, let me rewrite that code.
Remember using tabbing.
1
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")
exists for the player function. It will be
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
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

old Re: Antispeed hack measures

EngiN33R
Moderator Off Offline

Quote
@user 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.

old Re: Antispeed hack measures

sheeL
User Off Offline

Quote
1
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
@user blood2d: change "speed" to "speedmod" !

old Re: Antispeed hack measures

EngiN33R
Moderator Off Offline

Quote
@user 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.

@user 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

old Re: Antispeed hack measures

sheeL
User Off Offline

Quote
user EngiN33R has written
@user 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.

@user blood2d: I was being stupid, sorrry, the code is correct, if not a little strange.


@user EngiN33R: Just wanted to give an idea of the error he made, now I realized that I messed up and you also

old Re: Antispeed hack measures

Suprise
BANNED Off Offline

Quote
Yeah this is work!

1
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

old Re: Antispeed hack measures

sheeL
User Off Offline

Quote
@user Suprise: Fixed

1
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

old Re: Antispeed hack measures

Infinite Rain
Reviewer Off Offline

Quote
user sheeL has written
@user Suprise: Fixed

1
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.

old Re: Antispeed hack measures

Yates
Reviewer Off Offline

Quote
Factis, they won't listen. They seem to be in a world where stopping hackers is easy. Let it be.

If someone really wanted to make an anti-speedhack. Measure the distance the player travels.

old Re: Antispeed hack measures

Mechanolith
User Off Offline

Quote
user 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.

old Re: Antispeed hack measures

Yates
Reviewer Off Offline

Quote
user 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.
To the start Previous 1 2 3 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview