[FilterScript] [FS] /sendweapon
#1

[FS] /sendweapon

Hello guys,
this is my third release. I've seen people asking for such a FS quite a few times, so here it is. It is a simple /sendweapon command, which allows you to send a weapon to another player. The other player has after receiving the weapon a by you defined time, to deny the weapon and get his old weapons back. I've created this in April, but I had never any time to release it, until now. ^^
Some detailed information now:

What is this Filterscript?
  • It is just a simple Filterscript with two commands:
    • /sendweapon [PlayerID] [Ammo]
      => You just have to type the ID you want the weapon to send to, and the amount of ammo. Then the weapon you are holding will be automatically sent with the given amount to the entered player.
    • /weaponsback
      => If you want to deny a weapon that you've received, you can simply type /weaponsback and your weapons will be restored.
Definitions:

#define WEAPON_TAX_BILL 10000
  • This is the Tax-Bill you have to pay, when you want to send a weapon to a player.
    You can simply change the Tax-Bill by changing the current '10000' to any other value. Use 0 to disabe the Tax-Bil.
#define MAX_REFUSE_TIME 30
  • This is the time (in seconds) in which you can get your old weapons back, after receiving a weapon.
#define WAIT_TIME 30
  • This is the time you have to wait after sending a weapon, until you may send another weapon.
new ForbiddenWeapons[]= { 44, 45, 38 };
  • Here you enter the weapon IDs of the weapons you don't want to be sent to other players.
    I have already pre-defined three weapon IDs, but feel free to remove them if you wish.
Installation:
  • Download the script.
  • Place it as a new Filterscript in your 'filterscripts' folder.
  • Open your 'server.cfg' and write beside 'filterscripts': SendWeapon
  • Save and run your server.
  • Enjoy!
Any pictures?
I don't think that any pictures are needed. But if you wish to have some, I can create some.

Any bugs?
None so far. If you find one, please report it here, so I can fix it.

Credits:Download Links:

(Solidfiles [PWN & AMX])



Readme!


Feel free to modify the Filterscript 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
Reply


Messages In This Thread
[FS] /sendweapon - by Jeffry - 23.12.2010, 14:23
Re: [FS] /sendweapon - by Noss* - 23.12.2010, 14:52
Re: [FS] /sendweapon - by Zigulys400 - 23.12.2010, 14:55
Re: [FS] /sendweapon - by MestreKiller - 23.12.2010, 14:56
Re: [FS] /sendweapon - by Jeffry - 24.12.2010, 12:10
Re: [FS] /sendweapon - by Zh3r0 - 24.12.2010, 12:13
Re: [FS] /sendweapon - by Raz0r1000 - 24.12.2010, 14:17
Re: [FS] /sendweapon - by Jeffry - 25.12.2010, 15:36

Forum Jump:


Users browsing this thread: 1 Guest(s)