10.02.2015, 15:51
pawn Код:
public OnPlayerSpawn(playerid)
{
new val = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[val][0], RandomSpawn[val][1],RandomSpawn[val][2]);
SetPlayerFacingAngle(playerid, RandomSpawn[val][3]);
return 1;
}
so you have to set player position like this :
RandomSpawn[val][0] , RandomSpawn[val][1] and ..........
EDIT: guy above me was faster !