[Include] Fly. Just like a superman.
#1

Description:
This include allows you to fly around San Andreas. There is few functions that you can use in your gamemode/filterscript. Probably there is already was something like this, but I want to release this anyway, since I'm using this feature on my server for admins-only.

Video:
This is how it looks like:
[ame]http://www.youtube.com/watch?v=PZ7Cvgkwack[/ame]


Functions:
There is only 3 functions that you need to use:
pawn Код:
InitFly(playerid)       // reset player's fly variable, put it in OnPlayerConnect
bool:StartFly(playerid) // start flying, put it in your /fly command, returns false if player is already flying, otherwise returns true
bool:StopFly(playerid)  // stop flying, put it in your /stopfly command, returns false if player is already not flying, otherwise returns true
Controls:
MOVE FORWARD KEY = fly forward
MOUSE MOVEMENTS = select direction
FIRE KEY = increase height
AIM KEY = decrease height
SPRINT KEY = increase speed
WALK KEY = decrease speed

Download:
fly.inc + example FS:
http://solidfiles.com/d/289d6c8fdf/
fly.inc:
http://pastebin.com/HcM7bw4Q
example fs:
http://pastebin.com/Km9skAdL

Credits:
Creator of SetPlayerLookAt function. Sorry, I can't remember the name.
Reply
#2

LOL Good work
Reply
#3

like the cleo mod lol
Reply
#4

It's amazing how far SAMP has come over the years. Nice job.
Reply
#5

awesome
Reply
#6

So nice
Reply
#7

Haha Cool.
Reply
#8

Best include , i was watching fot shi log time , thank you!!
Reply
#9

Wonderful include. Congratulations.
Reply
#10

Hehe, forgot to disable my Anticheat plugin. 3, 2, 1 - BANNED. great job from what I could see.
Reply
#11

https://sampforum.blast.hk/showthread.php?tid=115968, isn't this exactly the same? btw is the flying smooth?
Reply
#12

Great stuff! rep+
Reply
#13

This is very amazing only if direction was smoother
Reply
#14

Nice job dude
Reply
#15

Nice
Reply
#16

Quote:
Originally Posted by SourceCode
View Post
https://sampforum.blast.hk/showthread.php?tid=115968, isn't this exactly the same? btw is the flying smooth?
Maybe, but this is include, so this feature can be easily added into gamemode or filterscript that is already exists.
As you can see from the video it's smooth enough

Thanks all
Reply
#17

Quote:
Originally Posted by Psymetrix
Посмотреть сообщение
It's amazing how far SAMP has come over the years. Nice job.
+1


Great job!
Reply
#18

Nice, you should work more on angles rotation. Good job though
Reply
#19

can u make it, when u press a key, it enables ur fly, if u press it again it disables it?
Reply
#20

This is really good.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)