SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 01/08/2016, 05:30 PM   #1
rootcause
Big Clucker
 
rootcause's Avatar
 
Join Date: Feb 2015
Location: /
Posts: 114
Reputation: 197
Default Supply Drops


Information

Allows players to request a supply drop on their location. There are 4 types of drops:

Weapons: A plane will drop the weapon you requested.
Ammo: A plane will drop you an ammo box, when you pick it up every firearm you have will get some ammo.
Health Kit: A plane will drop you a health kit, when you pick it up your health gets refilled to 100.
Body Armor: A plane will drop you a body armor, when you pick it up your armor gets refilled to 100.

For the video I made weapons pretty cheap and added a minigun, you may want to change that.

Config

#define PLANE_TIME - Time required for a plane to show up, in seconds. (Default: 7)
#define REQ_COOLDOWN - Cooldown time between drop requests, in minutes. (Default: 3)
#define DROP_LIFE - Life time of a supply drop, in minutes. (Default: 5)
#define AMMO_PRICE - Price of requesting an ammo box. (Default: 750)
#define HEALTH_PRICE - Price of requesting a health kit. (Default: 500)
#define ARMOR_PRICE - Price of requesting a body armor. (Default: 450)
#define AMMO_AMOUNT - Ammo given with an ammo box supply drop, also used in weapon requests. (Default: 150)

Weapons

You can add/modify/remove requestable weapons from AvailableWeapons array. Make sure it's in this format:

Code:
{weapon id, price}
For weapon ids you can visit https://wiki.sa-mp.com/wiki/Weapons

Credits

Kar for Foreach Standalone
Yashas for Improved ZCMD
RyDeR for MapAndreas Include

Downloads

__________________
All Releases | YouTube
rootcause is offline   Reply With Quote
Old 01/08/2016, 05:36 PM   #2
Bolex_
Gangsta
 
Bolex_'s Avatar
 
Join Date: Aug 2015
Location: Croatia.
Posts: 586
Reputation: 124
Default Re: Supply Drops

Another great script from you +REP
Bolex_ is offline   Reply With Quote
Old 01/08/2016, 07:02 PM   #3
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 131
Reputation: 5
Default Re: Supply Drops

Good job
__________________
Deadpoop is offline   Reply With Quote
Old 01/08/2016, 07:58 PM   #4
Mister0
Huge Clucker
 
Mister0's Avatar
 
Join Date: Aug 2015
Posts: 220
Reputation: 19
Default Re: Supply Drops

Nice, very nice
That first camera is mode or script?
Mister0 is offline   Reply With Quote
Old 01/08/2016, 08:58 PM   #5
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 215
Reputation: 65
Default Re: Supply Drops

Looks neat, well done

PS: Is that a Heisenberg Skin Mod, if yes, could you give me the DL for it ?
JustMe.77 is offline   Reply With Quote
Old 01/08/2016, 09:02 PM   #6
MiguelitoC
Little Clucker
 
Join Date: Jul 2016
Posts: 3
Reputation: 0
Default Respuesta: Supply Drops

It is a good job congratulations
MiguelitoC is offline   Reply With Quote
Old 01/08/2016, 09:13 PM   #7
UltraScripter
Gangsta
 
UltraScripter's Avatar
 
Join Date: Oct 2014
Posts: 802
Reputation: 69
Default Re: Supply Drops

Nice
UltraScripter is offline   Reply With Quote
Old 02/08/2016, 02:55 AM   #8
PRoleplay
Big Clucker
 
Join Date: Nov 2012
Posts: 142
Reputation: 0
Default Re: Supply Drops

nice script
BTW: What kind of dialog did you used?
PRoleplay is offline   Reply With Quote
Old 02/08/2016, 11:11 AM   #9
oMa37
Gangsta
 
Join Date: Feb 2016
Posts: 928
Reputation: 156
Default Re: Supply Drops

Quote:
Originally Posted by PRoleplay View Post
What kind of dialog did you used?
DIALOG_STYLE_LIST
DIALOG_STYLE_TABLIST_HEADERS

Dialog Styles - Click Here.
oMa37 is offline   Reply With Quote
Old 02/08/2016, 12:28 PM   #10
WhiteGhost
Guest
 
Posts: n/a
Default Re: Supply Drops

Nice..
I was thinking about doing something like this..
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Command to supply all cars LucasDias Scripting Help 8 09/06/2015 05:44 PM
not supply gasoline +REP StarPeens Scripting Help 4 13/03/2015 01:15 AM
Helicopter Supply Drop errors stormchaser206 Scripting Help 2 19/01/2013 04:05 PM
Need a new power supply Eazy_Efolife Everything and Nothing 4 24/08/2009 11:43 AM


All times are GMT. The time now is 03:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.