Raised This Month: $ Target: $400
 0% 

help me edit a script!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mikaelnatan13
Member
Join Date: Apr 2020
Old 06-04-2020 , 19:08   help me edit a script!!
Reply With Quote #1

I was wondering if you could help me with a script

wanted to show adding up all the hits to know how much total damage I gave

script

PHP Code:
#include <amxmodx>

#define PLUGIN "CS Revo: Danos causados"
#define VERSION "1.0"
#define AUTHOR "Wilian M."

new xMsgSync[2]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("Damage""xOnDamage""b""2!0""3=0""4!0")    
    
    
xMsgSync[0] = CreateHudSyncObj()    
    
xMsgSync[1] = CreateHudSyncObj()
}

public 
xOnDamage(id)
{
    static 
xAttackerxDamage
    
    xAttacker 
get_user_attacker(id)
    
xDamage read_data(2)
    
    
set_hudmessage(255000.450.5000.13.00.10.1)
    
ShowSyncHudMsg(idxMsgSync[1], "%i"xDamage)    
    
    if(
is_user_connected(xAttacker))
    {
        
set_hudmessage(0100200, -1.00.5500.13.00.020.02)
        
ShowSyncHudMsg(xAttackerxMsgSync[0], "%i"xDamage)        
    }


Last edited by Bugsy; 06-04-2020 at 19:55.
mikaelnatan13 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 16:57.


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