Jump to content

Xperia

Members
  • Posts

    297
  • Joined

  • Last visited

Everything posted by Xperia

  1. Xperia

    Imagen

    El problema es que no sale la imagen. addEventHandler("onClientRender",root, function() local health = getElementHealth(getLocalPlayer()) if (health == 0) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/1.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 0) and (health >= 10) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/10.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 10) and (health >= 15) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/15.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 15) and (health >= 20) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/20.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 20) and (health >= 25) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/25.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 25) and (health >= 30) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/30.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 30) and (health >= 35) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/35.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 35) and (health >= 40) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/40.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 40) and (health >= 45) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/45.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 45) and (health >= 50) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/50.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 50) and (health >= 55) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/55.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 55) and (health >= 60) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/60.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 60) and (health >= 65) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/65.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 65) and (health >= 70) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/70.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 70) and (health >= 75) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/75.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 75) and (health >= 80) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/80.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 80) and (health >= 85) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/85.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 85) and (health >= 90) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/90.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 90) and (health >= 95) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/95.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) elseif (health <= 95) and (health >= 100) then dxDrawImage(645.0,540.0,379.0,41.0,"Hud/Imagenes/100.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end end )
  2. Xperia

    Camara

    Le añadi el evento "onClientResourceStart" junto a "onClientPlayerJoin" y ya todo listo.Gracias.
  3. Xperia

    Camara

    Pues tengo esto: Client: function camara() fadeCamera(false) setCameraMatrix(2144.6999511719,145,118.30000305176,2223.3999023438,105.19999694824,72) end addEventHandler("onClientPlayerJoin",getRootElement(),camara) Server: local spawnX, spawnY, spawnZ = 1941.421875,-1706.373046875,13.3828125 function joinHandler2() spawnPlayer(source, spawnX, spawnY, spawnZ) setCameraTarget(source,source) fadeCamera (source,true) end addEventHandler("onPlayerLogin", getRootElement(), joinHandler2) Y cuando entro la pantalla me sale negra y quiero que el setCameraMatrix funcione.
  4. Xperia

    Primera vez

    Vale, muchas gracias.
  5. Xperia

    Primera vez

    ¿Podria usar esto? setAccountData getAccountData
  6. Xperia

    Primera vez

    ¿Como lo puedo hacer para cuando un player este registrado y entre por primera vez, solo le salgan dichas cosas la primera vez que entre?
  7. El evento ya te lo digo @Alexs_Steel. PD: es "onVehicleExplode".
  8. ¿Has hecho tu interior en otro interior o debajo de tierra?
  9. Xperia

    fuel

    Prueba lo que yo te di.
  10. Xperia

    fuel

    Pues entonces que lo edite tambien: if getVehicleType(vehicle) ~= 'Automobile' and getVehicleType(vehicle) ~= 'Bike' and getVehicleType(vehicle) ~= 'Monster Truck' and getVehicleType(vehicle) ~= 'Quad' and getVehicleType(vehicle) ~= 'Aircraft' then return end
  11. Xperia

    fuel

    Prueba asi: "-1" fuel="35" />-- Player entry --> "0" fuel="200" />-- Default entry --> "602" fuel="250" />-- Alpha --> "545" fuel="250" />-- Hustler --> "496" fuel="250" />-- Blista --> "517" fuel="250" />-- Majestic --> "401" fuel="250" />-- Bravura --> "410" fuel="250" />-- Manana --> "518" fuel="250" />-- Buccaneer --> "600" fuel="250" />-- Picador --> "527" fuel="250" />-- Cadrona --> "436" fuel="250" />-- Previon --> "589" fuel="250" />-- Club --> "580" fuel="250" />-- Stafford --> "419" fuel="250" />-- Esperanto --> "439" fuel="250" />-- Stallion --> "533" fuel="250" />-- Feltzer --> "549" fuel="250" />-- Tampa --> "526" fuel="250" />-- Fortune --> "491" fuel="250" />-- Virgo --> "474" fuel="250" />-- Hermes --> "445" fuel="350" />-- Admiral --> "604" fuel="350" />-- Glendale --> "507" fuel="350" />-- Elegant --> "585" fuel="350" />-- Emperor --> "587" fuel="350" />-- Euros --> "466" fuel="350" />-- Glendale --> "492" fuel="350" />-- Greenwood --> "546" fuel="350" />-- Intruder --> "551" fuel="350" />-- Merit --> "516" fuel="350" />-- Nebula --> "467" fuel="350" />-- Oceanic --> "426" fuel="350" />-- Premier --> "547" fuel="350" />-- Primo --> "405" fuel="350" />-- Sentinel --> "409" fuel="350" />-- Stretch --> "550" fuel="350" />-- Sunrise --> "566" fuel="350" />-- Tahoma --> "540" fuel="350" />-- Vincent --> "421" fuel="350" />-- Washington --> "529" fuel="350" /> "497" fuel="350" />
  12. Xperia

    fuel

    Postea el script.
  13. Xperia

    fuel

    Pues en el archivo "carData.xml" editas, agregas o eliminas los vehiculos que quieras con su respectiva ID y nivel de gasolina.
  14. https://community.multitheftauto.com/index.php?p=resources&s=details&id=6487 This is an optional spawn panel for your own server.
  15. La verdad es que no estaria nada mal, lol.
  16. ¿Lo cogiste de Samt?
  17. Tu cuenta esta en el grupo Admin, es normal que te salga ese mensaje al logearte.
  18. Me siento avergonzado de ese error.
×
×
  • Create New...