Raised This Month: $ Target: $400
 0% 

Damage stacking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wasc
Junior Member
Join Date: Apr 2011
Old 04-12-2011 , 13:43   Re: Damage stacking
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <fakemeta>

new g_MsgSync
new g_MsgSync2
new g_MsgSync3
new g_totaldamage[33]

public 
plugin_init() {
    
register_plugin("Damage Dealt""1.0""Wasc")
    
register_event("Damage","event_damage","b","2!0","3=0","4!0")

    
g_MsgSync CreateHudSyncObj()
    
g_MsgSync2 CreateHudSyncObj()
    
g_MsgSync3 CreateHudSyncObj()
    }
    while(
zp_get_user_zombie(id))
    {
        
g_totaldamage[killer] = g_totaldamage[killer] + floatround(damage)
        
set_hudmessage(2005050, -1.00.8220.130.00.020.02, -1)
        
ShowSyncHudMsg(killer,g_MsgSync3"Damage Meter: %i",g_totaldamage[killer])
    }

Can someone help, please.

Why when someone starts to dealing damage server shutting down. It started when I added cycle "While"

Last edited by Wasc; 05-05-2011 at 16:16.
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