SA-MP Forums Archive
position anti cheat - 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: position anti cheat (/showthread.php?tid=635921)



position anti cheat - Bussyman - 16.06.2017

Hi,

IS there need to create anti cheat from position hack? like if player position in x or y or z is very big or very small?


Re: position anti cheat - JasonRiggs - 16.06.2017

If you mean TP hacks then yes.. So that if a player changed his position more quickly than the fastest car in GTA SA, then admins should get warning or the script ban the player.. But x,y,z being very big or small, idk about it..


Re: position anti cheat - CheezIt - 16.06.2017

You can validate the player's position every second or so and if it changes at a large scale you can then say the player teleported or used speed hacks.


Re: position anti cheat - Bussyman - 16.06.2017

No i mean something ike that:

Code:
new Float:pososdqwe[ 3 ];
GetPlayerPos(playerid,pososdqwe[ 0],pososdqwe[1],pososdqwe[2]);

if( pososdqwe[ 0 ] > 50000000 ||  pososdqwe[ 0 ] < -50000000 )
{

}



Re: position anti cheat - Vince - 16.06.2017

I don't get where you're going with this. The map ranges from -3000 to 3000 in the two-dimensional plane and I don't really see a reason to go outside that boundary.


Re: position anti cheat - CheezIt - 16.06.2017

That's quite pointless since you'd most likely get a glitched screen (out of world bounds) and it doesn't hurt anyone anyway.