Changing Gamemode Maps?
#1

How do u have a automatic map changer?
Reply
#2

Код:
SendRconCommand("changemode NewModeNameHere");
Reply
#3

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

If you got 2 or more gamemodes, you can rotate them with command I gave you.
Reply
#5

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?
Reply
#6

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

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..
Reply
#8

I don't understand what you want. Please learn some english and then post =)
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)