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

Why nobody understand how to use tabs.
pawn Code:
public OnGameModeInit() //ongamemodeinit callback
{
    SetTimer("HideTextdraw", 7000, false); //false, it won't keep repeating
    return 1;
}

forward HideTextdraw()
public HideTextdraw()
{
    HideTextDrawForAll(Textdraw7); //hide the textdraw
    SetTimer("ShowTextdraw", 250, false); //setting a timer, false... won't repeat
    return 1;
}

forward ShowTextdraw()
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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)