Raised This Month: $12 Target: $400
 3% 

CS/CZ give_item() names


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-20-2006 , 01:35   CS/CZ give_item() names
Reply With Quote #1

give_item() accepts a string name of the weapon/item...

Example for a Deagle: give_item( id, "weapon_deagle" )

These are the item names:
Code:
// Weapons: 
weapon_usp 
weapon_glock18 
weapon_deagle 
weapon_p228 
weapon_elite 
weapon_fiveseven 
weapon_m3 
weapon_xm1014 
weapon_mp5navy 
weapon_tmp 
weapon_p90 
weapon_mac10 
weapon_ump45 
weapon_famas 
weapon_sg552 
weapon_ak47 
weapon_m4a1 
weapon_aug 
weapon_scout 
weapon_awp 
weapon_g3sg1 
weapon_sg550 
weapon_galil 
weapon_m249 

// Ammo: 
ammo_45acp 
ammo_9mm 
ammo_50ae 
ammo_357sig 
ammo_57mm 
ammo_buckshot 
ammo_556nato 
ammo_762nato 
ammo_338magnum 
ammo_308 
ammo_556natobox

// Items:
item_kevlar
item_assaultsuit
weapon_flashbang
weapon_hegrenade
weapon_smokegrenade
item_thighpack
item_nvgs
weapon_shield
written by xeroblood - http://forums.alliedmods.net/showthr...t=16022#140252




-----------------------------------------
I'll edit this up a little better later to make it more related to SH - vittu
added cause someone was asking about it.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-09-2006 , 00:24  
Reply With Quote #2

here are the maxspeeds for each weapon when using fun's get_user_maxspeed
Code:
CSW_P228		250.0
CSW_SCOUT		260.0
CSW_HEGRENADE		250.0
CSW_XM1014		240.0
CSW_C4			250.0
--------------------------
CSW_MAC10		250.0
CSW_AUG			240.0
CSW_SMOKEGRENADE	250.0
CSW_ELITE		250.0
CSW_FIVESEVEN		250.0
---------------------------
CSW_UMP45		250.0
CSW_SG550		210.0
CSW_GALIL		240.0
CSW_FAMAS		240.0
CSW_USP			250.0
---------------------------
CSW_GLOCK18 		250.0
CSW_AWP			210.0
CSW_MP5NAVY		250.0
CSW_M249		220.0
CSW_M3			230.0
---------------------------
CSW_M4A1		230.0
CSW_TMP			250.0
CSW_G3SG1		210.0
CSW_FLASHBANG		250.0
CSW_DEAGLE		250.0
---------------------------
CSW_SG552		235.0
CSW_AK47		221.0
CSW_KNIFE		250.0
CSW_P90			245.0

Last edited by Emp`; 04-07-2007 at 13:00.
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`
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 06-09-2006 , 06:29  
Reply With Quote #3

There are more "item_" codes than that, you can also use a lot of items from HL. There is one that gives you better jumping that some hero uses.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-11-2007 , 22:43   Re: CS/CZ give_item() names
Reply With Quote #4

Code:
Index Name         Number     Ammo                              Weapon                               Clips
CSW_P228           1          give_item(id,"ammo_357sig")       give_item(id, "weapon_p228")         CLIP SIZE/BP SIZE: 13/52
==================================================================================================================================
CSW_SCOUT          3          give_item(id,"ammo_762nato")      give_item(id, "weapon_scout")        CLIP SIZE/BP SIZE: 10/90
==================================================================================================================================
CSW_XM1014         5          give_item(id,"ammo_buckshot")     give_item(id, "weapon_xm1014")       CLIP SIZE/BP SIZE: 7/32
==================================================================================================================================
CSW_MAC10          7          give_item(id,"ammo_45acp")        give_item(id, "weapon_mac10")        CLIP SIZE/BP SIZE: 30/100
==================================================================================================================================
CSW_AUG            8          give_item(id,"ammo_556nato")      give_item(id, "weapon_aug")          CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_ELITE          10         give_item(id,"ammo_9mm")          give_item(id, "weapon_elite")        CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_FIVESEVEN      11         give_item(id,"ammo_57mm")         give_item(id, "weapon_fiveseven")    CLIP SIZE/BP SIZE: 20/100
==================================================================================================================================
CSW_UMP45          12         give_item(id,"ammo_45acp")        give_item(id, "weapon_ump45")        CLIP SIZE/BP SIZE: 25/100
==================================================================================================================================
CSW_SG550          13         give_item(id,"ammo_556nato")      give_item(id, "weapon_sg550")        CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_GALI           14         give_item(id,"ammo_556nato")      give_item(id, "weapon_gali")         CLIP SIZE/BP SIZE: 35/90
==================================================================================================================================
CSW_FAMAS          15         give_item(id,"ammo_556nato")      give_item(id, "weapon_famas")        CLIP SIZE/BP SIZE: 25/90
==================================================================================================================================
CSW_USP            16         give_item(id,"ammo_45acp")        give_item(id, "weapon_usp")          CLIP SIZE/BP SIZE: 12/100
==================================================================================================================================
CSW_GLOCK18        17         give_item(id,"ammo_9mm")          give_item(id, "weapon_glock18")      CLIP SIZE/BP SIZE: 20/120 
==================================================================================================================================
CSW_AWP            18         give_item(id,"ammo_338magnum")    give_item(id, "weapon_awp")          CLIP SIZE/BP SIZE: 10/30
==================================================================================================================================
CSW_MP5NAVY        19         give_item(id,"ammo_9mm")          give_item(id, "weapon_mp5navy")      CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_M249           20         give_item(id,"ammo_556nato")      give_item(id, "weapon_m249")         CLIP SIZE/BP SIZE: 100/200
==================================================================================================================================
CSW_M3             21         give_item(id,"ammo_buckshot")         give_item(id, "weapon_m3")       CLIP SIZE/BP SIZE: 8/32
==================================================================================================================================
CSW_M4A1           22         give_item(id,"ammo_556nato")      give_item(id, "weapon_m4a1")         CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_TMP            23         give_item(id,"ammo_9mm")          give_item(id, "weapon_tmp")          CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_G3SG1          24         give_item(id,"ammo_762nato")      give_item(id, "weapon_g3sg1")        CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_DEAGLE         26         give_item(id,"ammo_50ae")         give_item(id, "weapon_deagle")       CLIP SIZE/BP SIZE: 7/35
==================================================================================================================================
CSW_SG552          27         give_item(id,"ammo_556nato")      give_item(id, "weapon_sg552")        CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_AK47           28         give_item(id,"ammo_762nato")      give_item(id, "weapon_ak47")         CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_P90            30         give_item(id,"ammo_57mm")         give_item(id, "weapon_p90")          CLIP SIZE/BP SIZE: 50/100
__________________________________________________________________________________________________________________________________

DEFUSE KIT                    give_item(id, "item_thighpack")                                                                         
----------------------------------------------------------------------------------------------------------------------------------
NVGS                          give_item(id, "item_nvgs")                                                            
----------------------------------------------------------------------------------------------------------------------------------
SHIELD                        give_item(id, "weapon_shield")                                                            
----------------------------------------------------------------------------------------------------------------------------------
CSW_C4             6          give_item(id, "weapon_c4")                                             BP SIZE: 1
----------------------------------------------------------------------------------------------------------------------------------
CSW_VEST           31         give_item(id, "item_kevlar")
----------------------------------------------------------------------------------------------------------------------------------
CSW_VESTHELM       32         give_item(id, "item_assaultsuit")
----------------------------------------------------------------------------------------------------------------------------------
CSW_HEGRENADE      4          give_item(id, "weapon_hegrenade")                                      BP SIZE: 1
----------------------------------------------------------------------------------------------------------------------------------
CSW_FLASHBANG      25         give_item(id, "weapon_flashbang")                                      BP SIZE: 2
----------------------------------------------------------------------------------------------------------------------------------
CSW_SMOKEGRENADE   9          give_item(id, "weapon_smokegrenade")                                   BP SIZE: 1
----------------------------------------------------------------------------------------------------------------------------------

Last edited by Emp`; 05-29-2011 at 13:51.
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`
-xchuubi.~
Member
Join Date: Jul 2010
Old 03-01-2011 , 18:37   Re: CS/CZ give_item() names
Reply With Quote #5

And if I want that the dedicated weapon contains 1 bullet only? Would they help me?
Let's suppose 1 awp with 1 bullet, 1 deagle with 1 bullet, jacket 150, life 200, 1 grenade, 1 flash. Quite free and automatic for admins
-xchuubi.~ is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 03-01-2011 , 18:43   Re: CS/CZ give_item() names
Reply With Quote #6

Then you will have to go to the amxx forum instead of the SH forum as that doesn't seem to be even remotely related to SH.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 03-02-2011 , 02:31   Re: CS/CZ give_item() names
Reply With Quote #7

Quote:
Originally Posted by Jelle View Post
Then you will have to go to the amxx forum instead of the SH forum as that doesn't seem to be even remotely related to SH.
Nor is anything else in this thread.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 03-02-2011 , 10:23   Re: CS/CZ give_item() names
Reply With Quote #8

Quote:
Originally Posted by vittu View Post
-----------------------------------------
I'll edit this up a little better later to make it more related to SH - vittu
added cause someone was asking about it.
It is a bit related to SH.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-08-2015 , 14:15   Re: CS/CZ give_item() names
Reply With Quote #9

And the name for give primary and secondary ammo?
__________________








CrazY. is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 10-29-2015 , 15:39   Re: CS/CZ give_item() names
Reply With Quote #10

Quote:
Originally Posted by CrazY. View Post
And the name for give primary and secondary ammo?
I think they can be:
Code:
CSW_PRIAMMO
CSW_SECAMMO

Last edited by RaZ_HU; 10-29-2015 at 15:40.
RaZ_HU 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 01:56.


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