Raised This Month: $ Target: $400
 0% 

Trying to get a user's screen to go black for 2 seconds...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-14-2006 , 00:56   Trying to get a user's screen to go black for 2 seconds...
Reply With Quote #1

I'm useing screenfade....

But how do I get the duration to last for 2 seconds? I'm just not sure what "type" i.e. ms or s the message accepts...

I'm doing:

Create_ScreenFade( iAttacker, 2, (1<<10), (1<<12), 0, 0, 0, 255 );


Code:
stock Create_ScreenFade(id, duration, holdtime, fadetype, red, green, blue, alpha){     message_begin( MSG_ONE,gmsgScreenFade,{0,0,0},id )              write_short( duration )         // fade lasts this long duration     write_short( holdtime )         // fade lasts this long hold time     write_short( fadetype )         // fade type (in / out)     write_byte( red )               // fade red     write_byte( green )             // fade green     write_byte( blue )              // fade blue     write_byte( alpha )             // fade alpha     message_end() }

Thanks,
Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
 



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 08:06.


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