Code:
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenFade"), {0,0,0}, players[num]);
{
write_short(4096*10); // Duration
write_short(4); // Hold time 4096*2
write_short(4096); // Fade type
write_byte(0); // Red
write_byte(0); // Green
write_byte(0); // Blue
write_byte(255); // Alpha
}
message_end();
but idk if syntax is good