SA-MP Forums Archive
Different maps/modes in one gamemode? - 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)
+--- Thread: Different maps/modes in one gamemode? (/showthread.php?tid=324441)



Different maps/modes in one gamemode? - Nameless303 - 09.03.2012

Hi guys,

I'm working on a new gamemode where I'd like to have different maps each round and each x rounds a random minigame. The admin system, maps, minigames and main gamemode will all be in one gamemode file. The next map/minigame can be forced with a command and the ID will be stored in mySQL. I was thinking about putting a script in the onGamemodeInit callback (or maybe in the main() thingy?) loading the next map ID from mysql and then loading the correct objects/spawnlocations for that map.

Is this a good idea or will this cause a huge amount of lag?
Also, where do I put the script? Under ongamemodeinit or under main?

Thanks


Re: Different maps/modes in one gamemode? - Vince - 09.03.2012

Consider using state automata. http://forum.sa-mp.com/showthread.ph...state+automata


Re: Different maps/modes in one gamemode? - Ballu Miaa - 09.03.2012

I could explain all that to you cause im making my own game mode which has different maps but everything is there in one script so that players wont disconnect and connect again n again!

You use Teamviewer? (My FB: www.********.com/MCeeCharC)