14.01.2014, 19:57
(
Last edited by Patrick; 29/05/2015 at 09:18 AM.
Reason: fixed pastebin link and fixed the sample code.
)
OnPlayerTeleport
Introduction
Installation
Download
Github - Click Me!
Pastebin - Click Me!
Credits
pds2k12 - Include Developer
****** - y_bits include
NOTE: This is not suitable for newbies that uses 13 Filterscript! if you want this Anti-Cheat to be fully functional move all of your Teleporting script to where the include is or else it will ban you innocent!
Introduction
- So let me start, basically Teleport Hack is mostly used in any server to teleport to another vehicle or player, but sometimes player teleports into another location for example Modding Shop, because they're too fat and they can not drive so all they do is hack! and I hate hackers that's why I released OnPlayerFakeKill, OnPlayerFly but now, I'll introduce my new include called OnPlayerTeleport, I will not guarantee that this is %100 accurate but if you spot any bug or any inaccurate calculations feel free to reply below and I'll fix it asap
pawn Code:
public OnPlayerTeleport(playerid, Float:distance)
{
new string[128];
format(string, sizeof(string), "You have been detected for using teleport hacks, you have tp'ed %0.2f from your last distance.", distance);
SendClientMessage(playerid, -1, string);
return BanEx(playerid, "Teleport Hack");
}
pawn Code:
#include <a_samp>
#include <optp>
//or
#include "a_samp.inc"
#include "optp.inc"
Github - Click Me!
Pastebin - Click Me!
Credits
pds2k12 - Include Developer
****** - y_bits include
NOTE: This is not suitable for newbies that uses 13 Filterscript! if you want this Anti-Cheat to be fully functional move all of your Teleporting script to where the include is or else it will ban you innocent!