Sorry, I Forgot to show the code.
It's bugging then i show this textdraw. If I remove clock filterscript it's bugging with Esfg.Lt (In the left bottom corner) TD
Code:
new Text: PlayerInfoText[MAX_PLAYERS_IN_SERVER];
ShowInfoText(playerid, "~r~Testing!", 3000, true);
stock Text: CreateInfoText(text[])
{
new Text: InfoTextdraw;
InfoTextdraw = TextDrawCreate(13, 150, text);
TextDrawUseBox(InfoTextdraw, 1);
TextDrawBoxColor(InfoTextdraw, 0x00000099);
TextDrawTextSize(InfoTextdraw, 159, 81);
TextDrawAlignment(InfoTextdraw, 0);
TextDrawBackgroundColor(InfoTextdraw, 0x000000ff);
TextDrawFont(InfoTextdraw, 1);
TextDrawLetterSize(InfoTextdraw, 0.33, 1);
TextDrawColor(InfoTextdraw, 0xffffffff);
TextDrawSetOutline(InfoTextdraw, 1);
TextDrawSetProportional(InfoTextdraw, 1);
TextDrawSetShadow(InfoTextdraw, 1);
return(InfoTextdraw);
}
stock ShowInfoText(playerid, Text[], Time, bool: WithSound)
{
if(PlayerInfoText[playerid] == INVALID_TEXT_DRAWS)
{
PlayerInfoText[playerid] = CreateInfoText(Text);
TextDrawShowForPlayer(playerid, PlayerInfoText[playerid]);
SetTimerEx("HideInfoText", Time, false, "i", playerid);
}
else
{
HideInfoText(playerid);
PlayerInfoText[playerid] = CreateInfoText(Text);
TextDrawShowForPlayer(playerid, PlayerInfoText[playerid]);
SetTimerEx("HideInfoText", Time, false, "i", playerid);
}
if(WithSound) { PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); }
return 1;
}
public HideInfoText(playerid)
{
if(PlayerInfoText[playerid] != INVALID_TEXT_DRAWS)
{
TextDrawHideForPlayer(playerid, PlayerInfoText[playerid]);
TextDrawDestroy(PlayerInfoText[playerid]);
PlayerInfoText[playerid] = INVALID_TEXT_DRAWS;
}
return 1;
}