with
Code:
#define FFADE_STAYOUT 0x0004 // ignores the duration, stays faded out until new ScreenFade message received
Does it work across plugins? Such as if in one plugin, a user types /fadered
Code:
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);
write_short(~0)
write_short(~0)
write_short(FFADE_STAYOUT); // flags )
write_byte(255) //red
write_byte(0) //green
write_byte(0) //blue
write_byte(100) //alpha (255 = whole screen is colorred, 0 = no color.)
message_end()
And in another plugin, /fadeoff
Code:
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id);
write_short(~0)
write_short(~0)
write_short(FFADE_STAYOUT); // flags )
write_byte(0) //red
write_byte(0) //green
write_byte(0) //blue
write_byte(0) //alpha (255 = whole screen is colorred, 0 = no color.)
message_end()
Would that stay red until a user types /fadeoff?
__________________