Raised This Month: $ Target: $400
 0% 

Kill MSG [HUD] [HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 11-08-2009 , 17:21   Kill MSG [HUD] [HELP]
Reply With Quote #1

How can you make it so when you kill somebody, a hud msg can come up in the middle of your screen for 1 second

+Karma for help
malec321 is offline
master4life
Senior Member
Join Date: Mar 2006
Location: Germany
Old 11-08-2009 , 17:48   Re: Kill MSG [HUD] [HELP]
Reply With Quote #2

Test this.

PHP Code:
#include < amxmodx >

new g_iHudSync

public 
plugin_init( ) {
    
register_plugin"Death Name Shower""0.1""master4life" );
    
    
register_event"DeathMsg""EventDeathMsg""a" );
    
    
g_iHudSync CreateHudSyncObj( );
}

public 
EventDeathMsg( ) {
    new 
iKiller read_data);
    new 
iVictim read_data);
    new 
szName32 ]; get_user_nameiVictimszName31 );
    
    if( 
is_user_connectediKiller ) ) {
        
set_hudmessage255000.450.5020.14.00.10.1, -);
        
ShowSyncHudMsgiKillerg_iHudSync"%s"szName );
    }

__________________


[img]http://img714.**************/img714/8612/33726.png[/img]
master4life is offline
Send a message via ICQ to master4life Send a message via MSN to master4life Send a message via Skype™ to master4life
Reply



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 17:42.


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