Hello!
I made a script to FadeToBlack people that uses TS/skype/etc...
But it has a problem, while your dead and with "fade" on, if you click mouse1(+attack) you'll be able to see like a screenshot from who youre specting.
Code:
public fade(id)
{
if(!is_user_alive(id))
{
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
write_short(~0); // duration, ~0 is max
write_short(~0); // hold time, ~0 is max
write_short(0x0004); // flags, no idea wtf 1<<12 is
write_byte(0); // red, 0 for black
write_byte(0); // green, 0 for black
write_byte(0); // blue, 0 for black
write_byte(255); // alpha, 255 for total black
message_end();
set_task(1.0,"fade",id); // reset it, screenfade only last for so long
}
}
Any idea?
Thank you!