Thread: Show The Kill
View Single Post
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-03-2009 , 04:38   Re: Show The Kill
Reply With Quote #3

Use pcvar
You need branches after if( Killer )

PHP Code:
#include <amxmodx>

#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"

new gCvar_Enabled;

public 
plugin_init() {
    
register_pluginPLUGINVERSIONAUTHOR );
    
gCvar_Enabled register_cvar"stk_on""1" );
    
register_event"DeathMsg""find_it""a" );
}

public 
find_itid ) {
    if( 
get_pcvar_numgCvar_Enabled ) ) {
        if( 
read_data) ) {
            
set_hudmessage255000.940.8301.03.00.010.01, -);
            
show_hudmessageid"KILL" );
        }
    }

__________________
xPaw is offline