[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
#2

Nice dude!

+rep for this
Reply
#3

Quote:
Originally Posted by MagicSamp
View Post
Nice dude!

+rep for this
Thank you for the compliment
Reply
#4

Nice!
Reply
#5

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.
Reply
#6

Nice one, will come in handy. Thanks mate
Reply
#7

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
Reply
#8

You got a few mistakes in it or thats just your way of scripting but other than that its a +1 from me!
Reply
#9

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
Reply
#10

Actually its very well coded i saw something wrong i got a question tho, what did you use to calculate all the positions?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)