Make this:
PHP Code:
new gMsgScreenFade;
Then in plugin_cfg (i think you can do this in plugin_init too, but i'm not sure):
PHP Code:
gMsgScreenFade = get_user_msgid("ScreenFade");
And heres the flash effect:
PHP Code:
message_begin(MSG_ONE_UNRELIABLE, gMsgScreenFade, {0,0,0}, id); // Message Start
write_short(); // Duration
write_short(); // Hold Time
write_short(); // Fade in/out type
write_byte(); // Red
write_byte(); // Green
write_byte(); // Blue
write_byte(); // Alpha
message_end(); // Message End