Show Clip-Ammo by HUDmsg
How can I use SyncHUD message to show Weapon clip, ammo?
How can I check when player switch weapon? for example: I'm holding AK47, and I switch to D-eagle or the other weapons and to the contrary, How can I check it? plz help me, I want to Show Clip/Ammo, which higher than 125/254. |
Re: Show Clip-Ammo by HUDmsg
This will help you out. Just take out the calculations and such.
http://forums.alliedmods.net/showthread.php?t=188368 |
Re: Show Clip-Ammo by HUDmsg
the ammo just show when player shoot/fire.
but i want to show ammo permantly. |
Re: Show Clip-Ammo by HUDmsg
|
Re: Show Clip-Ammo by HUDmsg
so just make some var to get weaponid, clip, ammo. Check some statement and show it in by task loop flags "b", right?
|
Re: Show Clip-Ammo by HUDmsg
Quote:
|
Re: Show Clip-Ammo by HUDmsg
can use cs_get_user_bpammo(id,WEAPON_ID)?
|
Re: Show Clip-Ammo by HUDmsg
Quote:
If you have tested and that it doesn't work, replace : PHP Code:
PHP Code:
You can do the same here : PHP Code:
PHP Code:
I'm pretty sure that for Health event, passed value is real health value and not mask, should be the same for AmmoX. |
Re: Show Clip-Ammo by HUDmsg
Quote:
Before fix (cap at 254): https://dl.dropbox.com/u/54275426/beforefix.png After Fix using your given code: https://dl.dropbox.com/u/54275426/afterfix.png Thanks by the way for that code. But no problem on Heath event, it still give the true value. |
Re: Show Clip-Ammo by HUDmsg
yokomo, can you show me your code?
|
| All times are GMT -4. The time now is 06:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.