Forum

> > CS2D > Scripts > Antispeed hack measures
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Antispeed hack measures

48 Antworten
Seite
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang

alt Re: Antispeed hack measures

blood2d
User Off Offline

Zitieren
user EngiN33R hat geschrieben
user Anders4000 hat geschrieben
@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

alt Re: Antispeed hack measures

EngiN33R
Moderator Off Offline

Zitieren
@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.

alt Re: Antispeed hack measures

sheeL
User Off Offline

Zitieren
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" !

alt Re: Antispeed hack measures

EngiN33R
Moderator Off Offline

Zitieren
@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.
1× editiert, zuletzt 28.02.12 16:28:13

alt Re: Antispeed hack measures

sheeL
User Off Offline

Zitieren
user EngiN33R hat geschrieben
@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

alt Re: Antispeed hack measures

Suprise
BANNED Off Offline

Zitieren
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

alt Re: Antispeed hack measures

sheeL
User Off Offline

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

alt Re: Antispeed hack measures

Infinite Rain
Reviewer Off Offline

Zitieren
user sheeL hat geschrieben
@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.

alt Re: Antispeed hack measures

Yates
Reviewer Off Offline

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

alt Re: Antispeed hack measures

Mechanolith
User Off Offline

Zitieren
user Yates hat geschrieben
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.

alt Re: Antispeed hack measures

Yates
Reviewer Off Offline

Zitieren
user Mechanolith hat geschrieben
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.
Zum Anfang Vorherige 1 2 3 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht