AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blackout (https://forums.alliedmods.net/showthread.php?t=24578)

Obbin 02-26-2006 13:38

Blackout
 
Hot to make a person's screen black and stay like that until i send another screenfade message.

Thx.

Twilight Suzuka 02-26-2006 14:03

You have to send the fade message over and over.

Kraugh 02-26-2006 15:18

try this:

Code:
#define FFADE_IN    0x0000        // Just here so we don't pass 0 into the function #define FFADE_OUT    0x0001        // Fade out (not in) #define FFADE_MODULATE    0x0002        // Modulate (don't blend) #define FFADE_STAYOUT    0x0004        // ignores the duration, stays faded out until new ScreenFade message received message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},id); write_short(~0); // duration write_short(~0); // hold time write_short(FFADE_STAYOUT); // flags write_byte(0); // red write_byte(0); // green write_byte(0); // blue write_byte(255); // alpha message_end();


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

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