05.01.2014, 16:23
(
Last edited by Patrick; 23/01/2014 at 07:38 PM.
)
OnPlayerFly
Introduction
Simply, Add #include <OPF> underneath #include <a_samp>
Download
Available on Github! - Download
Credits
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.
- http://www.youtube.com/watch?v=ttJIeuJ7K94#t=25 - The video explains what Fly is, there is a LINK to get that cheat, but I do not SUGGEST you downloading it. Because it might contain VIRUS!
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.
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"
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