[VIP] Show Damage - weird result
Hello,
I'm trying to do custom VIP plugin, everything works fine so far except showing damage, I've tried the plugin that's everyone using and it's working fine, so there's something wrong with my code; when I damage someone it will show 0 as damage, HOWEVER I've tried to show it in chat (client_print) and got result of 2 client prints, first one was normal damage and second was 0, therefore my hud message is always changed to that 0 after normal damage so I've got output like this when I shot someone: Quote:
what's weird is that with HEgrenade it's working normally Grenade: http://i.imgur.com/NfKem.png Gun: http://i.imgur.com/h9wyE.png source: (not whole ofc, only damage) Code:
/* Plugin generated by AMXX-Studio */ |
Re: [VIP] Show Damage - weird result
new t[32]; formatex(t, charsmax(t), "%d", damage)
ShowSyncHudMsg(attacker, g_MsgSync, t) try that. |
Re: [VIP] Show Damage - weird result
same result, any other ideas? :D
|
Re: [VIP] Show Damage - weird result
PHP Code:
|
Re: [VIP] Show Damage - weird result
Quote:
edit: so far I noticed it's that it's not working with damage over 100 and when I kill someone with grenade :X |
Re: [VIP] Show Damage - weird result
PHP Code:
This might be weird with grenade kills, i'm not sure. You're going to want to filter out id == 0 and id == id as to not register suicide or fall-death |
Re: [VIP] Show Damage - weird result
Quote:
|
Re: [VIP] Show Damage - weird result
I would use Ham_TakeDamage. It's more controllable.
|
Re: [VIP] Show Damage - weird result
super edit: holy fck, I had "e" flag in register_event -.-'
|
| All times are GMT -4. The time now is 15:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.