Raised This Month: $19 Target: $400
 4% 

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: eyal282
Forum: Scripting 05-28-2019, 05:05
Replies: 6
Views: 2,207
Posted By eyal282
Re: [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

Mark the thread as solved so people who google the question can instantly see that it's working.
Forum: Scripting 05-27-2019, 06:11
Replies: 6
Views: 2,207
Posted By eyal282
Re: [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

https://sm.alliedmods.net/new-api/cstrike/CS_WeaponIDToItemDefIndex

Try turning the weapon ID into a defindex and use

GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex");

See if...
Forum: Scripting 05-27-2019, 05:08
Replies: 6
Views: 2,207
Posted By eyal282
Re: [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

https://sm.alliedmods.net/new-api/cstrike/CS_WeaponIDToAlias

If you give it CSWeapon_AWP, it'll put "awp" in buffer. CSWeapon_HKP2000, "hpk2000"

Just use Format(buffer, len, "weapon_%s",...
Showing results 1 to 3 of 3

 
Forum Jump

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


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