|
Senior Member
Join Date: Aug 2007
Location: In the middle of the desert
|
05-03-2009
, 13:32
Re: Show The Kill
|
#10
|
Quote:
Originally Posted by TitANious
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
|
already did thanks to xPaw. Why would you have two with such a simple plugin? all i need is a simple on/off cvar.
__________________
[B]
|
|
|
|