AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [TFC] Weapon Giver (https://forums.alliedmods.net/showthread.php?t=53622)

Ramono 04-07-2007 18:01

[TFC] Weapon Giver
 
1 Attachment(s)
http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif
This plugin gives weapons to players in TFC.
I'm suprised that this has never been made before.

Commands:
amx_giveweaponmenu KICK acces needed
amx_showweapons to show weaponID's and ammoID's in the console
amx_giveweapon (NAME/@ALL/@BLUE/@RED/@YELLOW/@GREEN) (WeaponID) KICK acces needed
(Can also use first letter of the team like @A for ALL @R for RED etc...)
amx_giveammo (NAME/@ALL/@BLUE/@RED/@YELLOW/@GREEN) (ammoID) (amount) KICK acces needed
(Can also use first letter of the team like @A for ALL @R for RED etc...)

Cvars:
amx_spawnweapon1
amx_spawnweapon2
amx_spawnweapon3
amx_spawnweapon4
amx_spawnweapon5
Put amx_spawnweapon1/5 to a weaponID number, everyone will get that weapon on spawn.
This can be done for 5 weapons max, you can also use 200 to strip weapons, and 100 to give all weapons.
You can also put this to an AmmoID and it will give the class max ammo on spawn.
Goes back to 0 automaticly after mapchange.

Example: Put amx_spawnweapon1 to 200 to strip weapons, but amx_spawnweapon2 to 3 for knife, and everyone will get knife only on spawn.

Modules: FUN + TFCX + ENGINE

Version History:
1.0 First Release
1.1 Fixed bug in command (Thanks pizzahut)
1.2 Added a command for faster use.
2.0 Added spawnweapon, added ammogive, added weaponstrip.
http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif http://www.amxmodx.org/images/tfc.gif

Emp` 04-07-2007 23:14

Re: Weapon Giver
 
Quite nicely done actually. IMO I would add the ability to do a command instead of having to go through the menu. Anyway, leaving in New Plugins for a little bit so people can see it.

pizzahut 04-08-2007 06:32

Re: Weapon Giver
 
Nice plugin! :)

pizzahut 04-08-2007 10:08

Re: Weapon Giver
 
The number at the end must equal the number of parameters plus one for the command itself.
So this should be 3:

Code:

public giveweaponcmd(id, level, cid) {
        if (!cmd_access(id, level, cid, 2))


Ramono 04-08-2007 11:02

Re: Weapon Giver
 
... i realy need to think better, those are debug messages wich i forgot to remove. (Re-uploaded)

Smiley123 09-27-2007 17:38

Re: Weapon Giver
 
Great plugin for tfc! Lots of fun. But the players lose the given weapons when they die. :( Is there a way to change this? Can the weapons continue with respawn? Again gj! :)

Ramono 09-28-2007 02:47

Re: Weapon Giver
 
This is caused by TFC itself, it strips weapons on every respawn, incase you change class.

I might have a update for this soon.

Ramono 09-28-2007 08:43

Re: Weapon Giver
 
Updated to 2.0.

M249-M4A1 09-28-2007 21:07

Re: Weapon Giver
 
Quote:

Originally Posted by Ramono (Post 536575)
Updated to 2.0.

Awesome, been looking for a new function like that! Good work!

Smiley123 09-29-2007 11:11

Re: Weapon Giver
 
Thank you for the added functions. But can you add an off (0) and on (1) option as well please? I don't want the server to be "allweapons" all the time. I'm thinking of voting the "all weapons mode" in during the last 5 minutes of each match.
Its good to see more TFC plugins coming in. Hoping to keep TFC alive! :)


All times are GMT -4. The time now is 11:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.