[FilterScript] [FS/INC] WeaponDrop
#1

[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
Reply


Messages In This Thread
[FS/INC] WeaponDrop (Drop your weapons when you die!) - by Jeffry - 30.04.2011, 11:03
Re: [FS/INC] WeaponDrop - by blackwave - 30.04.2011, 11:05
Re: [FS/INC] WeaponDrop - by wheelman_WM - 30.04.2011, 11:06
Re: [FS/INC] WeaponDrop - by GobL1N - 30.04.2011, 11:06
Re: [FS/INC] WeaponDrop - by juraska - 30.04.2011, 11:14
Re: [FS/INC] WeaponDrop - by Sinner - 30.04.2011, 16:28
Re: [FS/INC] WeaponDrop - by TheArcher - 30.04.2011, 20:54
Re: [FS/INC] WeaponDrop - by Jeffry - 01.05.2011, 11:15
Re: [FS/INC] WeaponDrop - by TheArcher - 01.05.2011, 11:21
Re: [FS/INC] WeaponDrop - by Jeffry - 09.05.2011, 13:39
Re: [FS/INC] WeaponDrop - by Skaizo - 09.05.2011, 13:55
Re: [FS/INC] WeaponDrop - by CyNiC - 09.05.2011, 14:12
Re: [FS/INC] WeaponDrop - by Jeffry - 11.05.2011, 16:01
Re : [FS/INC] WeaponDrop - by bousla7e - 12.05.2011, 00:09
Re: [FS/INC] WeaponDrop - by Ironboy - 12.05.2011, 07:35
Re: [FS/INC] WeaponDrop - by Is3nhart667 - 12.05.2011, 08:04
Re: [FS/INC] WeaponDrop - by lowrida018 - 12.05.2011, 08:29
Re: [FS/INC] WeaponDrop - by Jeffry - 16.05.2011, 17:22
Re: [FS/INC] WeaponDrop - by mike_1 - 17.05.2011, 06:58
Re: [FS/INC] WeaponDrop - by nuriel8833 - 17.05.2011, 15:42
Respuesta: Re: [FS/INC] WeaponDrop - by Lunnatiicz - 17.05.2011, 19:05
Re: Respuesta: Re: [FS/INC] WeaponDrop - by Jeffry - 18.05.2011, 13:00
Re: [FS/INC] WeaponDrop - by KnightRiderUGP - 06.06.2011, 10:29
Re: [FS/INC] WeaponDrop - by Nr1FANEX - 29.06.2011, 16:49
Re: [FS/INC] WeaponDrop - by ApolloRJ - 29.06.2011, 17:57
Re: [FS/INC] WeaponDrop - by Jeffry - 30.06.2011, 13:50
Re: [FS/INC] WeaponDrop - by aco_SRBIJA - 30.06.2011, 14:43
Re: [FS/INC] WeaponDrop - by Warfish - 01.07.2011, 08:06
Re: [FS/INC] WeaponDrop - by Jeffry - 18.07.2011, 15:34
Re: [FS/INC] WeaponDrop - by FMZ - 05.09.2011, 14:58
Re: [FS/INC] WeaponDrop - by HyperZ - 05.09.2011, 15:13
Re: [FS/INC] WeaponDrop - by Darnell - 05.09.2011, 15:14
Re: [FS/INC] WeaponDrop - by Jeffry - 05.09.2011, 15:51
Re: [FS/INC] WeaponDrop - by ylleron - 06.09.2011, 11:25
Re: [FS/INC] WeaponDrop - by mickos - 13.05.2012, 12:47
Re: [FS/INC] WeaponDrop - by xMaGmOtAnEtHx - 17.08.2012, 04:03
Re: [FS/INC] WeaponDrop - by xMaGmOtAnEtHx - 17.08.2012, 04:10
Re: [FS/INC] WeaponDrop - by a.z.a.r - 20.01.2013, 10:44
Re: [FS/INC] WeaponDrop - by martin3644 - 05.05.2013, 16:02
Re: [FS/INC] WeaponDrop - by Jeffry - 08.05.2013, 15:44
Re: [FS/INC] WeaponDrop - by exclide1 - 28.06.2013, 10:28
Re: [FS/INC] WeaponDrop - by StayAlive - 28.06.2013, 11:28
Re: [FS/INC] WeaponDrop - by Jeffry - 28.06.2013, 22:40
Re: [FS/INC] WeaponDrop - by exclide1 - 28.06.2013, 23:23
Re: [FS/INC] WeaponDrop - by ScRipTeRi - 28.06.2013, 23:33
Re: [FS/INC] WeaponDrop (Drop your weapons when you die!) - by Jeffry - 30.06.2013, 21:49
Re: [FS/INC] WeaponDrop (Drop your weapons when you die!) - by exclide1 - 01.07.2013, 13:52

Forum Jump:


Users browsing this thread: 1 Guest(s)