07.01.2012, 18:58
(
Последний раз редактировалось Norck; 09.01.2012 в 08:33.
)
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 forwardMOUSE 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.