[Include] OnPlayerFly [OPF] - 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] OnPlayerFly [OPF] (
/showthread.php?tid=485727)
OnPlayerFly [OPF] - Patrick - 05.01.2014
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
Re: OnPlayerFly [OPF] -
DowDaw - 05.01.2014
Nice dude!
+rep for this
Re: OnPlayerFly [OPF] - Patrick - 05.01.2014
Quote:
Originally Posted by MagicSamp
Nice dude!
+rep for this
|
Thank you for the
compliment
Re: OnPlayerFly [OPF] - Emmet_ - 05.01.2014
Nice!
Re: OnPlayerFly [OPF] - Patrick - 05.01.2014
Quote:
Originally Posted by Emmet_
Nice!
|
Thanks bro, two positive comments so far. I'm sure
[uL]Pottus is typing something long :P.
Re: OnPlayerFly [OPF] -
Hiddos - 05.01.2014
Nice one, will come in handy. Thanks mate
Re: OnPlayerFly [OPF] - Patrick - 05.01.2014
Quote:
Originally Posted by Hiddos
Nice one, will come in handy. Thanks mate
|
Thank you for the compliment!. No problem, have some cookies back
Re: OnPlayerFly [OPF] -
Wizza - 05.01.2014
You got a few mistakes in it or thats just your way of scripting but other than that its a +1 from me!
Re: OnPlayerFly [OPF] - Patrick - 05.01.2014
Quote:
Originally Posted by Wizza
You got a few mistakes in it or thats just your way of scripting but other than that its a +1 from me!
|
Can you point them out so I can fix them
ASAP? Anyways thanks!
EDIT - Fixed the example code on
How to use it
Re: OnPlayerFly [OPF] -
Wizza - 05.01.2014
Actually its very well coded i saw something wrong i got a question tho, what did you use to calculate all the positions?