Jump to content

Ayuda Con este simple script


Brad96

Recommended Posts

Posted

estoy aprendiendo y estoy intentando hacer esto .. aparecer un vehiculo al iniciar el script diganme que estoy haciendo mal porque , y como podria hacer que el vehiculo apareciera donde estuviese yo .. gracias

function CrearCoche()  
createVehicle ( 411, x, y, z, 0, 0, 0, "Brad" ) 
end 
addEventHandler ("onResourceStart", getRootElement(), CrearCoche) 
  

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

Donde esta definido "x, y, z"?

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

Si pusiste el recurso como server side, entonces tiene que funcionar.

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

Se define en el archivo meta.xml, postea el contenido.

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

Cambialo a type="server".

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

Gracias ! ,ya funcion , ahora podrias decirme cmo hacer para que aparesca al jugador ? ponme en cada linea para q sirve cada line , y gracias .. por tu ayuda

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

No entiendo.

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

Me POdrias decir como hacer aparecer el coche pero en donde este el jugador ? que el auto aparesca donde este yo

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted

Queres que aparezca un vehiculo para cada jugador?

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

No , Quiero que aparesca el vehiculo alado del jugador sin necesidad de estar poniendo posiciones en el script

Mi Nick En El Juego : Bs|Brad

Mi Skype : fer_va_96

Posted
No , Quiero que aparesca el vehiculo alado del jugador sin necesidad de estar poniendo posiciones en el script

A eso me referia...

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
myV = createVehicle ( 411, 0, 0, 0, 0, 0, 0, "Brad" ) 
function warpV() 
x,y,y = getElementPosition(source) 
setElementPosition(myV, x +2,y +2 ,z +2) 
end 
addCommandHandler("warpv",warpV) 

con eso se creara el vehiculo al iniciar el script y cada vez ke ejecutes el comando el vehiculo estara a tu lado. le agrege algunas cordenadas mas para que no bugee al player y aparesca exactamente donde mismo.

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
addCommandHandler("bradcar",function(thePlayer) ------cmd para que valla el auto asia ti 
local account = getPlayerAccount ( thePlayer ) 
if not isGuestAccount(account) and getAccountName(account) == "brad" then ----- cuenta de usuario 
local x,y,z = getElementPosition(thePlayer) 
setElementPosition( brad ,x+3,y,z+3)   
end 
end 
) 

no se si te sirva esto es para que el auto aparezca a tu lado

  • Recently Browsing   0 members

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