Damage stacking
I need help to write plugin, which shows damage done.
When player hits a target, in bottom of his screen appears HUD-message with (all damage)+(damage of this hit) in 1 constant. I have constants: damage = read_data(2) dmdone = 0 (starting value) new killer = get_user_attacker(id) - index, which uses in HUD-msg I know that this is a cycle, but dont know how organizate it. without cycle I tried to write: dmdone = dmdone + damage But no effect (HUD-message prints value 0 without changes) P.S. Constant must changes with every hit P.P.S For Zombie Server |
Re: Damage stacking
PHP Code:
|
Re: Damage stacking
Constant doesn't change value with new hud.
Always displays 0. I think that that's must be in a cycle. But dont know how organizate it. I think that if I'll use this actions in condition it always refreshes to 0. Can you write cycle for me? |
Re: Damage stacking
PHP Code:
Why when someone starts to dealing damage server shutting down. It started when I added cycle "While" |
Re: Damage stacking
PHP Code:
#6 [PT-BR] Coloquei sem querer, obrigado por avisar. |
Re: Damage stacking
Use %d for integers, chief. %s is for strings.
|
Re: Damage stacking
fmcTheKing
Your plugin shows damage, which dealt by last bullet, but not calculating damage. |
Re: Damage stacking
Like this?
PHP Code:
|
Re: Damage stacking
Wasc
Sorry, I do not speak English very well, not just reading the topics, I see the codes. #palmface for me. =/ |
Re: Damage stacking
Bugsy
Ty, working. But last question: how can I refresh total damage when started new round. I tried code in public_init: PHP Code:
PHP Code:
No problem. I am not english too |
| All times are GMT -4. The time now is 20:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.