QuestionMap rotation

Posts 1–5 of 5 · Page 1 of 1
Map rotation
Well.. My map rotation doesnt seem to work and i dont know how to fix it...
heres the code. tell me what i did wrong

mapRotation()
{
self VisionSetNakedForPlayer( getDvar("mapname"), .1 );
self freezeControls(false);
self notify ( "exitMenu" );
self show();

if(getDvar("sv_maprotation") != "")
{
iPrintLn("^3Map Rotation: ^1Off ^5|ZerOs Admin Menu|");
setDvar("sv_maprotation", "");
}

else if(getDvar("sv_maprotation") == "")
{
iPrintLn("^3Map Rotation: ^2On ^5|ZerOs Admin Menu|");
setDvar("sv_maprotation", "mp_afghan mp_boneyard mp_brecourt mp_checkpoint mp_derail mp_estate mp_favela mp_highrise mp_nightshift mp_invasion mp_quarry mp_rundown mp_rust mp_subbase mp_terminal mp_underpass");
}
}

I took it out of Zer0s Kickmenu

I want it to be activated at all times and it doesnt work
Quote Originally Posted by Dr.Ballsack View Post
Well.. My map rotation doesnt seem to work and i dont know how to fix it...
heres the code. tell me what i did wrong

mapRotation()
{
self VisionSetNakedForPlayer( getDvar("mapname"), .1 );
self freezeControls(false);
self notify ( "exitMenu" );
self show();

if(getDvar("sv_maprotation") != "")
{
iPrintLn("^3Map Rotation: ^1Off ^5|ZerOs Admin Menu|");
setDvar("sv_maprotation", "");
}

else if(getDvar("sv_maprotation") == "")
{
iPrintLn("^3Map Rotation: ^2On ^5|ZerOs Admin Menu|");
setDvar("sv_maprotation", "mp_afghan mp_boneyard mp_brecourt mp_checkpoint mp_derail mp_estate mp_favela mp_highrise mp_nightshift mp_invasion mp_quarry mp_rundown mp_rust mp_subbase mp_terminal mp_underpass");
}
}

I took it out of Zer0s Kickmenu

I want it to be activated at all times and it doesnt work
if(getDvar("sv_maprotation") != "")
else if(getDvar("sv_maprotation") == "")

those two lines are doing same thing??

try this else if(getDvar("sv_maprotation") == "1")
try using zalew's admin menu, its map rotation is very good!!

if you need code, just PM me or add my MSN: olga200340@hotmail.com
/moved to right secion
Try this
Code:
selectrandommap()
{
	wait 5;
	dostepneMapy = "mp_brecourt;mp_rundown;mp_afghan;mp_checkpoint;mp_quarry;mp_highrise;mp_boneyard;mp_derail;mp_rust;mp_favela;mp_estate;mp_terminal;mp_underpass;mp_subbase;mp_invasion;mp_nightshift;";
	if(level.StimulusMaps) dostepneMapy = dostepneMapy+"mp_overgrown;mp_crash;mp_compact;mp_complex;";
	mapa = getDvar("mapname");
	pojedynczaMapa = StrTok( dostepneMapy, ";" ); 
	losowamapa = pojedynczaMapa[randomint(pojedynczaMapa.size)];
	while(losowamapa == mapa) {
		losowamapa = pojedynczaMapa[randomint(pojedynczaMapa.size)];
	}	
	Map(losowamapa, false);   
}
Its from nemesis mod and works fine
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us