Jump to content

FraN-724

Members
  • Posts

    438
  • Joined

  • Last visited

Everything posted by FraN-724

  1. Disculpa? pero de quien es el script ,mio o tuyo?, haz el intento de arreglarlo tú también, nunca dependas de los demás.
  2. Intenta cambiar el nombre de la acl a un grupo en el que estés. ¿Estas seguro que estas logeado?
  3. No, seria algo asi mas o menos. client: local shootTimer = nil function shoot(localPlayer) local vehicle = getPedOccupiedVehicle(localPlayer) if not isElement(vehicle) then return end if(not isTimer(shootTimer))then triggerServerEvent("chigualockowom", localPlayer) local posX, posY, posZ = getElementPosition(vehicle) shootTimer = setTimer(function()end, 3333, 1) createProjectile(vehicle, 19, posX, posY, posZ, 1.0) end end bindKey("vehicle_fire", "down", shoot) bindKey("vehicle_secondary_fire", "down", shoot) server: addEvent("chigualockowom", true) function lala(player) local accountName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then end end addEventHandler("chigualockowom", root, lala) PD: No testeado
  4. Estas mesclando client side con server side, para privatizar usa mejor triggerServerEvent o para lanzar el misil usa triggerClientEvent
  5. no tienes definido r, g, b, por eso no tiene sentido.
  6. OT: Y por eso Krujitos en cada servidor que juegue tiene lag XDD.
  7. Cambia el evento onVehicleEnter por onClientVehicleEnter.
  8. no defines x y z. y usa mejor getPedOccupiedVehicle y cambia tu evento por onClientVehicleEnter
  9. Toma, usa mi código. vehicle1 = createVehicle ( 411, -1419.1999511719, -71, 13.89999961853, 0, 0, 0 ) function autos ( player, seat, jacked ) if ( seat == 0 and source == auto or source == vehicle1) then local accountName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Police" ) ) ) then cancelEvent ( ) outputChatBox("Este Vehículo Esta Reservado Para El Grupo Police", thePlayer, 255,90,0, true) end end end addEventHandler ( "onVehicleStartEnter", root, autos )
  10. Pusieron createVeichle, Aono intenta esto: function infernus(thePlayer) local x, y, z = getElementPosition(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then Object1 = createVehicle(411, x, y, z-1)--- ID del auto outputChatBox("creaste el auto", thePlayer, 0, 250, 0) elseif (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(Object1, vehicle) end end addCommandHandler("auto", infernus) function infernus(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then elseif (isElement(Object1)) then destroyElement(Object1) outputChatBox("destruido", thePlayer, 0, 0, 255) else outputChatBox("destruido", thePlayer, 250, 0, 0) end end addCommandHandler("destroy", infernus)
  11. Jkajkkajkaa teletubies violetas
  12. 5.- function LOL o local e-e
  13. Debes editar el textlib.lua en donde dice strFont pones: strFont = dxCreateFont("font.ttf" ,12)
  14. function flip(thePlayer) local Vehiculo = getPedOccupiedVehicle(thePlayer) if Vehiculo then local x, y, z = getElementRotation (Vehiculo) setElementRotation (Vehiculo, 0, 0, (x > 90 and x < 270) and (z + 180) or z) playSoundFrontEnd ( thePlayer, 101 ) outputChatBox("#0080FFVehiculo volteado!",thePlayer, 0,128,255, true) 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
  15. Entra al map editor, elijes la definition race y donde dice checkpoints los elijes y los pones. Suerte.
  16. Como? no te entiendo a lo que me quieres decir, si te refieres a como crear los checkpoints necesitarías createMarker, ejemplo: local theMarker = createMarker ( 2564.5, 245.435, 2.99, "checkpoint", 1.5, 255, 255, 0, 170 )
×
×
  • Create New...