#include <amxmodx>

#define PLUGIN "0 HP Bug"
#define VERSION "1.0"
#define AUTHOR "Play"

new gmsgHealth

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("Health", "Health", "be", "1!255")
	gmsgHealth = get_user_msgid("Health") 
}

public Health(id) 
{ 
	if(read_data(1) > 255)
	{
		message_begin( MSG_ONE, gmsgHealth, {0,0,0}, id ) 
		write_byte( 255 ) 
		message_end() 
	} 
}