Speed hack detector? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Speed hack detector? (
/showthread.php?tid=499736)
Speed hack detector? -
ChristianIvann09 - 09.03.2014
If player is speed hacking like if their MPH/KMPH is reach to .. Speed Hack limit (lol) something like that
an message will send to admin..
ADMNCMD: Warning! PLAYERNAME(ID) maybe Speed Hacking. Spectate it now! ((/spec))
ADMNCMD: Warning! PLAYERNAME(ID) maybe Speed Hacking. Spectate it now! ((/spec))
ADMNCMD: Warning! PLAYERNAME(ID) maybe Speed Hacking. Spectate it now! ((/spec))
and it will spam like 5 or 6 times on admins. like Anti Cheat
Re: Speed hack detector? -
amirab - 09.03.2014
this is for stock
PHP Code:
stock GetSpeed(playerid, mode = 1)
{
new Float:Velocidade [3];
GetVehicleVelocity(GetPlayerVehicleID(playerid),Velocidade[0],Velocidade[1],Velocidade [2]);
return IsPlayerInAnyVehicle(playerid)?floatround(((floatsqroot(((Velocidade[0]*Velocidade[0])+(Velocidade[1]*Velocidade[1])+(Velocidade[2]*Velocidade[2])))*(!mode?105.0:170.0)))*1):0;
}
then in a timer :
PHP Code:
if(GetSpeed(playerid) > 100) // in here 100 means the max speed
{
Blah Blah Blah
}
Re: Speed hack detector? -
davve95 - 09.03.2014
If a player got rammed by another player in high speed, won't it think it's a speed hacker then (If it goes very fast).