Raised This Month: $32 Target: $400
 8% 

[TFC] Weapon Giver


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Team Fortress Classic        Category:   Admin Commands        Approver:   Emp` (115)
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 04-07-2007 , 18:01   [TFC] Weapon Giver
Reply With Quote #1


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.
Attached Files
File Type: sma Get Plugin or Get Source (giveweapon.sma - 3365 views - 21.1 KB)
__________________
Um, hi.

Last edited by Ramono; 10-28-2008 at 11:27. Reason: Cause I want to!
Ramono is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-07-2007 , 23:14   Re: Weapon Giver
Reply With Quote #2

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.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-08-2007 , 06:32   Re: Weapon Giver
Reply With Quote #3

Nice plugin!
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 04-08-2007 at 10:21. Reason: This has been fixed.
pizzahut is offline
pizzahut
Senior Member
Join Date: Oct 2004
Old 04-08-2007 , 10:08   Re: Weapon Giver
Reply With Quote #4

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))
__________________
My AMXX plugins (content date 2007-03-29, link check 2017-04-26)

Plugins for the Royston Vasey TFC server - These are UNSUPPORTED, except those which have been published at AMX Mod X.

Last edited by pizzahut; 04-08-2007 at 14:06. Reason: Issue has been explained by BAILOPAN
pizzahut is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 04-08-2007 , 11:02   Re: Weapon Giver
Reply With Quote #5

... i realy need to think better, those are debug messages wich i forgot to remove. (Re-uploaded)
__________________
Um, hi.
Ramono is offline
Old 04-08-2007, 11:03
pizzahut
This message has been deleted by pizzahut. Reason: Never mind!
Smiley123
Junior Member
Join Date: Mar 2007
Old 09-27-2007 , 17:38   Re: Weapon Giver
Reply With Quote #6

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!
Smiley123 is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 09-28-2007 , 02:47   Re: Weapon Giver
Reply With Quote #7

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

I might have a update for this soon.
__________________
Um, hi.
Ramono is offline
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 09-28-2007 , 08:43   Re: Weapon Giver
Reply With Quote #8

Updated to 2.0.
__________________
Um, hi.
Ramono is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-28-2007 , 21:07   Re: Weapon Giver
Reply With Quote #9

Quote:
Originally Posted by Ramono View Post
Updated to 2.0.
Awesome, been looking for a new function like that! Good work!
__________________
M249-M4A1 is offline
Smiley123
Junior Member
Join Date: Mar 2007
Old 09-29-2007 , 11:11   Re: Weapon Giver
Reply With Quote #10

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!
Smiley123 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:20.


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