17.08.2012, 19:44
Thanks..
I changed it but still, nothing happens..
here is my callremotefunction:
and here, the function that is called, it comes out of the seifader include..
i use it like this, because when i used it in a filterscript, the textdraws from the gamemode won't show..
I just copy/pasted, added the values from the include to my gamemode, but just nothing appears..
I did try to make my own system, but it never went smoothly, thus, i thought of using this snippets from the seifader include
I changed it but still, nothing happens..
here is my callremotefunction:
pawn Code:
CallRemoteFunction("FadePlayerScreen","ixi",playerid,0x000000FF,20);
i use it like this, because when i used it in a filterscript, the textdraws from the gamemode won't show..
pawn Code:
stock FadePlayerScreen(playerid, color, speed)
{
colorfade[playerid] = color;
TextDrawBoxColor(screenfade[playerid], color);
TextDrawShowForPlayer(playerid, screenfade[playerid]);
SetTimerEx("ScreenFade", 100, 0, "ddd", playerid, color, speed);
}
//and, the function that is called by the timer:
forward ScreenFade(playerid, color, speed);
public ScreenFade(playerid, color, speed)
{
if (color <= (colorfade[playerid] - 255))
{
TextDrawHideForPlayer(playerid, screenfade[playerid]);
OnPlayerScreenFade(playerid, color, speed);
}
else
{
color -= speed;
if (color <= (colorfade[playerid] - 255)) color = (colorfade[playerid] - 255);
TextDrawBoxColor(screenfade[playerid], color);
TextDrawShowForPlayer(playerid, screenfade[playerid]);
SetTimerEx("ScreenFade", 100, 0, "ddd", playerid, color, speed);
}
}
I did try to make my own system, but it never went smoothly, thus, i thought of using this snippets from the seifader include