Box not hide automatically
#1

Box not hide automatically

Code:
stock ShadInfoBoxForPlayer(playerid, text[])
{
    TextDrawHideForPlayer(playerid, ShadInfoBox);
	new info[700];
    ShadInfoBoxShowing[playerid] = 1;
    format(info, sizeof(info), "%s~n~", text);
    TextDrawSetString(ShadInfoBox, info);
	TextDrawShowForPlayer(playerid, ShadInfoBox);
	printf("(%d) Has Just the Shown",playerid);
	InfoTimer = SetTimer("InfoBoxTimer", 5000, false);
}

forward InfoBoxTimer(playerid);
public InfoBoxTimer(playerid)
{
	if(ShadInfoBoxShowing[playerid] == 1)
	{
		TextDrawHideForPlayer(playerid, ShadInfoBox);
		TextDrawDestroy(ShadInfoBox);
		KillTimer(InfoTimer);
		printf("(%d) Has Just Deleted the Shadow Info Box From his Screen",playerid);
		return 1;
	}
    return 1;
}
Reply


Messages In This Thread
Box not hide automatically - by MichiCZ - 08.04.2019, 11:05
Re: Box not hide automatically - by Vizi10 - 08.04.2019, 11:27
Re: Box not hide automatically - by MichiCZ - 08.04.2019, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)