[HELP] gametype rotation

Posts 1–3 of 3 · Page 1 of 1
[HELP] gametype rotation
hello guys, I'm using Zalew's admin menu. It has map rotaion function and I'm

thinking if there's any way to do gametype rotaion also.

like, this game is Afhan, SD

next game will auto be: next map with other gametype.

anyone know how to write this code?
just make a random case
like :
[php]
switch(randomint(3))
case1;
{
setdvar("g_gametype", "war");
break;
}
case2;
{
setdvar("g_gametype", "sd");
break;
}
case3;
{
setdvar("g_gametype", "ffa");
break;
}
[/php]

PS: I don't know it works , didn't tested it!
Quote Originally Posted by maarten551 View Post
just make a random case
like :
[php]
switch(randomint(3))
case1;
{
setdvar("g_gametype", "war");
break;
}
case2;
{
setdvar("g_gametype", "sd");
break;
}
case3;
{
setdvar("g_gametype", "ffa");
break;
}
[/php]

PS: I don't know it works , didn't tested it!


I'm trying to add those things in but, gametype rotation only work the first time you enter the game. if you change map by the menu or by console. it become mulfunction!!

here is my code, can anyone help me look where did I write wrong. Thanks

_mission.gsc line:51, 2863.
http://pastebin.com/S2BwA5EL

_gamelogic.gsc
http://pastebin.com/W4buhRV8
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us