Different maps/modes in one gamemode?
#1

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
Reply
#2

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)