Jump to content

Enargy,

Members
  • Posts

    1,102
  • Joined

Everything posted by Enargy,

  1. Can you explain a bit better?
  2. Quizás si se usa setElementDatapara dar un numero cuando un personaje es creado y luego usar getElementDatapara verificar de que el limite de creación sea tres. luego se guarda en la base de datos que el MTA paradise usa.
  3. prueba usando esto: setAccountData/getAccountData PD: esto tiene que estar publicado en la sección de scripting viewforum.php?f=145
  4. When the player enters the vehicle use createObjectand attach it using attachElements. after exit the car destroyElement but first you have to make sure that the object is created.
  5. try this function renderDX() if ( theNemesis and isElement(theNemesis) and cProgress ) then local nemesisCurrentHP = exports.extra_health:getElementExtraHealth(theNemesis) + getElementHealth(theNemesis) cProgress = nemesisCurrentHP < 0 and 0 or (nemesisCurrentHP / nemesisMaxHP) -- Draw the Title Text dxDrawText(dxTextTitle, dxPosX - 2, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX - 2, dxPosY, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX - 2, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY, dxTextWidth, dxTextHeight, dxTextColor, dxTextScale, dxTextFont) local x1, y1, z1 = getElementPosition(theNemesis) local x2, y2, z2 = getElementPosition(getLocalPlayer()) if getDistanceBetweenPoints3D(x1, y1, z1,x2, y2, z2) < 10 then -- the minimum distance that must be the player to make the text visible. -- Draw the BG DX Rectangle dxDrawImage(progressX-5, progressY-5, progressWidth+10, progressHeight+10, "files/bar_bg.png") -- Draw the progress dxDrawImageSection(progressX, progressY, progressWidth * cProgress, progressHeight, progressX, progressY, progressWidth, progressHeight, "files/bar_progress.png") end -- Draw the dead text if ( cProgress == 0 and isPedDead(theNemesis) ) then dxDrawText("The Nemesis has been defeated - Please wait for the next one to Spawn.", progressX, progressY, progressWidth, progressHeight, dxTextColor, dxTextScale, dxTextFont) end else removeEventHandler("onClientRender", getRootElement(), renderDX) end end
  6. You could use getDistanceBetweenPoints3D You can insert into a table different spawnpoints
  7. listaDeCanciones= { [1] = "www.ejemplo1.com", [2] = "www.ejemplo2.com", [3] = "www.ejemplo3.com" }
  8. Enargy,

    Car tuning

    https://wiki.multitheftauto.com/wiki/SetVehicleHandling
  9. Puedes crear una tabla e insertar las urls de tus canciones y luego usar playSoundo playSound3D para reproducirlas.
  10. try; #15 if getElementType ( hitElement ) == "player" or getElementType ( hitElement ) == "vehicle" then
  11. --- Cuando un resource inicia la tecla es bindeada. addEventHandler("onResourceStart", resourceRoot, function() for _, thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer, "M", "down", "minigun") end end) --- El jugador entra al servidor y es bindeada la tecla addEventHandler("onPlayerJoin", root, function() bindKey(source, "M", "down", "minigun") end) --- function giveMeMinigun(player) -- Tu codigo. end addCommandHandler("minigun", giveMeMinigun)
  12. Dentro de una función, pero eso depende de como estas ejecutando tu código que si es por comando u evento e.g: function giveMeMinigun(player) local accName = getAccountName ( getPlayerAccount (player) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then giveWeapon(player, 38, 9999) else outputChatBox("No eres Admin.", player, 255, 0, 0, false) end end addCommandHandler("minigun", giveMeMinigun)
  13. Updated! 1.3.0 https://community.multitheftauto.com/in ... s&id=10944
  14. it might have the action to do work second planes, open multiple tabs and be able to search more stuff and if there is a limit to open tabs or not?
  15. Enargy,

    Tyres

    just do it with; onMarkerHit createMarker setVehicleWheelStates isElementWithinMarker more easy, I guess
  16. No as fair i know, but you can create a style rocket launcher as you say: use bindKey -- fire weapon createProjectile -- the missile getPlayerWeapon -- get if player is holding heatseek(id 36) in his hand. getElementPosition -- initial position where projectile is created
  17. its kinda hard to do it with DxDraw, isn't there a way to just enable it via script? but if the event is onClientRender as it will be visible only to the client, i didn't understood you
×
×
  • Create New...