Setting a timer for something - How can I do it?
#5

You are going to have to make two publics and two timers, because you are going to have to make it show up again which you can do this by...

pawn Code:
forward HideTextdraw() //these forward the later used custom callbacks
forward ShowTextdraw() // ^^

public OnGameModeInit() //ongamemodeinit callback
{
SetTimer("HideTextdraw", 7000, false); //false, it won't keep repeating
return 1;
}

public HideTextdraw()
{
HideTextDrawForAll(Textdraw7); //hide the textdraw
SetTimer("ShowTextdraw", 250, false); //setting a timer, false... won't repeat
return 1;
}
public ShowTextDraw()
{
TextDrawShowForPlayer); //shows the textdraw
SetTimer("HideTextDraw", 7000, false); and sets the timer for it to hide, then it will reset the timer.
return 1;
}
That should do it
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)