Jump to content

Bus job


Sasu

Recommended Posts

Posted

Como puedo hacer para que cuando entre a un vehiculo(ponele cualquiera), se cree el primer marker y al entrar al marker se cree otro.

Tengo esta tabla de coordenadas:

local busTable = { 
[1]={1818.0244140625, -1913.658203125, 10.820078849792},[2]={1181.87, -1796.36, 13.3984},[3]={1164.47, -1712.17, 13.7231},[4]={1038.74, -1712.84, 13.4254},[5]={1037.64, -1558.29, 13.3862}, 
[6]={1061.46, -1443.02, 13.4006},[7]={1051.46, -1396.45, 13.4565},[8]={825.122, -1395.14, 13.3444},[9]={648.371, -1395.33, 13.3444},[10]={635.96, -1252.67, 17.1576}, 
[11]={554.18, -1122.47, 27.2105},[12]={238.52, -1170.34, 19.5841},[13]={-43.18, -1354.07, 11.2299},[14]={-284.8, -1642.00, 15.5116},[15]={-354.4, -1831.65, 22.2320}, 
[16]={-348.6, -2125.50, 28.3879},[17]={-174.6, -2413.64, 35.6235},[18]={-36.62, -2711.40, 42.0042} 
} 

State: Inactive

Posted

Podes crear una tabla en el script, y usar el jugador que toco el marker como index, y aumentar esa tabla cada ves, asi creas el siguiente marker despues.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Primero, tenes que crear una tabla global, luego, al tocar el marker, te fijas si el jugador ya esta en la tabla, y si no lo esta, lo agregas, luego, incrementas el valor guardado en la tabla cada ves que tocas un marker, y usas eso de index para obtener las coordenadas de la tabla tuya.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...