15.12.2010, 08:45
I have made random spawns for my mission. I don't know why but all players spawn at the same position. I want to all the players have their own position. How to fix this.
pawn Код:
new Float:MissionSpawns[ ][ ] = {
{2518.4336, 2773.0366, 10.8203, 269.5839},
{2526.7207, 2773.0366, 10.8203, 270.0226},
{2535.0769, 2773.0366, 10.8203, 270.0226},
{2543.1343, 2773.0366, 10.8203, 270.0226},
{2551.4900, 2773.0366, 10.8203, 270.0226},
{2559.7664, 2773.0366, 10.8203, 270.0226},
{2568.1340, 2773.0366, 10.8203, 270.0226},
{2576.4170, 2773.0366, 10.8203, 270.0226},
{2518.2083, 2750.4985, 10.8203, 268.7066},
{2526.8198, 2750.5911, 10.8203, 270.4612},
{2535.0474, 2750.5227, 10.8203, 268.7066},
{2543.3940, 2750.4734, 10.8203, 270.0225},
{2551.6914, 2750.4685, 10.8203, 269.5838},
{2559.9236, 2750.4087, 10.8203, 269.5838},
{2568.0718, 2750.4451, 10.8203, 270.0225},
{2576.9536, 2750.3796, 10.8203, 269.5838},
{2518.6602, 2730.9292, 10.8130, 268.1190},
{2526.8027, 2730.8000, 10.8130, 273.8218},
{2535.0513, 2730.7705, 10.8203, 268.9964},
{2518.3496, 2716.4863, 10.8203, 270.6022},
{2526.4041, 2716.4065, 10.8203, 269.7249},
{2534.9697, 2716.3647, 10.8203, 269.7249}
};
SetPlayerPos(i, lmsSpawns[rand][0], lmsSpawns[rand][1],lmsSpawns[rand][2]);
SetPlayerFacingAngle(playerid, lmsSpawns[rand][3]);