Randomized Spawnpoints, help needed.
#3

Код:
new RandomSpawn = random(1);
  			if (RandomSpawn == 0)
				{
  			  InCar[playerid] = false;
					SetPlayerPos(playerid, x,y,z);
					SetPlayerFacingAngle(playerid, a);
					SetCameraBehindPlayer(playerid);
				}
you could use that format
copy and paste this part
Код:
if (RandomSpawn == 0)
				{
  			  InCar[playerid] = false;
					SetPlayerPos(playerid, x,y,z);
					SetPlayerFacingAngle(playerid, a);
					SetCameraBehindPlayer(playerid);
				}
everytime you make a new spawn
change the If(randomSpawn == ) to the next integer or else it wont work

and when your dont dont forget to change this part
Код:
random(1);
change the number to however many spawns you have

yes it starts counting at 0
Reply


Messages In This Thread
Randomized Spawnpoints, help needed. - by Kelito - 26.06.2009, 14:08
Re: Randomized Spawnpoints, help needed. - by arnutisz - 26.06.2009, 14:12
Re: Randomized Spawnpoints, help needed. - by iLinx - 26.06.2009, 14:14
Re: Randomized Spawnpoints, help needed. - by Stah - 26.06.2009, 14:17
Re: Randomized Spawnpoints, help needed. - by Kelito - 26.06.2009, 14:21

Forum Jump:


Users browsing this thread: 1 Guest(s)