[Include] OnPlayerAirbreak
#1

OnPlayerAirbreak

Introduction
I've released the same include about a year ago. However, last year's version had several bugs that I had no time to fix. That put aside, I've made a second new version, which is cleaner and more accurate than the other version.

What is airbreaking?
Airbreaking (or sometimes known as airbraking) is a common term in SA-MP, which is using a 3rd party tool to simply fly in the air. It is discouraged in SA-MP and 99.9% of servers will ban you for it.

Most scripts on here only use a simple detection method that checks the distance and calls it airbreaking. However, in most cases, that won't work out and you'll have a false detection. This script checks many other things such as height calculation and more.

Callback
There is one callback only:

pawn Код:
public OnPlayerAirbreak(playerid)
{
    return 1;
}
The callback name speaks for itself; when a player is accused of airbreaking, the system will call this function.

As of 03/23/2015, vehicle airbreak is now detected!

Notes
I've did some extensive testing and it works flawlessly. However, there might be bugs, as with all things.

This include now detects vehicle airbreaking! Simply use IsPlayerInAnyVehicle within the callback to detect it.

Installation
Simply download the include from one of the links below and put OPA.inc inside your pawno/include folder.

pawn Код:
#include <a_samp>
#include <OPA>
And you're done!

Downloads
Pastebin
GitHub
Reply


Messages In This Thread
OnPlayerAirbreak - by Emmet_ - 06.11.2013, 21:44
Re: OnPlayerAirbreak - by jakejohnsonusa - 06.11.2013, 22:03
Re: OnPlayerAirbreak - by Patrick - 06.11.2013, 22:14
Re: OnPlayerAirbreak - by Baboon - 06.11.2013, 22:28
Re: OnPlayerAirbreak - by Pottus - 06.11.2013, 23:01
Re: OnPlayerAirbreak - by FailerZ - 07.11.2013, 10:40
Re: OnPlayerAirbreak - by Richie© - 07.11.2013, 18:24
Re: OnPlayerAirbreak - by Pottus - 07.11.2013, 18:29
Re: OnPlayerAirbreak - by Richie© - 07.11.2013, 18:36
Re: OnPlayerAirbreak - by Pottus - 07.11.2013, 19:01
Re: OnPlayerAirbreak - by iZN - 07.11.2013, 20:00
Re: OnPlayerAirbreak - by Emmet_ - 07.11.2013, 21:53
Re: OnPlayerAirbreak - by Michael@Belgium - 08.11.2013, 18:33
Re: OnPlayerAirbreak - by Konstantinos - 08.11.2013, 18:38
Re: OnPlayerAirbreak - by PT - 10.11.2013, 22:00
Re: OnPlayerAirbreak - by Emmet_ - 11.11.2013, 23:42
Respuesta: OnPlayerAirbreak - by deryan - 25.11.2013, 19:22
Re: OnPlayerAirbreak - by daniscape - 06.12.2013, 14:26
Re: OnPlayerAirbreak - by kristo - 06.12.2013, 16:51
Re: OnPlayerAirbreak - by Emmet_ - 06.12.2013, 16:58
Re: OnPlayerAirbreak - by kristo - 06.12.2013, 17:06
Re: OnPlayerAirbreak - by Emmet_ - 06.12.2013, 17:08
Re: OnPlayerAirbreak - by Phaze - 06.12.2013, 17:08
Re: OnPlayerAirbreak - by kristo - 06.12.2013, 17:11
Re: OnPlayerAirbreak - by Emmet_ - 06.12.2013, 17:21
Re: OnPlayerAirbreak - by Zamora - 10.12.2013, 16:34
Re: OnPlayerAirbreak - by Emmet_ - 05.01.2014, 10:36
Re: OnPlayerAirbreak - by Michalec - 06.01.2014, 01:21
Re: OnPlayerAirbreak - by Emmet_ - 06.01.2014, 01:50
Re: OnPlayerAirbreak - by kristo - 19.08.2014, 13:39
Re: OnPlayerAirbreak - by Emmet_ - 25.02.2016, 14:32
Re: OnPlayerAirbreak - by ]Rafaellos[ - 25.02.2016, 14:55
Re: OnPlayerAirbreak - by Emmet_ - 25.02.2016, 15:17
Re: OnPlayerAirbreak - by Kar - 15.03.2016, 04:28
Re: OnPlayerAirbreak - by Crayder - 15.03.2016, 04:43
Re: OnPlayerAirbreak - by Kar - 15.03.2016, 15:53
Re: OnPlayerAirbreak - by Crystallize - 15.03.2016, 22:19
Re: OnPlayerAirbreak - by Joron - 15.03.2016, 22:21
Re: OnPlayerAirbreak - by Kar - 16.03.2016, 00:25
Re: OnPlayerAirbreak - by AdrianGabriel96 - 29.03.2016, 23:49

Forum Jump:


Users browsing this thread: 1 Guest(s)