[SOLVED] NS_GET_WEAPON - Useless? Bug? Alternative?
Trying to figure out which weapon the user has selected currently. As in, are they using their pistol? Are they using fade swipe? Are they using parasite? Are they using spit?
This returns some random number only when I kill someone using the gorge/fade. http://www.amxmodx.org/funcwiki.php?go=func&id=1162 Code:
also tried This doesn't return anything. Code:
also tried This will always return 1 if I have the weapon available. Even though I kill someone with heal spray, it will say Spit?: 1 if I am the gorge since I do have the wepaon. http://www.amxmodx.org/doc/index.htm...has_weapon.htm Code:
------------- Update: also tried Only returns 0. Code:
Update #2 ......couple hours later and some time away from the computer, I went back to the basics. This is for all those cannot figure out how to compare the users selected weapon with the NS_CONST.inc definitions. Use this line. Code:
/feelslikeanewb |
| All times are GMT -4. The time now is 05:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.