[FilterScript] [FS] /sendweapon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] /sendweapon (
/showthread.php?tid=202187)
[FS] /sendweapon -
Jeffry - 23.12.2010
[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
Re: [FS] /sendweapon -
Noss* - 23.12.2010
Ooh : D Great job! Testing it now (:
Re: [FS] /sendweapon -
Zigulys400 - 23.12.2010
Very Nice! I like /weaponsback
Re: [FS] /sendweapon -
MestreKiller - 23.12.2010
simple and nice, but
who wants this soz jeff
Re: [FS] /sendweapon -
Jeffry - 24.12.2010
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.
Re: [FS] /sendweapon -
Zh3r0 - 24.12.2010
Unique idea. Good job!
Re: [FS] /sendweapon -
Raz0r1000 - 24.12.2010
Simple, and this is the first time that I have seen anything like this
Re: [FS] /sendweapon -
Jeffry - 25.12.2010
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. ^^