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

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

Thanks for the reminder, missed to do that.

Gonna leave this code here, which will get the actual weapon name/alias from a weapon entity index for CSGO (and probably CSS):

#include <cstrike>
...
Forum: Scripting 05-27-2019, 06:50
Replies: 6
Views: 2,207
Posted By Muhlex
Re: [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

So I now built this:

int iWeapon = GetPlayerWeaponSlot(iClient, 1);
int iWeaponItemDefIndex = GetEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex");

CSWeaponID cswWeaponToCheck =...
Forum: Scripting 05-27-2019, 05:46
Replies: 6
Views: 2,207
Posted By Muhlex
Re: [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

Thanks a lot for the reply. However I meant to use the Entity Index of the weapon (called it weapon ID by mistake) and get the name from there.

Basically what I want to do is check a player's...
Forum: Scripting 05-26-2019, 19:03
Replies: 6
Views: 2,207
Posted By Muhlex
[CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)

As CS:GO has weapons that share the same classname (the one's that are in the same inventory slot), for example the P2000 and USP-S (weapon_hkp2000, weapon_usp_silencer), I am now looking for a way...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 23:03.


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