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



2 gamemods - Ironboy500 - 17.10.2009

How to put 2 gamemods in server.cfg and how to make them - rotate? Please Help?

Thanks!


Re: 2 gamemods - Correlli - 17.10.2009

You mean like, when first gamemodes is over, the second one starts?

If that's what you want, then just create a timer in the first gamemode which will use SendRconCommand and
"changemode _name_of_the_second_gamemode_" command and same with the second gamemode which will also use the SendRconCommand in a timer and "changemode" command but with the name of the first gamemode.

- Or just check the link that Seif gave you.


Re: 2 gamemods - Ironboy500 - 17.10.2009

Don can you please send me code if it is not problem?


Re: 2 gamemods - Correlli - 17.10.2009

Actually, check Seif's link.

Код:
gamemode0 lvdm 1
gamemode1 rivershell 1
With this you can have two gamemodes. Means, when lvdm ends, the rivershell will start.
I'm not sure what will happen when rivershell ends, i guess it should go again to the gamemode0 which is lvdm, so if that's true, then you don't need my idea.


Re: 2 gamemods - Ironboy500 - 17.10.2009

ok


Re: 2 gamemods - Ironboy500 - 17.10.2009

not working, I did same as you,
Quote:

gamemode0 cng 1
gamemode1 area51 1

Always play cng!


Re: 2 gamemods - Correlli - 17.10.2009

You need to set a timer which will end the gamemode.


Re: 2 gamemods - Ironboy500 - 17.10.2009

sorry newbie, can you give me code?


Re: 2 gamemods - Correlli - 17.10.2009

pawn Код:
forward myTimer();

public myTimer()
{
  GameModeExit();
  return 1;
}

// under OnGameModeInit-callback:
SetTimer("myTimer", _YOUR_END_TIME_IN_MILISECONDS_, false);