[Include] OnPlayerFly [OPF]
#1

OnPlayerFly

Introduction
  • I have been inspired by Emmet_, about his OnPlayerAirbreak include so I said to my self I should create something like this after hours and hours of thinking I thought OnPlayerFly so I started creating OnPlayerFly include as Accurate as I can, it took my 2 days to create and test the include.
What is Fly Hack? Example of Usage
pawn Code:
#if !defined FALSE
    stock bool:FALSE = false;
#endif

#define SendClientMessageToAllEx(%0,%1) \
do \
{ \
    new _str[144]; \
    format(_str,sizeof(_str), %0, %1); \
    SendClientMessageToAll(-1, _str); \
} \
while( FALSE )

public OnPlayerFly(playerid)
{
    new GetName[ MAX_PLAYER_NAME ]; GetPlayerName(playerid, GetName, MAX_PLAYER_NAME);
    return SendClientMessageToAllEx("%i:%s Has been kicked from the server, reason: S*biet Flyhack!", playerid, GetName), Kick(playerid);
}
  • This callback is called when the include detects a player who is using Fly hack.
How to use it?
Simply, Add #include <OPF> underneath #include <a_samp>
pawn Code:
//Would look something like this.
#include <a_samp>
#include <OPF>
//or
#include "a_samp.inc"
#include "OPF.inc"
Download
Available on Github! - Download

Credits
  • pds2k12 - developing the include.
  • [uL]Pottus - for the GetPlayerVelocity idea.
  • Emmet_ - Assisting me via skype and testing the include.
  • Southclaw - For the array of all the water places around San Andreas
Reply


Messages In This Thread
OnPlayerFly [OPF] - by Patrick - 05.01.2014, 16:23
Re: OnPlayerFly [OPF] - by DowDaw - 05.01.2014, 16:28
Re: OnPlayerFly [OPF] - by Patrick - 05.01.2014, 16:31
Re: OnPlayerFly [OPF] - by Emmet_ - 05.01.2014, 16:31
Re: OnPlayerFly [OPF] - by Patrick - 05.01.2014, 16:36
Re: OnPlayerFly [OPF] - by Hiddos - 05.01.2014, 16:41
Re: OnPlayerFly [OPF] - by Patrick - 05.01.2014, 16:43
Re: OnPlayerFly [OPF] - by Wizza - 05.01.2014, 16:46
Re: OnPlayerFly [OPF] - by Patrick - 05.01.2014, 16:48
Re: OnPlayerFly [OPF] - by Wizza - 05.01.2014, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)