30.05.2014, 21:30
(
Last edited by [WSF]ThA_Devil; 02/06/2014 at 11:28 AM.
)
This script is care package script similar to call of duty one. I made it because I haven't released anything in
sa-mp forums for a while. All this script does is spawns an object plane that flies over player's location, where flare
was created, and drops parachute with a bag. When it lands, it turns into a ammunition box that
has something in it. The care package can be picked up using ENTER / KEY_SECONDARY_ATTACK
More images: http://imgur.com/a/cwM4T
[ame]http://www.youtube.com/watch?v=NRhicQAvgwQ[/ame]
Features:
- Flare can be spawned anywhere using /carepackage
- Plane flies from random direction
- Rotating care package
- Pick up care package by pressing ENTER / KEY_SECONDARY_ATTACK
- Returns to callback: OnPlayerPickUpCarePackage(playerid,pickupid);
- Made it to be easy to add new carepackage items by editing an array!
- 1 Per player carepackage limit removed.
- Variable global limit.
- Care package despawns after time ( Default 2 minutes )
Bugs:
- None ( Except some stuff that I wouldn't count bugs )
- Plane can fly trough objects
- Carepackage
Y_Less - foreach
Zeex - zcmd
Incognito - Streamer plugin
[Twixx] - Testing and Banner
EvilShadeZ aka [WSF]ThA_Devil - script.
Download v1: http://pastebin.com/qXTRWcbL
Download v2: http://pastebin.com/iUPKN1sd
Download v3: http://pastebin.com/M91bAPuk
Changelog:
Code:
v3: Removed 1 care package per player limit. Removed carepackage exploding when players quits Added global limit ( 25 default ) Added care package despawn time