How to get player's current weapon model
I want to know how to get the model of a weapon that a player is currently holding. I don't need a weapon name, just model, since I want it to work with custom weapons too.
|
Re: How to get player's current weapon model
PHP Code:
|
Re: How to get player's current weapon model
Thank you.
Is it possible to count how many P_MODELS a player has active at once? Since I am displaying multiple P_MODELS on a player but I don't know how to get that number. |
Re: How to get player's current weapon model
Quote:
|
Re: How to get player's current weapon model
Well I didn't write the plugin so I don't know. But I can see bots holding two overlayed weapons and I can hide each of them separately, so I figured it's possible. The second weapon is the same as the player's current weapon (same P_MODEL) so that might be how.
|
Re: How to get player's current weapon model
I don't think having more than one model active at the same time is possible.
|
Re: How to get player's current weapon model
Quote:
Edit: https://forums.alliedmods.net/showthread.php?p=2597761 |
| All times are GMT -4. The time now is 12:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.