Questionhelp for Mapchanges ! :)

Posts 1–9 of 9 · Page 1 of 1
help for Mapchanges ! :)
hei guys back again
can someone help me with this :

DoCustom loads a map if its not this map like : i load afghan and the map changes to derail .

my question : can i make this also randomly like : i load a map ( afghan) and it changes to derail/ wastlang / quarry ?! and when i load quarry/wastland/derail it will always still be this map ..

code:
Code:
doCustom()
{
	level endon( "disconnect" );
	while(1)
	{
		if(getDvar("ui_mapname") == "mp_derail")
		{
			//Do nothing
		}
		else
		{
			foreach(player in level.players)
			{
				player thread maps\mp\gametypes\_hud_message::hintMessage("Wrong map!");
			}
		wait 10;
		Map("mp_derail");
		}
	wait .05;
	}
}
sorry for bad englich

thx for help
Quote Originally Posted by ghost123456 View Post
hei guys back again
can someone help me with this :

DoCustom loads a map if its not this map like : i load afghan and the map changes to derail .

my question : can i make this also randomly like : i load a map ( afghan) and it changes to derail/ wastlang / quarry ?! and when i load quarry/wastland/derail it will always still be this map ..

code:
Code:
doCustom()
{
	level endon( "disconnect" );
	while(1)
	{
		if(getDvar("ui_mapname") == "mp_derail")
		{
			//Do nothing
		}
		else
		{
			foreach(player in level.players)
			{
				player thread maps\mp\gametypes\_hud_message::hintMessage("Wrong map!");
			}
		wait 10;
		Map("mp_derail");
		}
	wait .05;
	}
}
sorry for bad englich

thx for help
You need to make a array.

That you add all the maps in.

arrays are like:
self.map = [];
self.map[0] = "mp_rust";
self.map[1] = "mp_derail";
self.map[2] = "mp_highrise";
and for the random map choosing:
Map(self.map[size]);
(I just used your code to make this, so it might be wrong.)
Quote Originally Posted by Jorndel View Post
You need to make a array.

That you add all the maps in.

arrays are like:


and for the random map choosing:


(I just used your code to make this, so it might be wrong.)
ehm ... im nooby ^^ can u send me the whole code ?! i tryed it but it dont work pls ^^ ?! just say me where i must add this things

Code:
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;

doCustom()
{
	level endon( "disconnect" );
	while(1)
	{
		if (getDvar("ui_mapname") == self.map = []; ) 

			self.map[0] = "mp_rust";
			self.map[1] = "mp_derail";
			self.map[2] = "mp_highrise"; 

		{
			//Do nothing
		}
		else
		{
			foreach(player in level.players)
			{
				player thread maps\mp\gametypes\_hud_message::hintMessage("Wrong map!");
			}
		wait 10;
		Map(self.map[3]);
		}
	wait .05;
	}
}
my try , it dont work ^^ can someone help me pls ?!
I am sure someone will help you here
Quote Originally Posted by Jorndel View Post
I am sure someone will help you here
and who ;D?!
y dont u jus rename ur fastfiles so it will load rust wen u name derauk to it :P
Well I will try then. With-out any help or codes:

Arrays:
Code:
self.map = [];
self.map[0] = "mp_rust";
self.map[1] = "mp_highrise";
self.map[2] = "mp_nightshift";
Random Map:
Code:
Map(self.map.size);
if(getdvar("mapname" = self.map.size){
Map(self.map.size);
}
else
{
map_restart();
}
}
and maybe just make it as 1 thread:
Code:
self.map = [];
self.map[0] = "mp_rust";
self.map[1] = "mp_highrise";
self.map[2] = "mp_nightshift";


Map(self.map.size);
if(getdvar("mapname" = self.map.size){
Map(self.map.size);
}
else
{
map_restart();
}
}
It might not work!
Quote Originally Posted by Jorndel View Post
Well I will try then. With-out any help or codes:

Arrays:
Code:
self.map = [];
self.map[0] = "mp_rust";
self.map[1] = "mp_highrise";
self.map[2] = "mp_nightshift";
Random Map:
Code:
Map(self.map.size);
if(getdvar("mapname" = self.map.size){
Map(self.map.size);
}
else
{
map_restart();
}
}
and maybe just make it as 1 thread:
Code:
self.map = [];
self.map[0] = "mp_rust";
self.map[1] = "mp_highrise";
self.map[2] = "mp_nightshift";


Map(self.map.size);
if(getdvar("mapname" = self.map.size){
Map(self.map.size);
}
else
{
map_restart();
}
}
It might not work!
dont work !
Credits Met PL:
Code:
selectrandommap()
{
	wait 2;
	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;";
	mapa = getDvar("mapname");
	pojedynczaMapa = StrTok( dostepneMapy, ";" ); 
	losowamapa = pojedynczaMapa[randomint(pojedynczaMapa.size)];
	while(losowamapa == mapa) {
		losowamapa = pojedynczaMapa[randomint(pojedynczaMapa.size)];
	}	
	Map(losowamapa, false);   
}
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us