[Ajuda] Spawn Randфmico
#3

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]);
Reply


Messages In This Thread
Spawn Randфmico - by Gleisson_. - 27.05.2013, 15:30
Re: Spawn Randфmico - by Cidiei - 27.05.2013, 15:51
Re: Spawn Randфmico - by Em3rsoN - 28.05.2013, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)