New Random Spawn
#3

Quote:
Originally Posted by anonymoushacker
here is a muuucchhh easier way.


Код:
	new rand;
	rand = random( number of teleports );
	rand++; //changes the 9 to 10, elimanting the number 0
	switch(rand)
	{
		case 1: SetPlayerPos(playerid, x,y,z);

	}
I think you didn't understand what the code's doing.

There's the normal spawn, RandomSpawn. The spawn point move down (Z-gZ[their Z-position less the value gZ each second]). So once, its Z-coordinate is under 0. And these point shouldn't be used for the players to spawn. So that they've to spawn over 0. Till than it works. BUT once all spawn points are under 0, and then there's no other place left to spawn. So there gets another random spawn enabled, RS2(RandomSpawn2). This doesn't work. I spawn in the water and then on the Grove Street.
If somebody's abцeto help me, please tell if the problem is the code or if it's somewhere else.
Thanks for help.
Reply


Messages In This Thread
New Random Spawn - by Marc_307 - 02.08.2009, 18:30
Re: New Random Spawn - by anonymoushacker - 02.08.2009, 19:26
Re: New Random Spawn - by Marc_307 - 04.08.2009, 18:03
Re: New Random Spawn - by anonymoushacker - 05.08.2009, 08:30

Forum Jump:


Users browsing this thread: 1 Guest(s)