Jump to content

Ayuda Con este simple script


Brad96

Recommended Posts

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) 
  

Link to comment
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.

Link to comment
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

Link to comment
  • Recently Browsing   0 members

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