23.12.2010, 14:23
(
Последний раз редактировалось Jeffry; 22.06.2015 в 16:35.
Причина: 22.06.2015: Fixed Download-Pictures
)
[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.
- /sendweapon [PlayerID] [Ammo]
#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.
- This is the time (in seconds) in which you can get your old weapons back, after receiving a weapon.
- This is the time you have to wait after sending a weapon, until you may send another weapon.
- 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.
- 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!
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:
- Jeffry: Main-Coding & Testing
- DracoBlue: dcmd
- Palladium: Testing
- To whoever made the 'strtok' function.
(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