Getting weapon of what user is holding
How would I get what weapon the user is holding and get the exact weapon name in TS? I looked at Ava's include file but I'm not sure on how to use it.
|
Re: Getting weapon of what user is holding
ts_getuserwpn
http://www.amxmodx.org/funcwiki.php?go=func&id=644 |
Re: Getting weapon of what user is holding
That only gets the current weapon. I'm trying to get every weapon the user has.
|
Re: Getting weapon of what user is holding
This doesn't work for TS?
http://www.amxmodx.org/funcwiki.php?...pons&go=search |
Re: Getting weapon of what user is holding
Oh alright thanks, the example there taught me on how to use one of ava's functions xD. but I'm stuck again :S
PHP Code:
|
Re: Getting weapon of what user is holding
It doesn't matter. Your "for" statement is wrong a tid bit. But when it's working correctly, it should display in the menu:
"i number. Weapons name" Obviously, like you have. Well that will automatically read, and the case statement will work fine, it always has for me. Just make the case(s) 0-9. But if you really need to get the total amount of weapons found, make a global variable to store it. Oh and also, change your "for" statement to this: Code:
|
Re: Getting weapon of what user is holding
Here's a start:
Code:
|
| All times are GMT -4. The time now is 06:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.