04.08.2009, 18:03
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);
}
|
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.

