Raised This Month: $ Target: $400
 0% 

Fade code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 07-02-2010 , 03:39   Re: Fade code
Reply With Quote #1

this is how i do my screen fade

PHP Code:
new g_msgScreenFade;

public 
plugin_init
{
     
//..........YOU THINGS THERE...........

      
g_msgScreenFade    get_user_msgid("ScreenFade");

}

// Sets screen to white, then fades out
ScreenFade(index)
{
    
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade, {000}, index);
    
write_short(floatround((1<<12) * 0.5));
    
write_short(floatround((1<<12) * 0.1));
    
write_short(1<<12);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
message_end();
}


// JUST USE ScreenFade(id); to make a screen fade 
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Reply



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 14:47.


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