Javier
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by Javier
-
Muchas Gracias, no ví esa función.
-
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
-
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
-
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
-
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)
-
Gracias Alexs y Alvarez, ahora funciona.
-
Probé el de ambos y me dice lo mismo "Bind.lua:15: Bad 'function' pointer @ 'bindKey'(4)"
-
Me dice : bad argument at line 19: @bindKey. PD Lo tengo en server-side.
-
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
-
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 )
-
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
-
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?
-
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)
-
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 )
-
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?
-
ya Funciona. Muchas Gracias
-
Justamente la carpera que agregué se llama "SHADER/REFLEX", pero el problema es que no anda. Probé con el script original y si anda.
-
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
-
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.
