Use pcvar?
PHP Code:
#include <amxmodx>
#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"
new gCvar_Enabled;
new gCvar_deathmessage;
public plugin_init() {
register_plugin( PLUGIN, VERSION, AUTHOR );
gCvar_Enabled = register_cvar( "stk_on", "1" );
new gCvar_deathmessage = register_cvar ("Deathmsg_msg", "KILL")
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, "get_pcvar_num(gCvar_deathmessage)" );
}
}
}
I hope it work
__________________
I dislike this.
"A sneeze never comes alone!" <-- Important to remember.