SA-MP Forums Archive
[Include] OnPlayerTeleport [OPTP] - 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)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] OnPlayerTeleport [OPTP] (/showthread.php?tid=487708)



OnPlayerTeleport [OPTP] - Patrick - 14.01.2014

OnPlayerTeleport

Introduction Usage
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");
}
Installation
pawn Code:
#include <a_samp>
#include <optp>

//or

#include "a_samp.inc"
#include "optp.inc"
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!


Respuesta: OnPlayerTeleport [OPTP] - Swedky - 14.01.2014

pawn Code:
public OnPlayerTeleport(playerid)
{
    SendRconCommand("gmx");
    return tickcount();
}

It me will be many usefulness, very good include! .

+Rep :P.


Re: Respuesta: OnPlayerTeleport [OPTP] - Patrick - 14.01.2014

Quote:
Originally Posted by EnzoMetlc
View Post
pawn Code:
public OnPlayerTeleport(playerid)
{
    SendRconCommand("gmx");
    return tickcount();
}

It me will be many usefulness, very good include! .

+Rep :P.
Great! Thanks for the compliment.


Re: OnPlayerTeleport [OPTP] - Danialdano - 14.01.2014

How do you keep getting accurate calculations like that? its calculated on a very high standard, good job btw.


Re: OnPlayerTeleport [OPTP] - Pottus - 14.01.2014

Looks like a pretty good implementation yes there will probably be instances where it isn't 100 percent but could probably give server admins the heads up that someone teleported. With that said you missing one very important piece of information you absolutely need to also give details of the distance when a detection is made which will give admins a better idea of what happened.


Re: OnPlayerTeleport [OPTP] - Patrick - 15.01.2014

Quote:
Originally Posted by Danialdano
View Post
How do you keep getting accurate calculations like that? its calculated on a very high standard, good job btw.
<3 Thanks

Quote:
Originally Posted by [uL]Pottus
View Post
Looks like a pretty good implementation yes there will probably be instances where it isn't 100 percent but could probably give server admins the heads up that someone teleported. With that said you missing one very important piece of information you absolutely need to also give details of the distance when a detection is made which will give admins a better idea of what happened.
Thanks, anyways thanks for helping me about the Distance parameter, it has been added :P

Include Updated
NOTE - Make sure you download the one with the name optp[v1.1].inc


Respuesta: Re: Respuesta: OnPlayerTeleport [OPTP] - angelxeneize - 15.01.2014

Quote:
Originally Posted by pds2k12
View Post
Great! Thanks for the compliment.
this is not funny, is supposed to help new, you only confuse ...


Re: Respuesta: Re: Respuesta: OnPlayerTeleport [OPTP] - Patrick - 15.01.2014

Quote:
Originally Posted by angelxeneize
View Post
this is not funny, is supposed to help new, you only confuse ...
Uhm, do not know what you are on about, but this is an anti-cheat, helps people with hackers and stuff.


Re: OnPlayerTeleport [OPTP] - Lordzy - 16.01.2014

Nice release, but I'd like to know about the velocity rates. It detects the range and states if it's a teleport cheat or not. What if a player's velocity rates are being set within the script or the vehicle velocity? I just viewed your include quickly and I found that you haven't done much in regarding player's velocity rates.


Re: OnPlayerTeleport [OPTP] - Pottus - 16.01.2014

It might be a good idea to hook those functions in and if used give an exemption from the check however I think it would still be hard to achieve a false positive unless you apply some uber get the fuck outta my face velocity