English Antispeed hack measures

48 replies
Goto Page
To the start Previous 1 2 3 Next To the start
25.02.12 08:31:30 am
Up
Being an admin is better.
27.02.12 12:02:16 am
Up
sheeL
User
Offline Off
oh sorry, my mistake

change
Code:
1
player(id,"speed")

to
Code:
1
player(id,"speedmod")


@user Apache uwu: Actually, the console can revert
@user Anders4000: I forgot the tab, after I solve this
27.02.12 09:18:52 pm
Up
blood2d
User
Offline Off
user EngiN33R has written:
user Anders4000 has written:
@user sheeL: Waw, let me rewrite that code.
Remember using tabbing.
Code:
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
Code:
1
player(id,"speed")
exists for the player function. It will be
Code:
1
player(id,"speedmod")


look enginer

here is player(id,"speed") :$



Code:
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
27.02.12 09:59:50 pm
Up
EngiN33R
Moderator
Offline Off
@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.
I code, therefore I exist.
27.02.12 10:35:03 pm
Up
sheeL
User
Offline Off
Code:
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" !
27.02.12 10:44:48 pm
Up
EngiN33R
Moderator
Offline Off
@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
I code, therefore I exist.
28.02.12 12:32:03 am
Up
sheeL
User
Offline Off
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
28.02.12 03:55:31 pm
Up
Suprise
BANNED
Offline Off
Yeah this is work!

Code:
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:

Code:
1
parse("kick "..id) OR ban :D
28.02.12 04:42:45 pm
Up
Apache uwu
User
Offline Off
When a player speedhacks they change their "speedmod" client-side, player(id,"speedmod") is unchanged!!
28.02.12 04:46:13 pm
Up
EngiN33R
Moderator
Offline Off
Yeah, we know, I don't know why people post this code though.
I code, therefore I exist.
28.02.12 05:15:12 pm
Up
sheeL
User
Offline Off
@user Suprise: Fixed

Code:
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
28.02.12 05:33:01 pm
Up
Anders4000
User
Offline Off
user 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?
28.02.12 06:14:23 pm
Up
Infinite Rain
Reviewer
Offline Off
user sheeL has written:
@user Suprise: Fixed

Code:
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.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
28.02.12 06:27:06 pm
Up
Yates
Reviewer
Offline Off
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.
28.02.12 07:11:38 pm
Up
Mechanolith
User
Offline Off
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.
28.02.12 08:01:03 pm
Up
Yates
Reviewer
Offline Off
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.
28.02.12 08:01:51 pm
Up
Infinite Rain
Reviewer
Offline Off
Yep, need somehow detect client side stuffs
Impossible with Lua though.
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
28.02.12 08:11:16 pm
Up
palomino
User
Offline Off
user Infinite Rain has written:
Yep, need somehow detect client side stuffs
Impossible with Lua though.

Erm, uprate6 makes his anti-hacks with Lua, as far as I know.
zugcxdxtczgvhioj
28.02.12 08:11:48 pm
Up
Yates
Reviewer
Offline Off
And they workin' fiiiiiiiinnneee..
28.02.12 08:12:44 pm
Up
Infinite Rain
Reviewer
Offline Off
Antihack with Lua that working well? must see
A thousand may fall at your side, ten thousand at your right hand, but it will not come near you. You will only look with your eyes and see the recompense of the wicked. - Psalm 91:7-8 ESV
To the start Previous 1 2 3 Next To the start