SA-MP Forums Archive
[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 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);
}
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


Re: OnPlayerFly [OPF] - DowDaw - 05.01.2014

Nice dude!

+rep for this


Re: OnPlayerFly [OPF] - Patrick - 05.01.2014

Quote:
Originally Posted by MagicSamp
View Post
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_
View Post
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
View Post
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
View Post
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?