[Ajuda] Teleporte Aleatorio
#1

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
Reply
#2

Random

Use o ****** antes de postar...
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)