SA-MP Forums Archive
[Ajuda] Teleporte Aleatorio - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Teleporte Aleatorio (/showthread.php?tid=472199)



Teleporte Aleatorio - UzumakiNaruto - 27.10.2013

Ola galera eu queria q vc me ajuda-sem a fazer um teleporte com cordenadas aleatorias,as cordenadas eu ja tenho so preciso saber como fasso um tele com essas cordenadas e tambem apos eu teleportar um ID eu ir junto com ele como se fosse um /ir,se poderem ajudar agradeзo

(OBS:Cordenadas que vou utilizar

-96.806884, -53.900856, 3.117187
-512.921691, -188.322448, 78.139068
-1021.653442, -658.846557, 32.007812
-1057.368774, -1444.428833, 130.921386
-1643.891845, -2236.760948, 29.939315
-1582.557983, -2743.550537, 48.539062


Foi demorado pegar as cordenadas espero que vala a pena esperar xD)

Skype: bruno.kun2


Re: Teleporte Aleatorio - bruxo00 - 27.10.2013

Random

Use o ****** antes de postar...


Re: Teleporte Aleatorio - Twizted - 27.10.2013

pawn Код:
new Float:RandomSpawns[][] =
{
    {-96.806884, -53.900856, 3.117187}, // Randomspawn
    {-512.921691, -188.322448, 78.139068}, // Randomspawn
    {-1021.653442, -658.846557, 32.007812}, // Randomspawn
    {-1057.368774, -1444.428833, 130.921386}, // Randomspawn
    {-1643.891845, -2236.760948, 29.939315}, // Randomspawn
    {-1582.557983, -2743.550537, 48.539062} // Randomspawn
};

public OnPlayerSpawn(playerid)
{
    new Random = random(sizeof(RandomSpawns));
    SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
    SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
    return 1;
}