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

How do you get the held weapon id?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZackNAttack
Junior Member
Join Date: Aug 2019
Old 09-07-2019 , 21:41   How do you get the held weapon id?
Reply With Quote #1

How do you get the id of the weapon a specific client is currently holding?

EDIT: nvm found out how.
https://forums.alliedmods.net/showthread.php?t=126357
EDIT2: nvm it doesn't return id

Last edited by ZackNAttack; 09-07-2019 at 22:26.
ZackNAttack is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 09-08-2019 , 04:57   Re: How do you get the held weapon id?
Reply With Quote #2

PHP Code:
GetEntPropEnt(clientProp_Send"m_hActiveWeapon"
Searching on this forum can lead you to treasures.
__________________
Ilusion9 is offline
ZackNAttack
Junior Member
Join Date: Aug 2019
Old 09-08-2019 , 11:15   Re: How do you get the held weapon id?
Reply With Quote #3

Thanks!

I tried searching, but it's only now I realize I didn't try this forum's search function. (Before I was using Google Search.)

Last edited by ZackNAttack; 09-08-2019 at 11:16.
ZackNAttack 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 12:05.


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