Raised This Month: $ Target: $400
 0% 

register_event damage/dead


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 08-01-2013 , 13:18   Re: register_event damage/dead
Reply With Quote #4

Use CSX Include from cstrike, its more easy ;)

PHP Code:
#include <amxmodx>
#include <csx>


public plugin_init() register_plugin("CSX Events",AMXX_VERSION_STR,"SmileY");

public 
client_damage(iAttacker,iVictim,iDamage,iWeaponID,iPlace,iTA)
{
    if(
iAttacker != iVictimclient_print(iAttacker,print_center,"%d",iDamage);
}

public 
client_death(iKiller,iVictim,iWeaponID,iPlace,iTK)
{
    if((
iKiller != iVictim) && (iPlace == HIT_HEAD))
    {
        new 
szName[2][32];
        
get_user_name(iKiller,szName[0],charsmax(szName[]));
        
get_user_name(iVictim,szName[1],charsmax(szName[]));
        
        
client_print(0,print_center,"%s Killed %d with a Amazing HeadShot",szName[0],szName[1]);
    }

But if you use another mod than cstrike, use ham_* or ClientDamage event
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 15:48.


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