AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   Weapon Returns & Ammo Types [CS:S] (https://forums.alliedmods.net/showthread.php?t=59099)

Peoples Army 08-07-2007 22:53

Weapon Returns & Ammo Types [CS:S]
 
Weapon Returns For GetClientWeapon():

Heres a little list I made of proper returns for


Syntex:

Code:


GetClientWeapon(client , String:Weapon ,MaxLength)


Returns:

Code:


weapon_p228   
weapon_shield     
weapon_scout     
hegrenade
weapon_xm1014   
weapon_c4         
weapon_mac10     
weapon_aug         
smokegrenade
weapon_elite       
weapon_fiveseven
weapon_ump45   
weapon_sg550     
weapon_galil     
weapon_famas   
weapon_usp     
weapon_glock18 
weapon_awp     
weapon_mp5navy
weapon_m249     
weapon_m3       
weapon_m4a1     
weapon_tmp       
weapon_g3sg1   
flashbang
weapon_deagle   
weapon_sg552   
weapon_ak47     
weapon_knife     
weapon_p90

Part 2: Ammo Types

Heres the weapon returns with there matching ammo types .

Code:

weapon_p228  ammo_357sig
weapon_shield
weapon_scout ammo_762nato
weapon_hegrenade
weapon_xm1014 ammo_buckshot
weapon_c4
weapon_mac10 ammo_45acp
weapon_aug ammo_556nato
weapon_smokegrenade
weapon_elite ammo_9mm
weapon_fiveseven ammo_57mm
weapon_ump45 ammo_45acp
weapon_sg550 ammo_556nato
weapon_galil ammo_556nato
weapon_famas ammo_556nato
weapon_usp ammo_45acp
weapon_glock18 ammo_9mm
weapon_awp ammo_338magnum
weapon_mp5navy ammo_9mm
weapon_m249 ammo_556natobox
weapon_m3 ammo_buckshot
weapon_m4a1 ammo_556nato
weapon_tmp ammo_9mm
weapon_g3sg1 ammo_762nato
weapon_flashbang
weapon_deagle ammo_50ae
weapon_sg552 ammo_556nato
weapon_ak47 ammo_762nato
weapon_knife
weapon_p90 ammo_57mm



Thought this would be usefull info for others . Hope it help someone .

bl4nk 08-08-2007 18:22

Re: [Tutorial] Weapon Returns For GetClientWeapon()
 
Not really a "tutorial", just useful information. This will definitely help some people out though, thanks.

Peoples Army 08-08-2007 18:56

Re: [Tutorial] Weapon Returns For GetClientWeapon()
 
yeah true not a real tutrorial , the sub-forum says"extensions , tutorials , snippits" . didnt know how best to describe it lol . the 2nd half im workin on now is a enity index lsit for GetPlayerWeaponSlot(). thanks :wink:

teame06 08-08-2007 21:47

Re: [Tutorial] Weapon Returns For GetClientWeapon()
 
Add for CSS to the title and your thread because this is just for CSS.

Peoples Army 08-08-2007 21:57

Re: [Tutorial] Weapon Returns For GetClientWeapon() [CS:S]
 
ooppps ;) done . thanks :wink:

Shaman 08-09-2007 16:24

Re: Weapon Returns For GetClientWeapon() [CS:S]
 
Peoples Army, you can make something like this:
GetAmmoType("weapon_awp") -> ammo_magnum...
GetWeapon("ammo_nato...") -> weapon_ak47

Peoples Army 08-09-2007 16:35

Re: Weapon Returns For GetClientWeapon() [CS:S]
 
you want me to add the ammo lsits also ?


All times are GMT -4. The time now is 00:31.

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