Raised This Month: $ Target: $400
 0% 

Dim a user's screen


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Des12
Senior Member
Join Date: Jan 2005
Old 02-26-2006 , 16:17  
Reply With Quote #7

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?
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode