Random Spawn
#2

Try this one :

One top of your scripts :

PHP код:
new Float:SpawnPoints[2][4] =
{
{-
1496.3367,904.7078,7.1875,90.4882}
}; 
What are these coords ?

X = -1496.3367
Y = 904.7078
Z = 7.1875
A = 90.4882

After that, Under OnPlayerSpawn, Add this :

PHP код:
new rnd random(sizeof(SpawnPoints));
SetPlayerPos(playerid,SpawnPoints[rnd][0],SpawnPoints[rnd][1],SpawnPoints[rnd][2]);
SetPlayerFacingAngle(playerid,SpawnPoints[rnd][3]); 
Hope this is useful.

KillerDVX,
Reply


Messages In This Thread
Random Spawn - by TenTen - 10.07.2015, 17:44
Re : Random Spawn - by KillerDVX - 10.07.2015, 17:48
Re: Random Spawn - by Threshold - 10.07.2015, 17:52
Re: Random Spawn - by youssefehab500 - 10.07.2015, 17:54
Re: Random Spawn - by Darkwood17 - 10.07.2015, 17:59
Re : Random Spawn - by KillerDVX - 10.07.2015, 18:01
Re: Random Spawn - by Threshold - 10.07.2015, 18:08
Re: Random Spawn - by TenTen - 10.07.2015, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)