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_plugin( PLUGIN, VERSION, AUTHOR );
gCvar_Enabled = register_cvar( "stk_on", "1" );
register_event( "DeathMsg", "find_it", "a" );
}
public find_it( id ) {
if( get_pcvar_num( gCvar_Enabled ) ) {
if( read_data( 1 ) ) {
set_hudmessage( 255, 0, 0, 0.94, 0.83, 0, 1.0, 3.0, 0.01, 0.01, -1 );
show_hudmessage( id, "KILL" );
}
}
}
__________________