AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Black screen on 60 seconds (https://forums.alliedmods.net/showthread.php?t=187808)

OnePL 06-18-2012 09:05

Black screen on 60 seconds
 
Can anyone make a black screen for CT on 60 seconds?

ConnorMcLeod 06-18-2012 11:25

Re: Black screen on 60 seconds
 
http://forums.alliedmods.net/showthread.php?t=87623

UTIL_ScreenFade(id, _, 1.0, 60.0, 255)

OnePL 06-18-2012 11:58

Re: Black screen on 60 seconds
 
Thanks :)

OnePL 06-19-2012 17:37

Re: Black screen on 60 seconds
 
I have a problem, black screen is removed after 20-30 seconds instead of after 60 seconds

Hyper Nova 06-19-2012 17:53

Re: Black screen on 60 seconds
 
Quote:

Originally Posted by OnePL (Post 1731961)
I have a problem, black screen is removed after 20-30 seconds instead of after 60 seconds

i think there are maximum time coded how long can screen fade stay.

there are way to fix this
you need to recall screen fade function so i give you example

PHP Code:

// write it in your function
call_blackscreenfadeid )

call_blackscreenfadeid )
{
    
// write here that screen fade funcion
    
set_task20.0 "call_blackscreenfade_a"id )
}

and 
this will fix this
public call_blackscreenfade_a(id)
{
    
// write here that screen fade funcion


its pretty easy

ConnorMcLeod 06-19-2012 18:52

Re: Black screen on 60 seconds
 
Max time is 15.999 sec, so better to put random time but with STAYOUT flag, and to set a task at 60.0 that removes the black screen.

So for more the 15.999 you can use :

Spoiler


All times are GMT -4. The time now is 06:08.

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