EDIT: everything solved but now i get an loose idention on the last return PLUGIN_CONTINUE, why?
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Test"
#define VERSION "Test"
#define AUTHOR "Test"
new g_nMsgScreenFade
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199")
g_nMsgScreenFade = get_user_msgid("ScreenFade")
}
public FlashedEvent( id )
{
if( is_user_admin( id ) && !is_user_alive( id ) ){
message_begin( MSG_ONE,g_nMsgScreenFade,{0,0,0},id )
write_short( read_data( 1 ) ) // Duration
write_short( read_data( 2 ) ) // Hold time
write_short( read_data( 3 ) ) // Fade type
write_byte (0) // Red
write_byte (0) // Green
write_byte (0) // Blue
write_byte ( read_data( 7 ) ) // Alpha
message_end()
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
Thank you.
__________________