SA-MP Forums Archive
help!? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help!? (/showthread.php?tid=125071)



help!? - -Rebel Son- - 02.02.2010

Ok, ive been trying and trying.. but i cant get figure out this.


i want a code that has a timer, when the timer runs out, it announces text, and restarts the server, anyone got a clue how to make this?


Re: help!? - [HiC]TheKiller - 02.02.2010

pawn Код:
public OnGameModeInit()
{
  SetTimer("TimeUP", /*Time In Miliseconds*/, false);
  return 1;
}

forward TimeUP();

public TimeUP()
{
  GameTextForAll("Message", 4000, 3);
  SendRconCommand("gmx");
  return 1;
}



Re: help!? - -Rebel Son- - 02.02.2010

thanks it works! got an idea on how to show the gametext for the timer? like a counting down timer?