|
/*
--------------------------------------------------------------------------------
Web URL: http://www.roshis.org/
E-M@IL: mailto: [email protected]
--------------------------------------------------------------------------------
*/
#if defined _screenfadefaded_included
#endinput
#endif
#define _screenfadefaded_included
stock set_user_screemfade(id, fadetime, red, green, blue, alpha)
{
new Param[6];
Param[0] = id, Param[1] = floatround(fadetime / 2.0);
Param[2] = red, Param[3] = green, Param[4] = blue, Param[5] = alpha;
SetScreenFade(id, Param[1], red, green, blue, alpha);
set_task(float(Param[1]), "MakerFadeOut", _, Param, 6);
}
public MakerFadeOut(Param[])
SetScreenFade(Param[0], Param[1], Param[2], Param[3], Param[4], Param[5], 0);
stock SetScreenFade(id, iFadetime, red, green, blue, alpha, type = 1)
{
if(id && !is_user_connected(id)) return;
new MSG_DEST;
MSG_DEST = id ? MSG_ONE : MSG_ALL;
message_begin(MSG_DEST, get_user_msgid("ScreenFade"), _, id);
write_short((1 << 12) * iFadetime);
write_short((1 << 12) * iFadetime);
write_short(type ? 0x0001|0x0004 : 0x0000);
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(alpha);
message_end();
}
|
|