[Include] Norck's fly - 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] Norck's fly (
/showthread.php?tid=636534)
Norck's fly -
GaByM - 29.06.2017
I modified
Norck's include (which can be found here
https://sampforum.blast.hk/showthread.php?tid=309467) and I made it compatible with vehicles.
Controls:
KEY_UP (up arrow) -
move
KEY_RIGHT (right arrow) -
go up
KEY_LEFT (left arrow) -
go down
KEY_ANALOG_RIGHT (numpad 6) -
increase speed
KEY_ANALOG_LEFT (numpad 4) -
decrease speed
Functions:
(no new function, no need to change anything in gamemode/fs)
PHP код:
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
Download & install:
Replace the original fly.inc with this: (there is no new function, it automatically detect if the player is in vehicle)
https://pastebin.com/tx1Cn4hC
----------
Because Norck's last activity was in 2015, i don't have any credits.
Re: Norck's fly -
Variable™ - 30.06.2017
You got permission to re-release? To be honest this edition is nothing important, making it compatible with vehicles is the least to do as a re-release of it.
Re: Norck's fly -
Pottus - 30.06.2017
Quote:
Originally Posted by Variable™
You got permission to re-release? To be honest this edition is nothing important, making it compatible with vehicles is the least to do as a re-release of it.
|
I don't think that dude will be around again.
http://forum.sa-mp.com/member.php?u=36448
1-Star