Raised This Month: $ Target: $400
 0% 

Problem with Fade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GaRfWeN
Junior Member
Join Date: Apr 2009
Old 01-02-2010 , 13:31   Problem with Fade
Reply With Quote #1

Hello!

I made a script to FadeToBlack people that uses TS/skype/etc...
But it has a problem, while your dead and with "fade" on, if you click mouse1(+attack) you'll be able to see like a screenshot from who youre specting.

Code:
public fade(id)
{
    if(!is_user_alive(id))
    {
        message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id)
        write_short(~0); // duration, ~0 is max
        write_short(~0); // hold time, ~0 is max
        write_short(0x0004); // flags, no idea wtf 1<<12 is
        write_byte(0); // red, 0 for black
        write_byte(0); // green, 0 for black
        write_byte(0); // blue, 0 for black
        write_byte(255); // alpha, 255 for total black
        message_end();
        set_task(1.0,"fade",id); // reset it, screenfade only last for so long
    }
}
Any idea?
Thank you!
GaRfWeN 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 04:06.


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