Monthly Target: $400 Donations: $47
 11% 

bullet damage plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-17-2008 , 06:26   bullet damage plugin
Reply With Quote #1

Hi all,

I installed this plugin and i get the report in blue, but what i also want is to have red hud msg with the damage from attackers.

Thanks
sh3eth is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 06-17-2008 , 09:25   Re: bullet damage plugin
Reply With Quote #2

Give us a link to this plugin please. (mainpost)
__________________
DA is offline
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 06-17-2008 , 10:37   Re: bullet damage plugin
Reply With Quote #3

Check this ... http://forums.alliedmods.net/showthread.php?t=3119&highlight=bullet_damage
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-17-2008 , 13:50   Re: bullet damage plugin
Reply With Quote #4

this plugin is the one im talkin abt ... it shows blue hud msg when u make damage, but theres not red hud msg when u get hurt :S
sh3eth is offline
ZombieMan
Senior Member
Join Date: May 2008
Location: Italy.
Old 06-17-2008 , 16:46   Re: bullet damage plugin
Reply With Quote #5

Try this :
PHP Code:
// Comment out this define to show only damage done, otherwise this will show damage recieved also.
#define DAMAGE_RECIEVED

#include <amxmodx>

new g_MsgSync

#if defined DAMAGE_RECIEVED
    
new g_MsgSync2
#endif

public plugin_init()
{
    
register_plugin("Damage Done""0.4""ZombieMan")

    
register_event("Damage""on_damage""b""2!0""3=0""4!0")

    
g_MsgSync CreateHudSyncObj()

#if defined DAMAGE_RECIEVED
    
g_MsgSync2 CreateHudSyncObj()
#endif
}

public 
on_damage(id)
{
    new 
attacker get_user_attacker(id)

#if defined DAMAGE_RECIEVED
    // id should be connected if this message is sent, but lets check anyway
    
if ( is_user_connected(id) && is_user_connected(attacker) )
    {
        new 
damage read_data(2)

        
set_hudmessage(255   0   00.510.7220.14.00.020.02, -1)
        
ShowSyncHudMsg(idg_MsgSync2"%i^n"damage)
#else
    
if ( is_user_connected(attacker) )
    {
        new 
damage read_data(2)
#endif
        
set_hudmessage(01002000.400.7220.14.00.020.02, -1)
        
ShowSyncHudMsg(attackerg_MsgSync"%i^n"damage)
    }

NOT TESTED
__________________
BACK TO BUSINESS

If you want to feel better give me + karma but ... don't forget to leave your name

DO NOT PM me for support
ZombieMan is offline
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-18-2008 , 15:05   Re: bullet damage plugin
Reply With Quote #6

yo zombieman... excuse me but i cudnt compile the code lol!! can i have amx or amxx file plz!
sh3eth is offline
Old 06-18-2008, 16:04
ZombieMan
This message has been deleted by ZombieMan. Reason: nvm ...
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-18-2008 , 17:24   Re: bullet damage plugin
Reply With Quote #7

it works..thx.. but not the same hud msg !! amma try to combine them and come up with sg lol
sh3eth is offline
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-18-2008 , 17:48   Re: bullet damage plugin
Reply With Quote #8

I copied the msg thingy to ur code, but aint compiling due to errors :S!!!

PHP Code:
// Comment out this define to show only damage done, otherwise this will show damage recieved also.
#define DAMAGE_RECIEVED

#include <amxmodx>

new g_MsgSync

#if defined DAMAGE_RECIEVED
    
new g_MsgSync2
#endif

public plugin_init()
{
    
register_plugin("Damage Done""0.4""__OmaR__")

    
register_event("Damage""on_damage""b""2!0""3=0""4!0")

    
g_MsgSync CreateHudSyncObj()

#if defined DAMAGE_RECIEVED
    
g_MsgSync2 CreateHudSyncObj()
#endif
}

public 
on_damage(id)
{
    new 
attacker get_user_attacker(id)

#if defined DAMAGE_RECIEVED
    // id should be connected if this message is sent, but lets check anyway
    
if ( is_user_connected(id) && is_user_connected(attacker) )
    {
        new 
damage read_data(2)

        
set_hudmessage(0100200, -1.00.5520.14.00.020.027)
        
show_hudmessage(aIndex,"%i"damage)
#else
    
if ( is_user_connected(attacker) )
    {
        new 
damage read_data(2)
#endif
        
set_hudmessage(0120200, -1.00.5520.14.00.020.027)
        
show_hudmessage(aIndex,"%i"damage)
    }

sh3eth is offline
Streamy
Member
Join Date: Jun 2008
Old 06-19-2008 , 04:59   Re: bullet damage plugin
Reply With Quote #9

try my plugin : http://forums.alliedmods.net/showthread.php?t=72279
__________________
[IMG]http://img392.**************/img392/2875/final02cn8.jpg[/IMG]
Streamy is offline
sh3eth
Junior Member
Join Date: Jun 2008
Old 06-20-2008 , 17:09   Re: bullet damage plugin
Reply With Quote #10

i tried it ... when i threw a grenade on myself nothing was reported !! even tho it was on..!
sh3eth is offline
Reply


Thread Tools
Display Modes

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 10:16.


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