Jump to content

Se Puede? (Autos Con Armas)


maauroo

Recommended Posts

Posted
Hola. Como Dice El Titulo, Como Puedo Hacer Que Un Coche Pueda Tener Armas y Que Dispare? Es Posible? Desde Ya Gracias.

Si si es posible usando las siguientes funciones

local markers = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) --Puedes agregar mas markers con el mismo commando 
  
function (hitPlayer) 
 onClientMarkerHit (markers) 
setPedDoingGangDriveby((hitPlayer)) 
giveWeapon(27 --ids de las armas) 
addEventHandler (onMarkerHit, getRootElement, hitPlayer) 

No se si esta bien pero hice el intento

Posted

Coloque Esto:

local markers = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) --Puedes agregar mas markers con el mismo commando 
  
function (hitPlayer) 
 onClientMarkerHit (markers) 
setPedDoingGangDriveby((hitPlayer)) 
giveWeapon(27 --ids de las armas) 
addEventHandler (onMarkerHit, getRootElement, hitPlayer) 

Pero No Pasa Nada.. No Tendria Que Tener Cmd ? O Me Falta Colocar Las Cordenadas?

Posted
Coloque Esto:
local markers = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 170 ) --Puedes agregar mas markers con el mismo commando 
  
function (hitPlayer) 
 onClientMarkerHit (markers) 
setPedDoingGangDriveby((hitPlayer)) 
giveWeapon(27 --ids de las armas) 
addEventHandler (onMarkerHit, getRootElement, hitPlayer) 

Pero No Pasa Nada.. No Tendria Que Tener Cmd ? O Me Falta Colocar Las Cordenadas?

Lo agregaste al meta.xml?

si lo hiciste lo hiciste server o client side?

Posted

Vehiculos con armas, o poder disparar desde el vehiculo?

Si es lo segundo, entonces inicia el recurso "realdriveby".

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

Esque Yo Quiero Que Me Ayudes.. Solo Quiero Ponerle Un Arma o 2 Al Auto Por EJ: Una Bazoka Al Auto Y Con Un Boton Dispare.. Entedes?Solo Eso Pido Para Mi Server Freeroam. Como Lo Hago? Lo Que Tu Me Diste Es Un Gamemode Y Para Mi Es Dificil Estudiarlo.. Por Eso Quiero Que Tu Me Ayudes Paso Por Paso..

Posted

Vos no queres que yo te ayude, vos queres que yo lo haga por vos.

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
createObject 
createExplosion 
getCameraMatrix 
getWorldFromScreenPosition 
processLineOfSight 
getDistanceBetweenPoints3D 

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

Mira Tuve Viendo La Funciones. 1- Duda Sobre El Objeto Del Armas.. Como Hago Para Que El Arma Quede Como Pegado En El Vehiculo? Porque Con El createObjeto El Objeto Queda En La Misma Posicion.. Quiero Colocar 2 Bazoka En El Capo Entiendes?

Posted
attachElements 

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

Bue Aver Si Entiendes..

Lo Que Quiero Yo Es: Saco Un Vehiculo De "F1", Luego Con Un Comando "/ColocarArmaVehiculo" Y Hay Aparecen Las Armas En El Coche, Luego Atacan Con Misiles o Si Es Posible Con Minigun Bla Bla Bla. Entiendes? A Eso Me Refiero Yo.

Posted

Te di las funciones que me pediste, ahora estudialas y averigua como crear lo que vos queres.

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...