[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
#2

Ooh : D Great job! Testing it now (:
Reply
#3

Very Nice! I like /weaponsback
Reply
#4

simple and nice, but who wants this soz jeff
Reply
#5

Quote:
Originally Posted by Noss*
Посмотреть сообщение
Ooh : D Great job! Testing it now (:
Thanks. Have fun.

Quote:
Originally Posted by Zigulys400
Посмотреть сообщение
Very Nice! I like /weaponsback
Yeah, its is good if you don't want the weapon.

Quote:
Originally Posted by MestreKiller
Посмотреть сообщение
simple and nice, but who wants this soz jeff
Hehe, I remember that I've seen once a guy asking for this.
Reply
#6

Unique idea. Good job!
Reply
#7

Simple, and this is the first time that I have seen anything like this
Reply
#8

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
Unique idea. Good job!
Quote:
Originally Posted by Raz0r1000
Посмотреть сообщение
Simple, and this is the first time that I have seen anything like this
Thanks.

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
/sendweapon [PlayerID] [Ammo]

Hm, shouldn't it be something like

/sendweapon [PlayerID] [Weapon Name] [Ammo]

or

/sendweapon [Player ID] [Weapon Name]
No, its much easier. The weapon you hold will be sent away with the ammo you've entered. So you don't need to know the weapon ID. ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)