Another problem when Simon dies he won't disappear from HUD how to fix that
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#define PLUGIN "Simon"
#define VERSION "1.0"
#define AUTHOR "Frego"
new bool:Simon
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /simon","simoncmd")
register_logevent("ResetSimon",2,"1=Round_End")
register_event("TextMsg", "ResetSimon", "a", "2&#Game_C", "2&#Game_w")
}
public simoncmd(id)
{
if(get_user_team(id) != 2)
ColorChat(id,GREEN,"You are T ;).")
if(!Simon)
{
new name[32]
get_user_name(id,name,31)
set_hudmessage( 255, 204, 0, 1.0, 0.05, 0, 0.1, 900.0, 0.1, 0.1, 4 );
show_hudmessage( 0, "%s - is Simon.", name );
Simon = true
}
else
ColorChat(id,GREEN,"There is already simon!")
return PLUGIN_HANDLED_MAIN
}
public ResetSimon()
Simon = false