SA-MP Forums Archive
linking 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: linking gamemodes? (/showthread.php?tid=215704)



linking gamemodes? - davocollo - 23.01.2011

how do you link a gamemode to another so when 1 finishes, the other starts?


Re: linking gamemodes? - Kitten - 23.01.2011

pawn Код:
// on top

forward NewMode ( ) ;
 
//add this ongamemodeint or w/e u spell it lol

SetTimer ( " NewMode " , time in milisecond u want to change , false ) ;
// Somewhere in your script example in the bottom
public NewMode ( )
{
    SendRconCommand ( " changemode name of the gamemode " ) ;
    return 1;
}



Re: linking gamemodes? - alpha500delta - 24.01.2011

Or you can put behind the gamemode line several gamemodes and it'll restart when the 1st gamemode is over