SA-MP Forums Archive
Set timer - 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: Set timer (/showthread.php?tid=138937)



Set timer - stanLeys - 03.04.2010

How can i set timer that will restart my gamemode every 10 minutes ??


Re: Set timer - Last_Stand_Guardian - 03.04.2010

pawn Код:
forward Restart();
pawn Код:
OnGameModeInit()
{
   SetTimer("Restart", 600000, 0);
   return 1;
}
pawn Код:
public Restart()
{
   SendRconMessage("gmx");
   return 1;
}



Re: Set timer - [MWR]Blood - 03.04.2010

Quote:
Originally Posted by Last_Stand_Guardian
pawn Код:
forward Restart();
pawn Код:
OnGameModeInit()
{
   SetTimer("Restart", 600000, 0);
   return 1;
}
pawn Код:
public Restart()
{
  SendRconMessage("gmx");
  return 1;
}
SendRconMessage?This code doesn't exist.Maybe you meant SendRconCommand?


Re: Set timer - Last_Stand_Guardian - 03.04.2010

Quote:
Originally Posted by MaykoX[PSYCHO
]
SendRconMessage ? lol...
Oh damn xD Yes SendRconCommand not Message xD I'm sorry =D