AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   bullet damage plugin (https://forums.alliedmods.net/showthread.php?t=72853)

sh3eth 06-17-2008 06:26

bullet damage plugin
 
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

DA 06-17-2008 09:25

Re: bullet damage plugin
 
Give us a link to this plugin please. (mainpost)

ZombieMan 06-17-2008 10:37

Re: bullet damage plugin
 
Check this ... http://forums.alliedmods.net/showthread.php?t=3119&highlight=bullet_damage :roll:

sh3eth 06-17-2008 13:50

Re: bullet damage plugin
 
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

ZombieMan 06-17-2008 16:46

Re: bullet damage plugin
 
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)
    }


:roll: NOT TESTED

sh3eth 06-18-2008 15:05

Re: bullet damage plugin
 
yo zombieman... excuse me but i cudnt compile the code lol!! can i have amx or amxx file plz!

sh3eth 06-18-2008 17:24

Re: bullet damage plugin
 
it works..thx.. but not the same hud msg :P!! amma try to combine them and come up with sg lol

sh3eth 06-18-2008 17:48

Re: bullet damage plugin
 
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)
    }



Streamy 06-19-2008 04:59

Re: bullet damage plugin
 
try my plugin : http://forums.alliedmods.net/showthread.php?t=72279

sh3eth 06-20-2008 17:09

Re: bullet damage plugin
 
i tried it ... when i threw a grenade on myself nothing was reported :)!! even tho it was on..!


All times are GMT -4. The time now is 01:45.

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