Raised This Month: $ Target: $400
 0% 

Info Message for Victim


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
daNzEt
Senior Member
Join Date: Sep 2010
Location: Romania
Old 12-26-2013 , 11:45   Re: Info Message for Victim
Reply With Quote #3

Ok, i did, but look what's the message now:

Player x killed you with weapon 22 and he has "x" hp
Player x killed you with weapon 19 and he has "x" hp

Why not showing me weapon m4a1/ak47 or something like that and it's showing me (19,22)

PHP Code:
public event_DeathMsg()
{
    new 
iKiller read_data(1)
    new 
iVictim read_data(2)
    
    if(
iKiller == iVictim)
    {
        return 
PLUGIN_HANDLED;
    }
    
    else
    {    
        new 
name[32]
        
get_user_name(iKillername31)
    
        new 
clipammoweapon get_user_weapon(iKiller,clip,ammo)
    
        new 
health get_user_health(iKiller);
    
        
chat_color(iVictim"!nJucatorul !t%s !nte-a ucis cu !g%d !nsi a ramas cu !g%d !nhp"nameweaponhealth)
    }
    
    return 
PLUGIN_HANDLED;


Last edited by daNzEt; 12-26-2013 at 11:59.
daNzEt is offline
Send a message via Yahoo to daNzEt Send a message via Skype™ to daNzEt
 



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:24.


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