[FS/INC] WeaponDrop (Drop your weapons when you die!) -
Jeffry - 30.04.2011
[FS/INC] WeaponDrop v1.1
Hello guys,
this is my fourth release. I had some free-time last week and made this little Filterscript, which can also be used as an Include. It will make your weapons drop on the floor as pickups when you die.
What is this Filterscript?- It is a little Filterscript, which drops your weapons as pickups when you die. You can also set, that a money-bag will be dropped with money in it. Later more.
Whats new in v1.1?- Added command: /dropweapon [opt:ammo]
- Added OnWeaponDropExit();
Definitions:
#define WEAPON_RESPAWN_TIME- This is the time until the dropped pickups get destroyed. Modify it if you wish.
#define MONEY_BAG_MONEY- -1 = Money bad is ON and all money of the death player will be in it.
- 0 = Money bag is OFF
- 1+ = Money bag is ON with the defined number of money.
#define MONEY_BAG_MODE- 1 = Money comes from the death player.
- 0 = Money comes from the server.
new ForbiddenWeapons[]= { 38, 44, 45 };- Here you enter the weapon IDs of the weapons you don't want to be created.
I have already pre-defined three weapon IDs, but feel free to remove them if you wish.
Installation:
- Filterscript version:
- Download the script.
- Place it as a new Filterscript in your 'filterscripts' folder.
- Open your 'server.cfg' and write beside 'filterscripts': WeaponDrop
- Save and run your server.
- Enjoy!
- Include verion:
- Download the Include.
- Place it as a new Include in your 'pawno/include' folder.
- Open the FS/GM you want it to be in.
- Now you have to add:
- At OnGameModeInit or OnFilterScriptInit: OnWeaponDropInit();
- At OnPlayerDeath: OnWeaponDrop(playerid)
- At OnPlayerPickUpPickup: OnWeaponDropPickup(playerid, pickupid);
- At OnPlayerComandText: if(OnWeaponDropCommand(playerid, cmdtext) == 1) return 1;
- At OnGameModeExit or OnFilterScriptExit: OnWeaponDropExit();
- Compile the script and run your server.
- Enjoy!
Any pictures?
Any bugs?- There is a bug at the GetPlayerWeaponData function. Sometimes not all weapons get created with correct ammo. (Reported)
- If you find some others, please report them here, so I can fix them.
Credits:
Download Links:
- Filterscript Version:(Recommended!)
Readme!
- Include Version: (Only recommended for people who know how to handle with includes)
Readme!
- In the attachments you can directly download the AMX and the PWN file if you wish.
Feel free to modify the Filterscript/Include in any way you want. Of course I'd be happy if you give me /credits.
If you have any questions or ideas or bugs feel free to post them here.
Now enjoy the FS, and please leave your comments & opinions!!
Greetings,
Jeffry
Best Replies:
Quote:
Originally Posted by juraska
Good job Jeffry.
|
Quote:
Originally Posted by KnightRiderUGP
These are great Jeffry (as always), specially since this was one of ur first ones. Well as i've already said to you, i'll be using this on my server
|
Quote:
Originally Posted by HyperZ
Well done Jeffry
|
Re: [FS/INC] WeaponDrop -
blackwave - 30.04.2011
woow, really what I was wanting XD. Just was lazy to do that. Really nice
Re: [FS/INC] WeaponDrop -
wheelman_WM - 30.04.2011
Wow awesome
Re: [FS/INC] WeaponDrop -
GobL1N - 30.04.2011
Good Job.
Re: [FS/INC] WeaponDrop -
juraska - 30.04.2011
Good job Jeffry.
Re: [FS/INC] WeaponDrop -
Sinner - 30.04.2011
Awsome I'll try this out. Thanks!
Re: [FS/INC] WeaponDrop -
TheArcher - 30.04.2011
The drop weapons are as pickups or objects?
Re: [FS/INC] WeaponDrop -
Jeffry - 01.05.2011
Thanks everyone.
Quote:
Originally Posted by Anthony_prince
The drop weapons are as pickups or objects?
|
They drop as pickups. You can pick them up by walking through them.
Re: [FS/INC] WeaponDrop -
TheArcher - 01.05.2011
Quote:
Originally Posted by Jeffry
Thanks everyone.
They drop as pickups. You can pick them up by walking through them.
|
understood. good job its useful
Re: [FS/INC] WeaponDrop -
Jeffry - 09.05.2011
Quote:
Originally Posted by Anthony_prince
understood. good job its useful
|
Okey.
Thank you.
More comments? Please leave your opinion! Thank you.
Re: [FS/INC] WeaponDrop -
Skaizo - 09.05.2011
wow good job.thanks
Re: [FS/INC] WeaponDrop -
CyNiC - 09.05.2011
Don't exists bug on GetPlayerWeaponData, the weapon pickups have a amount of ammo by default.
Re: [FS/INC] WeaponDrop -
Jeffry - 11.05.2011
Quote:
Originally Posted by CyNiC
Don't exists bug on GetPlayerWeaponData, the weapon pickups have a amount of ammo by default.
|
This FS does not use the default ammount of ammo. They will give you (In 99%) the ammo which the player had.
Re : [FS/INC] WeaponDrop -
bousla7e - 12.05.2011
mmm i see
Re: [FS/INC] WeaponDrop -
Ironboy - 12.05.2011
Nice script
i like it
Re: [FS/INC] WeaponDrop -
Is3nhart667 - 12.05.2011
Nicee =)
Re: [FS/INC] WeaponDrop -
lowrida018 - 12.05.2011
I made a mirror, it has everything in the folder it should go in, plus a readme;
http://solidfiles.com/d/a1d8/
Re: [FS/INC] WeaponDrop -
Jeffry - 16.05.2011
Quote:
Originally Posted by lowrida018
|
Ok. Thanks.
If you have any suggestions or questions feel free to ask!
Else, please leave your opinions. Thanks.
Re: [FS/INC] WeaponDrop -
mike_1 - 17.05.2011
very good filterscript i will try it now
Re: [FS/INC] WeaponDrop -
nuriel8833 - 17.05.2011
Code:
error 004: function "DropPlayerWeapons" is not implemented