Raised This Month: $51 Target: $400
 12% 

black screen fade


Post New Thread Reply   
 
Thread Tools Display Modes
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 06-19-2008 , 16:19   Re: black screen fade
Reply With Quote #11

im using this and it works great
Code:
public wait(pid[])
{
      new id = pid[0]
      if(is_user_alive(id))
      {     
            new tmp[1]
            tmp[0] = id

            set_task(2.0, "showrules",id,tmp,1)
      }
      else
      {
            new tmp[1]
            tmp[0] = id

            set_task(get_cvar_float("rules_join_timeout"), "printrules", id, tmp, 1)  
      }
}
i would like to thank people for trying to help me out especially x-olent for the screenfade code
whosyourdaddy is offline
Old 06-19-2008, 20:07
whosyourdaddy
This message has been deleted by whosyourdaddy.
Old 06-20-2008, 22:36
whosyourdaddy
This message has been deleted by whosyourdaddy.
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 06-21-2008 , 22:55   Re: black screen fade
Reply With Quote #12

im having a problem, im trying to make this happen while people are dead so i can get a hud message to appear on top of it so players cant go i didnt see it, but when players change there the person they were spec'ing to some1 else it gets rid of it, i tried looping it but it just makes the screen flash black every other second, like it will go black disappear wait 2 seconds go black again disappear wait 2 seconds etc... this is what i tried using

Code:
public loop(id)
{
    new Float:i;

    for(i = 0.1; i < 29; i++)
    {
      my_func(id)
    }
}
public my_func(id)
{   
    /* you should convert this to pcvar */
    if(!is_user_alive(id))
    {
    new Float:lengthh = 3.0;
    make_ScreenFade(id, lengthh, 0, 0, 0, 255);    
    }
}
whosyourdaddy 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:36.


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