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);
}
}