Raised This Month: $ Target: $400
 0% 

killing anounce


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Caldeum
Senior Member
Join Date: Jul 2010
Location: United Kingdom
Old 09-11-2012 , 00:24   killing anounce
Reply With Quote #1

Anyone can help to fix thix code? if player kill 5 enemys in one round on hud will print message... after round end must count from begin.

PHP Code:
#include < amxmodx >

new kill_num32 ];
new 
g_HudMsg1;

public 
plugin_init( )
{
    
register_logevent"logevent_round_end"2"1=Round_End" );
    
register_event"DeathMsg""event_death""a""1>0" );
    
    
g_HudMsg1 CreateHudSyncObj( );
}

public 
client_connectid )
    
kill_numid ] = 0;

public 
client_disconnectid )
    
kill_numid ] = 0;

public 
logevent_round_endid )
    
kill_numid ] = 0;

public 
event_death( )
{
    static 
iKiller;
    
iKiller read_data);
    
kill_numiKiller ]++;
    
    new 
name32 ];
    
get_user_nameiKillername31 );
    
    if ( 
kill_numiKiller ] == )
    {
        
set_hudmessage5050500.070.1020.14.00.10.1, -);
        
ShowSyncHudMsg0g_HudMsg1"Wow! %s killed 5 enemys"name );
    }
    else if ( 
kill_numiKiller ] == 10 )
    {
        
set_hudmessage5050500.070.1020.14.00.10.1, -);
        
ShowSyncHudMsg0g_HudMsg1"Wow! %s killed 10 enemys"name );
        
kill_numiKiller ] = 0;
    }

__________________
Of all the things I lost, I miss my brain the most.
Caldeum 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 08:20.


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