AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Kill MSG [HUD] [HELP] (https://forums.alliedmods.net/showthread.php?t=108731)

malec321 11-08-2009 17:21

Kill MSG [HUD] [HELP]
 
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

master4life 11-08-2009 17:48

Re: Kill MSG [HUD] [HELP]
 
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 );
    }




All times are GMT -4. The time now is 17:42.

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