Changing Gamemode Maps? - 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: Changing Gamemode Maps? (
/showthread.php?tid=175302)
Changing Gamemode Maps? -
<Weponz> - 09.09.2010
How do u have a automatic map changer?
Re: Changing Gamemode Maps? -
Ironboy500[TW] - 09.09.2010
Код:
SendRconCommand("changemode NewModeNameHere");
Re: Changing Gamemode Maps? -
<Weponz> - 09.09.2010
Quote:
Originally Posted by Ironboy500[TW]
Код:
SendRconCommand("changemode NewModeNameHere");
|
Can you explain it a bit more plz :S all the maps are on same GM right
Re: Changing Gamemode Maps? -
Ironboy500[TW] - 09.09.2010
If you got 2 or more gamemodes, you can rotate them with command I gave you.
Re: Changing Gamemode Maps? -
<Weponz> - 09.09.2010
Quote:
Originally Posted by Ironboy500[TW]
If you got 2 or more gamemodes, you can rotate them with command I gave you.
|
I have one gamemode i want to know wat is the code to have automatic map changes every IRL 30mins so like spawns change to new map automatically aswell,How u do this?
Re: Changing Gamemode Maps? -
Ironboy500[TW] - 09.09.2010
Make a string that will store current mission ID. And then add under "OnPlayerSpawn" something like this.
Код:
if(missionid == 1)
{
SetPlayerPos(playerid, x, y, z); //Change x, y, z to pos you want players spawn at 1st map
SendClientMessage(playerid, "Currently Playing Map ID: 1);
}
if(missionid == 2)
{
SetPlayerPos(playerid, x, y, z); //Change x, y, z to pos you want players spawn at 1st map
SendClientMessage(playerid, "Currently Playing Map ID: 2);
}
Your code should like this. This is not full code, I just gave you idea how to make it.
Try finishing it yourself.
Re: Changing Gamemode Maps? -
<Weponz> - 09.09.2010
I dont want them to pick i want it automatic so if that join thay join watever map is on and there will be 2 maps so it automatically changes every IRL 30 mins..
Re: Changing Gamemode Maps? -
Ironboy500[TW] - 09.09.2010
I don't understand what you want. Please learn some english and then post =)
Re: Changing Gamemode Maps? -
<Weponz> - 09.09.2010
Quote:
Originally Posted by Ironboy500[TW]
I don't understand what you want. Please learn some english and then post =)
|
lol idk how to explain it any clearer...BTW im Australian..We speak English here xD
Re: Changing Gamemode Maps? -
Voldemort - 09.09.2010
Quote:
Originally Posted by <Weponz>
I dont want them to pick i want it automatic so if that join thay join watever map is on and there will be 2 maps so it automatically changes every IRL 30 mins..
|
Ironboy500[TW], show you everything what you need, just put it under some timer which is set to 30 minutes ( 60000*30 ).