02.01.2009, 06:06
.: 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
.: 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.
|