Author Topic: Speedhack detection  (Read 1866 times)

Merk.

  • Newbie
  • *
  • Posts: 7
  • Karma: +4/-6
  • Give +1 of karma if i help you.
    • View Profile
Speedhack detection
« on: October 19, 2014, 08:53:41 pm »
Code: [Select]
iTicks <- GetTickCount ( );
sBoolCalled <- false;
Cheating <- 0;

const MAX_SPEEDHACK_CHEAT_ATTEMPTS = 5;

function onClientRender ( ) {

local ticks = ( GetTickCount ( ) - iTicks );

if ( ticks > 1070 && ticks <= 2000 && sBoolCalled == false ) {

if ( Cheating >= MAX_SPEEDHACK_CHEAT_ATTEMPTS ) {

CallServerFunc ( "Some/Script.nut", "SomeFunction", FindLocalPlayer ( ) );

sBoolCalled = true;

return;
}

Cheating ++;
}

iTicks = GetTickCount ( );
}

Code tested and working.

Edit [20/11/2014]: Forgot add the last line.
« Last Edit: October 20, 2014, 11:11:32 pm by Merk. »

 

© Liberty Unleashed Team.