Raised This Month: $ Target: $400
 0% 

Damage stacking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Wasc
Junior Member
Join Date: Apr 2011
Old 04-11-2011 , 02:50   Damage stacking
Reply With Quote #1

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
Wasc is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode