28.05.2013, 05:09
pawn Код:
// no Topo do GM
new Float:SpawnRandomico[][] =
{
{X,Y,Z,Rodation},
{X,Y,Z,Rodation},
{X,Y,Z,Rodation} // Ultimo sem virgula
};
// em OnPlayerSpawn
new rand = random(sizeof(SpawnRandomico));
SetPlayerPos(playerid,SpawnRandomico[rand][0],SpawnRandomico[rand][1],SpawnRandomico[rand][2]);
SetPlayerFacingAngle(playerid,SpawnRandomico[rand][3]);