12.02.2014, 11:03
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);
}