SA-MP Forums Archive
2 questions - 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: 2 questions (/showthread.php?tid=340368)



2 questions - BleverCastard - 07.05.2012

1) Is there a samp limit to how much objects you can have in a gamemode?

2) Im making a DM server, and was wondering how I would make it load a different map/gamemode every 5 - 10 minutes? Does it have to be different gamemodes? or can you load it from one gamemode?


Re: 2 questions - ReneG - 07.05.2012

1.000 objects without a streamer.
10.000+ objects with a streamer.

To see other limitations see this: https://sampwiki.blast.hk/wiki/Limits

To change modes. Use SetTimer under OnGameModeInit(), wherever you call that function, use SendRconCommand
pawn Код:
SendRconCommand("changemode XX");
Where xx is the gamemode you want to change to.


Re: 2 questions - Elysian` - 07.05.2012

What VincentDunn said,
So yes you would need more than one gamemode.


Re: 2 questions - ReneG - 07.05.2012

Quote:
Originally Posted by Windows32
Посмотреть сообщение
What VincentDunn said,
So yes you would need more than one gamemode.
You can load it in one gamemode, but that would require saving/loading data.


Re: 2 questions - 2KY - 07.05.2012

You wouldn't need different gamemodes.. You can build different map-systems into one. Take a look at the map rotating tutorial by Kitten (I believe), you can find it by going back a few pages on the Scripting Tutorials section.

However, do take note that this will result in a very large script and you may have difficulties keeping things organized.