[Include] Norck's fly
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)