Update a textdraw each X time
#2

Use a timer that's set to run every 10 seconds:
pawn Код:
public OnGameModeInit()
{
    // Start a timer which runs every 10 seconds
    SetTimer("Timer10000", 10000, true);

    return 1;
}

// This timer runs every 10 seconds
forward Timer10000();
public Timer10000()
{
    // Loop through all players and only run the timer for each player who's logged in
    for (new playerid; playerid < MAX_PLAYERS; playerid++)
        if (IsPlayerConnected(playerid) == 1)
            PlayerTextDrawSetString(playerid, YourTextDraw, YourMessage);
}
Reply


Messages In This Thread
Update a textdraw each X time - by anou1 - 12.02.2014, 09:35
Re: Update a textdraw each X time - by PowerPC603 - 12.02.2014, 11:03
Re: Update a textdraw each X time - by Face9000 - 12.02.2014, 14:03
Re: Update a textdraw each X time - by PowerPC603 - 12.02.2014, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)