AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   How do you get the held weapon id? (https://forums.alliedmods.net/showthread.php?t=318570)

ZackNAttack 09-07-2019 21:41

How do you get the held weapon id?
 
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

Ilusion9 09-08-2019 04:57

Re: How do you get the held weapon id?
 
PHP Code:

GetEntPropEnt(clientProp_Send"m_hActiveWeapon"

Searching on this forum can lead you to treasures.

ZackNAttack 09-08-2019 11:15

Re: How do you get the held weapon id?
 
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.)


All times are GMT -4. The time now is 05:02.

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