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

Weapon Returns & Ammo Types [CS:S]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-07-2007 , 22:53   Weapon Returns & Ammo Types [CS:S]
Reply With Quote #1

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 .

Last edited by Peoples Army; 08-10-2007 at 13:59.
Peoples Army is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 08-08-2007 , 18:22   Re: [Tutorial] Weapon Returns For GetClientWeapon()
Reply With Quote #2

Not really a "tutorial", just useful information. This will definitely help some people out though, thanks.
bl4nk is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 18:56   Re: [Tutorial] Weapon Returns For GetClientWeapon()
Reply With Quote #3

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
Peoples Army is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 08-08-2007 , 21:47   Re: [Tutorial] Weapon Returns For GetClientWeapon()
Reply With Quote #4

Add for CSS to the title and your thread because this is just for CSS.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-08-2007 , 21:57   Re: [Tutorial] Weapon Returns For GetClientWeapon() [CS:S]
Reply With Quote #5

ooppps ;) done . thanks
Peoples Army is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 08-09-2007 , 16:24   Re: Weapon Returns For GetClientWeapon() [CS:S]
Reply With Quote #6

Peoples Army, you can make something like this:
GetAmmoType("weapon_awp") -> ammo_magnum...
GetWeapon("ammo_nato...") -> weapon_ak47
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-09-2007 , 16:35   Re: Weapon Returns For GetClientWeapon() [CS:S]
Reply With Quote #7

you want me to add the ammo lsits also ?
Peoples Army 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 23:52.


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