Change Gamemodes - 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: Change Gamemodes (
/showthread.php?tid=125637)
Change Gamemodes -
Oi! - 04.02.2010
I have 5 different game modes. I want them to change every 3 hours. How do I make this possible?
Re: Change Gamemodes -
mansonh - 04.02.2010
You can set a timer for SendRconCommand("changemode [mode]");
replace [mode] with the name of the next game mode
pawn Код:
public OnGameModeInit()
{
SetTimerEx("SendRconCommand",10800000,0,"s","changemode [mode]");
}
I couldn't find any way to just change to the next game mode in the list, but there might be a way.