Raised This Month: $ Target: $400
 0% 

DeathMsg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hellmonja
Senior Member
Join Date: Oct 2015
Old 03-06-2017 , 10:50   Re: DeathMsg
Reply With Quote #6

PHP Code:
register_message(get_user_msgid("DeathMsg"), "Message_DeathMsg");
...
public 
Message_DeathMsg(msg_idmsg_destid)
{
    static 
attackervictimweapon[24];
    
    
attacker read_data(1);
    
victim read_data(2);
    
read_data(4weapon23);

    if(!
is_user_connected(attacker))
        return 
PLUGIN_CONTINUE
        
    
if(equali(weapon"aug") && g_user_has_[attacker]))
        
set_msg_arg_string(4"katana");

    return 
PLUGIN_CONTINUE

I just based this on your sample screenshot, thus the "aug" is replaced by the "katana". You'll also need your own custom sprite and edit the hud.txt in cstrike/sprites folder for this to work...
__________________
hellmonja 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 21:03.


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