SA-MP Forums Archive
[FilterScript] [FS] Anti-Teleport [0.2X] - Update: Version 1.1 - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Anti-Teleport [0.2X] - Update: Version 1.1 (/showthread.php?tid=60178)



[FS] Anti-Teleport [0.2X] - Update: Version 1.1 - lavamike - 02.01.2009

.: Anti-Teleport Hack Script :.
.: By Lavamike :.

>Description<
This is just basically something I took out of my AntiCheat because I didn't find too many Anti-TP Scripts around. I guess it could also be an Anti-Speed Hack script or something.

>Bugs<
I didn't find any bugs. If you encounter any bugs or want to ask a question feel free to post here!

>How To Setup/Use<
Basically what you need to do is any time your scripts use SetPlayerPos or change a players position you will need to set "PosFix[playerid] = 1;" BEFORE you teleport the player. If you need help look at my example with OnPlayerSpawn. I used "SetTimerEx("PosFixOff",5000,0,"i",playerid);" because you won't spawn right away depending on your script. Also, see notes at the bottom of this post.

>How To Install<
First, download the script. Second, Extract AntiTP.pwn to your filterscripts folder. Third, open up the AntiTP.pwn, modify it as you wish, and compile it. Fourth, open up your server.cfg and add "AntiTP" on the filterscripts line.

>Download<
[Version 1.0] SendSpace: http://www.sendspace.com/file/yqh3gn
[Version 1.1] SendSpace: http://www.sendspace.com/file/etp7rm
(Version 1.1 fixes most enex marker teleport warnings using OnPlayerInteriorChange. It might not catch all of them so if you find one that gives a warning get some coords of inside the interior or something and send them to me. I realized OnPlayerInteriorChange fixes the car mod shops too :P)

>Credits<
Lavamike - Making The Script :P
&
Whoever Made PlayerToPoint - Modified PlayerToPoint to CoordToPoint

- Notes -

PLEASE remember about SA:MP Teleport Bugs. This script is not intended to ban someone instantly.

Quote:
Originally Posted by Adam_Chaprnka
After the SetPlayerPos I suggest using "SetTimerEx("PosFixOff",1000,0,"i",playerid);" because sometimes people may lag and the person will not get to the location in time and it will be detected as hacks.



Re: [FS] Anti-Teleport - AiVAMAN - 02.01.2009

great job


Re: [FS] Anti-Teleport - lavamike - 02.01.2009

Quote:
Originally Posted by Lt_Aivariux
great job
Thanks


Re: [FS] Anti-Teleport [0.2X] - yezizhu - 02.01.2009

sounds well..nice job:b


Re: [FS] Anti-Teleport [0.2X] - JayL - 03.01.2009

Good job, that's nice


Re: [FS] Anti-Teleport [0.2X] - Chaprnks - 11.01.2009

Quote:

"Bandwidth Limit Exceeded
The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. "




Re: [FS] Anti-Teleport [0.2X] - romeotheboss - 11.01.2009

thanks! good job! very usefull
PS:But The Link Doesn't Work










RESPECT


Re: [FS] Anti-Teleport [0.2X] - lavamike - 12.01.2009

Quote:
Originally Posted by romeotheboss
thanks! good job! very usefull
PS:But The Link Doesn't Work

RESPECT
Added SendSpace Download: http://www.sendspace.com/file/yqh3gn

Also, Thanks


Re: [FS] Anti-Teleport [0.2X] - Chaprnks - 13.01.2009

Pretty useful piece of code. I have a suggestion although. After the SetPlayerPos I suggest using "SetTimerEx("PosFixOff",1000,0,"i",playerid);" because sometimes people may lag and the person will not get to the location in time and it will be detected as hacks.


Re: [FS] Anti-Teleport [0.2X] - ICECOLDKILLAK8 - 16.01.2009

Wont work, Hackers can disable SetPlayerPos