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

Weapon Training Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   devicenull (200)
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 07-28-2005 , 06:46   Weapon Training Mod
Reply With Quote #1

Do you know this problem, wanting to train usage of a certain weapon with your clan members but being unable
1. to afford it every round start
2. terrs to buy CT weapons / CTs to buy Terr weapons
3. to buy / pick up the certain weapon cuz it doesn't exist on the map you're playing?
Imagine both teams want to train M4A1 - Terrs will encounter problems.

I wrote a plugin that needs to be told which weapon / item / ammo to give the players and everyone will get the weapon once every respawn, so problems buying them will be no more, furthermore allowing ppl to spend their money on armor, grens and stuff.

CVars:
Code:
amx_weapon  <-- Set this to the weapon you want the players to get, eg awp, m4a1, aug, ak47 etc
amx_ammo    <-- To give ammo ( I didn't yet find out what you can give though)
amx_item    <-- To give a certain item
You do NOT have to add weapon_ / ammo_ / item_ in front of the weapon / ammo / item name, this is done by the script automatically!

To disable the script, just set the cvars of the feature you do not intend to use to "" (empty string) and this part of the plugin will not do anything, so to diable it completely set all the three CVars to "".

Requirements:
- knowledge of the weapon names :: for CS, see the list below or use my commandmenu from... below ^^
- fun module (uses give_item function)

Idea, Coding and Testing by MistaGee


UPDATES:
- Updated the routine that checks which weapons you have so the script doesn't give you 32 weapons any more
- #define'd the console messages so they can be changed easier
- removed the #include <cstrike> which was obsolete anyway
Attached Files
File Type: sma Get Plugin or Get Source (startwaffe.sma - 2750 views - 3.1 KB)
File Type: sma Get Plugin or Get Source (startwaffe.sma - 2247 views - 2.8 KB)
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
Goofkop
Member
Join Date: Jul 2005
Old 07-28-2005 , 07:06  
Reply With Quote #2

Verry handy

Ill try it
Goofkop is offline
Priski
Junior Member
Join Date: Aug 2005
Location: Finland
Old 08-30-2005 , 01:35  
Reply With Quote #3

Maybe this list may get handy with this plugin?
Here is the list item names of ammo that different weapons use:

Code:
   * weapon_usp (USP45)
      ammo_45acp

    * weapon_glock18 (Glock 18)
      ammo_9mm

    * weapon_deagle (Desert Eagle)
      ammo_50ae

    * weapon_p228 (P228)
      ammo_357sig

    * weapon_elite (Beretta Elites)
      ammo_9mm

    * weapon_fiveseven (Five-Seven)
      ammo_57mm

    * weapon_m3 (Benelli M3)
      ammo_buckshot

    * weapon_xm1014 (Benelli XM1014)
      ammo_buckshot

    * weapon_mp5navy (MP5/Navy)
      ammo_9mm

    * weapon_tmp (TMP)
      ammo_9mm

    * weapon_p90 (FN P90)
      ammo_57mm

    * weapon_mac10 (Mac-10)
      ammo_45acp

    * weapon_ump45 (UMP45)
      ammo_45acp

    * weapon_ak47 (AK47)
      ammo_762nato

    * weapon_sg552 (SG552)
      ammo_556nato

    * weapon_m4a1 (M4A1)
      ammo_556nato

    * weapon_aug (Aug)
      ammo_556nato

    * weapon_scout (Scout)
      ammo_762nato

    * weapon_awp (AWP)
      ammo_338magnum

    * weapon_g3sg1 (G3/SG-1)
      ammo_762nato

    * weapon_sg550 (SG550)
      ammo_556nato

    * weapon_m249 (M249)
      ammo_556natobox

    * item_kevlar (Kevlar)

    * item_assaultsuit (Kevlar + Ballistic Helmet)

    * item_flashbang (Flash Bang)

    * item_hegrenade (High-Explosive Grenade)

    * item_smokegrenade (Smoke Grenade)

    * item_thighpack (Defuse Kit)

    * weapon_c4 (C4 Plastique Bomb)
__________________
My plugins
Public rules, NO RETRY
Priski is offline
Send a message via MSN to Priski
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 09-02-2005 , 10:43  
Reply With Quote #4

wow thx, this is really helpful! but remember to NOT add weapon_ / ammo_ / item_ to the cvar value whn setting them.

e.g., use
Code:
amx_item kevlar
to give item_kevlar.


Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 09-02-2005 , 11:13  
Reply With Quote #5

Can't wait untill i get home
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
Meatwad
Senior Member
Join Date: Jul 2004
Location: New york, LI
Old 09-02-2005 , 17:49  
Reply With Quote #6

Here are better names for the weapons.

AWP should be:

Code:
Arctic Warfare Magnum
SIG552 should be:

Code:
SG-552 Commando
AK47 should be:

Code:
Avtomat Kalashnikov Model 47
M4A1 should be:

Code:
M4A1 Carbine
Smokegrenade should be:

Code:
Tear-gas grenade
Aug should be:

Code:
Steyr AUG A1
UMP should be:

Code:
Universal Machinenpistole
Scout should be:

Code:
Styer Scout
SG550 should be:

Code:
SG-550 Sniper Rifle
Mac10 should be:

Code:
MAC-10
I'd do more, but I'm getting bored.
__________________
http://googlefoundfunniest.ytmnd.com/

If you like Aqua Teen Hunger Force, then paste this onto your forehead. (Laugh out loud.)

Admin Weapons II
Meatwad is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 09-03-2005 , 06:03  
Reply With Quote #7

well I suppose many ppl who use this script actually know what the weapon codes mean and if they don't know they still can find out by testing.


Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
MattOG
Senior Member
Join Date: May 2005
Old 09-04-2005 , 05:05  
Reply With Quote #8

and typing all that unnecessary carp is pointless when you can do it in 3-5 letters, p.s. weapon arena does this doesn't it?? anyhooooooo
__________________

+Karma If I helped
MattOG is offline
MistaGee
Senior Member
Join Date: Aug 2004
Location: Germany (Fulda)
Old 09-13-2005 , 14:43  
Reply With Quote #9

I've now made a li'l CommandMenu that allows you to easily configure the plugin. Here you go:

Code:
"9" "Give Items"
{
	"1" "Pistols"
	{
		"1" "Glock" "amx_weapon glock18; amx_ammo 9mm"
		"2" "USP" "amx_weapon usp; amx_ammo 45acp"
		"3" "P228" "amx_weapon p228; amx_ammo 357sig"
		"4" "FiveSeven" "amx_weapon fiveseven; amx_ammo 57mm"
		"5" ".40 Dual Elites" "amx_weapon elite; amx_ammo 9mm"
		"6" "Desert Eagle" "amx_weapon deagle; amx_ammo 50ae"
	}
	"2" "Shotguns"
	{
		"1" "M3" "amx_weapon m3; amx_ammo buckshot"
		"2" "XM1014" "amx_weapon xm1014; amx_ammo buckshot"
	}
	"3" "Machine Pistols"
	{
		"1" "MP5" "amx_weapon mp5navy; amx_ammo 9mm"
		"2" "TMP" "amx_weapon tmp; amx_ammo 9mm"
		"3" "P90" "amx_weapon p90; amx_ammo 57mm"
		"4" "Mac10" "amx_weapon mac10; amx_ammo 45acp"
		"5" "UMP45" "amx_weapon ump45; amx_ammo 45acp"
	}
	"4" "Rifles"
	{
		"1" "AK47" "amx_weapon ak47; amx_ammo 762nato"
		"2" "SG552" "amx_weapon sg552; amx_ammo 556nato"
		"3" "M4A1" "amx_weapon m4a1; amx_ammo 556nato"
		"4" "AUG" "amx_weapon aug; amx_ammo 556nato"
		"5" "Scout" "amx_weapon scout; amx_ammo 762nato"
		"6" "AWP" "amx_weapon awp; amx_ammo 338magnum"
		"7" "G3SG1" "amx_weapon g3sg1; amx_ammo 762nato"
		"8" "SG550" "amx_weapon sg550; amx_ammo 762nato"
	}
	"5" "M249 Para" "amx_weapon m249; amx_ammo 556natobox"
	"6" "C4 (-.-)" "amx_weapon c4"
	"8" "Equipment"
	{
		"1" "Kevlar" "amx_item kevlar"
		"2" "Kevlar + Helmet" "amx_item assaultsuit"
		"3" "Flashbang" "amx_item flashbang"
		"4" "HE Gren" "amx_item hegrenade"
		"5" "Smoke Gren" "amx_item smokegrenade"
		"6" "Defuse Kit" "amx_item thighpack"
	}
	"9" "Disable..."
	{
		"1" "all" "amx_weapon 0; amx_ammo 0; amx_item 0"
		"2" "weapons" "amx_weapon 0"
		"3" "ammo" "amx_ammo 0"
		"4" "items" "amx_item 0"
	}
}
Just paste it into you comandmenu.txt, type "+commandmenu" into console and see ^^

Greetz MGee
__________________
Ich hab nie behauptet dass ich kein Genie bin!
Mumble-Django: A web interface for Mumble
MistaGee is offline
Send a message via ICQ to MistaGee
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 01-10-2010 , 01:02   Re: Weapon Training Mod
Reply With Quote #10

bug!!! Writes must include the debug mode!
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Reply


Thread Tools
Display Modes

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 21:24.


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