Jump to content

Flipi

Members
  • Posts

    321
  • Joined

  • Last visited

Everything posted by Flipi

  1. setElementPosition(objeto,x+3,y,z+3) setElementPosition(objeto,-2475.60, 2225.20, 4.55, 0, 0, 0) Ah oks, una cosa, como puedo hacer que al teletransportar al lugar determinado quede con una rotacion elegida?
  2. ah ok ahora si vale !!, una sola cosa el "+1" en los x y z para que es?
  3. pero es solo server-side no client?
  4. no me funciona , no teletransporta
  5. claro, creado por F1 o /cv "vehiculo"
  6. no, que se pueda teletransportar con el vehiculo y sin vehiculo tambien
  7. y sabes como puede ser con vehiculo?
  8. Hola, necesito saber cómo hacer un teleport donde se pueda teletransportar con o sin vehículo en un lugar determinado con un comando como "/nombre del lugar", espero que me puedan ayudar
  9. Hi, I need to know how to make a teleport where you can teleport with or without vehicle with a default command such as "/ name of the place", hopefully I can help (sorry bad english)
  10. Hola, necesito saber como hacer un teleport donde se pueda tele-transportar con o sin vehiculo, con un comando predeterminado ejemplo "/nombre del lugar", ojala me puedan ayudar
  11. Una consulta nada que ver con el tema, tengo otro script donde haces respawn en el lugar que mueres, pero revives con el skin default de CJ, como puedo hacer que reviva con el skin que murio (current skin)? addEventHandler("onPlayerWasted", getRootElement(), function() local x, y, z = getElementPosition(source) spawnPlayer ( source, x, y, z ) end
  12. Quisiera saber como hacer para bloquear y desbloquear los vehículos desde el exterior, porque el que tengo solo se puede desde el interior y al salirse del vehiculo se desbloquea. function lockCar(playerSource) local carID = getPedOccupiedVehicle(playerSource) if (carID) and (isVehicleLocked(carID)) and (getVehicleOccupant(carID) == playerSource) then local unlocked = setVehicleLocked(carID, false) if (unlocked) then outputChatBox("#0080FFTu " .. getVehicleName(carID) .. " #0080FFesta desbloqueado!", playerSource, 255, 255, 255, true) else outputChatBox("#0080FFTu " .. getVehicleName(carID) .. " #0080FFno se pudo desbloquear!", playerSource, 255, 255, 255, true) end elseif not (carID) then elseif not (isVehicleLocked(carID)) and (getVehicleOccupant(carID) == playerSource) then local locked = setVehicleLocked(carID, true) if (locked) then outputChatBox("#0080FFTu " .. getVehicleName(carID) .. " #0080FFesta bloqueado!", playerSource, 255, 255, 255, true) else outputChatBox("#0080FFTu " .. getVehicleName(carID) .. " #0080FFno se pudo bloquear!", playerSource, 255, 255, 255, true) end end end function unlockOnExit(thePlayer, seat, jacker) if (seat == 0) and (thePlayer) and (isVehicleLocked(source)) then local unlocked = setVehicleLocked(source, false) if (unlocked) then outputChatBox("#0080FFTu " .. getVehicleName(source) .. " #0080FFesta desbloqueado!", thePlayer, 255, 255, 255, true) end end end addEventHandler("onVehicleExit", getRootElement(), unlockOnExit) addEventHandler("onPlayerJoin",root,function() bindKey(source,"o", "down", lockCar) end) function onStart() for id, players in ipairs(getElementsByType("player")) do bindKey(players ,"o", "down", lockCar) end end
  13. funciona pero tira error un error en la parte de la linea 2 function flip(thePlayer) local Vehiculo = getPedOccupiedVehicle(thePlayer) if Vehiculo then outputChatBox("#0080FFVehiculo volteado!",thePlayer, 0,128,255, true) flip(Vehiculo) local x, y, z = getElementRotation (Vehiculo) setElementRotation (Vehiculo, 0, 0, (x > 90 and x < 270) and (z + 180) or z) playSoundFrontEnd ( thePlayer, 101 ) else outputChatBox("#0080FFNo tienes un vehiculo para voltearlo!",thePlayer, 0,128,255, true) end end addEventHandler("onPlayerJoin",root,function() bindKey(source,"3", "down", flip) end) function onStart() for id, players in ipairs(getElementsByType("player")) do bindKey(players ,"3", "down", flip) end end
  14. y como seria entonces?, que soy novato
  15. Hola necesito ayuda con mi script, no me funciona el flip.. function flip(thePlayer) local Vehiculo = getPedOccupiedVehicle(thePlayer) if Vehiculo then outputChatBox("#0080FFVehiculo volteado!",thePlayer, 0,128,255, true) flip(Vehiculo) playSoundFrontEnd ( thePlayer, 101 ) else outputChatBox("#0080FFNo tienes un vehiculo para voltearlo!",thePlayer, 0,128,255, true) end end addEventHandler("onPlayerJoin",root,function() bindKey(source,"3", "down", flip) end) function onStart() for id, players in ipairs(getElementsByType("player")) do bindKey(players ,"3", "down", flip) end end
  16. WOW!! gracias ! quedo perfecto!
  17. Sirvió Gracias !, una consulta, como puedo hacer para agregarle un sonido de repair al momento de reparar el vehiculo?
  18. Hola, quisiera saber como hacer un script que con la función bindKey pueda bindear una letra y reparar un vehiculo, donde tenga un OutputChatBox que indique cuando repare el vehiculo, tambien cuando no esta en el vehiculo un OutputChatBox indique que necesita un vehiculo para reparar.. Ojala me ayuden porfa D:!! [soy novato u.u]
×
×
  • Create New...