Jump to content

Javier

Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Javier

  1. Javier

    cancelEvent

    Muchas Gracias, no ví esa función.
  2. Javier

    cancelEvent

    Hola gente, tengo una duda. Supongamos que Yo creo varios vehiculos con distintas variables. Como puedo hacer para que solo ESOS vehiculos no se puedan entrar. Es decir que si por ejemplo hay 2 limusinas, solo en 1 se pueda entrar. Gracias
  3. Hola. Quiero hacer un script como el de FFS de la arena Shooter. Les dejo un video para que me entiendan más. https://www.youtube.com/watch?v=tENwszJ_Tps Yo atacheo el objeto del misil al auto y despues? Como debo usar createProjectile? Gracias
  4. Javier

    Earthquake.

    Yes, with createExplosion work. Now the question is How I can make explosions in sequence? for example createExplosion (etc etc etc ) after 10 seconds createExplosion (etc etc etc ) after 10 seconds createExplosion (etc etc etc ) after 10 seconds
  5. Javier

    Earthquake.

    Hello everyone. I need to know what functions I need to use in order to make an earthquake for all players. Thanks (I would appreciate if you give me an example)
  6. Javier

    Como es?

    Gracias Alexs y Alvarez, ahora funciona.
  7. Javier

    Como es?

    Probé el de ambos y me dice lo mismo "Bind.lua:15: Bad 'function' pointer @ 'bindKey'(4)"
  8. Javier

    Como es?

    Me dice : bad argument at line 19: @bindKey. PD Lo tengo en server-side.
  9. Javier

    Como es?

    Siempre estuvo en la funcion...
  10. Javier

    Como es?

    Porqué no tiene sentido? Me guié por el ejemplo de la wiki de dxDrawText... Ademas esto no es definir thePlayer?? if (getElementType(thePlayer) == "player") then
  11. Javier

    Como es?

    Alguien puede ayudarme?
  12. Javier

    Como es?

    Lo intenté así pero me dice bad argument en la linea 19. Area = createColRectangle ( -2535.9562988281, 1498.9573974609, 300, 800 ) Radar = createRadarArea ( -2535.9562988281, 1498.9573974609, 300, 800, 255, 0, 0, 150 ) posX = 0 posY = 0 posZ = 0 function Boat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then outputChatBox( getPlayerName(thePlayer) .. "Estás en la Zona.Presiona F7 si queres entrar.", thePlayer, 0, 200, 0 ) setElementPosition( thePlayer, posX, posY, posZ) end end function StartKey() addEventHandler ( "onColShapeHit", Area, Boat ) end bindKey(thePlayer,"F7","down", StartKey) function outBoat ( thePlayer, matchingDimension ) if (getElementType(thePlayer) == "player") then unbindKey(thePlayer,"F7","down", outBoat) end end addEventHandler ( "onColShapeLeave", Area, outBoat )
  13. Javier

    Como es?

    Hola. Queria saber como puedo hacer para que cuando un player entra en una zona y si aprieta determinada tecla, le mande a ese player a una ubicacion determinada?? Gracias
  14. Javier

    Como es?

    Eso tampoco funcionaria.. tienes Skype? Yo te ayudo a hacerlo. Hay te mandé la solicitud.
  15. Javier

    Como es?

    local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img2) then local img2 = guiCreateStaticImage(etc,etc,etc) Y asi?... En tu post anterior no te entendí mucho
  16. Javier

    Como es?

    Y así como hice yo , podria funciona?
  17. Javier

    Como es?

    Hola amigos. Tengo una duda de como hacer esto: Nosé si me van a entender: Necesito que se vayan creando y destruyendo imagenes cada sierto Tiempo... Como seria? local img = guiCreateStaticImage(etc,etc,etc) setTimer(destroyElement,4000,1,img) if not isElement (img) then local img2 = guiCreateStaticImage(etc,etc,etc) --Me entienden? Seria asi , no?
  18. Hola amigos, hice un spawn player para cuando muere se spawneara en cualquier coordenada de una tabla. Pero cuando el player muere en la consola sale @bad argument at spawnPlayer local spawns = { { 40, 80, 5 }; { 1921, -1792, 13 }; { 2000, -2041, 13 }; } function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if not( isGuestAccount (getPlayerAccount(source)) ) then local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) fadeCamera (source, false) setTimer (spawnPlayer, 3000, 1, source, unpack(spawns [ math.random (#spawns) ] ),playerSkin, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 3000, 1, source, true) end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted)
  19. okay, Now it Works But when is the weather is other , the sound reproducing continuous... function soundWeather () local weather = getWeather() if weather == 8 then local sound = playSound("Sound/rain.mp3", true) setSoundVolume(sound, 100) setWorldSoundEnabled( 4, false ) else stopSound(sound) end end addEventHandler( "onClientResourceStart", resourceRoot, soundWeather )
  20. Hello. I've a problem with this script. function soundWeather () local weather = getWeather() if weather == 8 then local sound = playSound("Sound/rain.mp3", true) setSoundVolume(sound, 0.7) setWorldSoundEnabled( 4, false ) end end addEventHandler( "onResourceStart", resourceRoot, soundWeather ) The problem is that: No sound plays and does not remove the sound of thunder. I've updated the goal and everything else. Any help?
  21. ya Funciona. Muchas Gracias
  22. Justamente la carpera que agregué se llama "SHADER/REFLEX", pero el problema es que no anda. Probé con el script original y si anda.
  23. Hola , Me descargué un Shader de la comunidad para el reflejo de los autos. El problema es que le cambié la ubicacion y ahora no anda más. Es que necesito poner los Shaders en una sola carpera... Ayudenme Meta Plis, ayudenme con las ubicaciones... Gracias
  24. Hola amigos, Tengo una duda de como hacer esto: Cuando un player ponga un determinado comando, Como le hago para que cada sierto tiempo pueda volver a escribirlo? Es decir, vuelva a funcionar el commando. Gracias.
×
×
  • Create New...