Raised This Month: $ Target: $400
 0% 

screen fade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Intouchable
Senior Member
Join Date: Mar 2012
Old 04-15-2013 , 12:53   Re: screen fade
Reply With Quote #3

PHP Code:
public hPlayerSpawn(id)
{
   new 
iDuration = (get_pcvar_num(cScreenTime) + get_pcvar_num(cFreezeTime)) - iScreenTimeiHoldTime
  
    
if(iScreenTime 0iHoldTime 0
    
else iHoldTime get_pcvar_num(cFreezeTime) + (get_pcvar_num(cScreenTime) / 2)
    
    
message_begin(MSG_ONEmsgScreenFade_id)
    
write_short(SPECIAL_UNIT iDuration// duration
    
write_short(SPECIAL_UNIT iHoldTime// hold time
    
write_short(FFADE_IN// flags
    
write_byte(0// color r
    
write_byte(0// color g
    
write_byte(0// color b
    
write_byte(255// alpha
    
message_end()


Last edited by Intouchable; 04-15-2013 at 12:53.
Intouchable 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 10:52.


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