Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. We won't give you such thing, as it could be used to steal people script's. Topic locked.
  2. local markerst = -- Table with Coordinates { [ 1 ] = { 1, 1, 1 }, [ 2 ] = { 2, 2, 2 }, [ 3 ] = { 3, 3, 3 }, } function idontgethowtodothis ( ) local x, y, z = unpack ( markerst [ 1 ] ) testarker = createMarker ( x, y, z ) addEventHandler ( "onMarkerHit", testarker, destroy ) end function destroy ( ) destroyElement ( testarker ) end Has to work.
  3. Would be easier to use unpack. local x, y, z = unpack ( markerst [ 1 ] )
  4. Un usuario? queres decir una cuenta? entonces podrias crear una tabla, al entrar a un vehiculo, verificas si esta en la tabla y ahi activas el damage proof.
  5. Para eso vas a necesitar aprender Lua scripting. Para hacer los coches indestructibles tenes que usar la funcion: setVehicleDamageProof
  6. We won't help you with illegal scripts.
  7. El texto es muy largo, usa pastebin.com para postear el codigo y luego edita el post y agregale el link.
  8. Any link posted from ANY leaked valhalla copy, will be removed, as they'll be illegally posted.
  9. exports.scoreboard:addScoreboardColumn ( 'Country' ) function showcountry ( ) local country = ( exports.admin:getPlayerCountry ( source ) or "N/A" ) setElementData ( source, "Country", country ) end addEventHandler ( "onPlayerJoin", getRootElement(), showcountry ) 1: Your colum name is 'Country' not 'Home'. 2: The dots in setElementData and the quotes aren't required at all.
  10. Podrias poner como lo solucionaste, asi otros que tengan el mismo problema pueden ahorrarse postear .
  11. You must change the scale of the text, is the argument before the font. dxDrawText(lastCity, 1, scy-100+1, scx+1, scy-100+1, tocolor(0, 0, 0, cityDrawAlpha), [color=#FF0000][size=8]1[/size][/color], "pricedown", "center", "top", false, false, true) dxDrawText(lastCity, 0, scy-100, scx, scy-100, tocolor(255, 255, 255, cityDrawAlpha), [color=#FF0000][size=8]1[/size][/color], "pricedown", "center", "top", false, false, true)
  12. dxCreateFont is only used to CREATE fonts, not to use current ones. dxDrawText(lastCity, 1, scy-100+1, scx+1, scy-100+1, tocolor(0, 0, 0, cityDrawAlpha), 1, "pricedown", "center", "top", false, false, true) dxDrawText(lastCity, 0, scy-100, scx, scy-100, tocolor(255, 255, 255, cityDrawAlpha), 1, "pricedown", "center", "top", false, false, true)
  13. Of course it is, here's a list of all valid fonts:
  14. Go to the link I posted, there you'll find the required functions, each one has an example or two.
  15. These gamemodes are illegally distributed. Topic locked.
  16. Of course it is, it's just a model/texture replacement. Use the Engine functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  17. Que yo sepa, si, deberia hacerlo. Las posiciones estan definidas ahi: 281, 206, 764, 285
  18. Yo creo mis DX asi: dxDrawBorderedText ( "Welcome to SAUR:RPG", ( 281 / 1024 ) * sx, ( 206 / 768 ) * sy, ( 764 / 1024 ) * sx, ( 285 / 768 ) * sy, tocolor ( 72, 118, 255, 255 ), ( sx / 1024 ) * 5.0, "arial", "center", "top", false, false, false )
  19. Ami me aparece con 1024 * 768 arriba del HUD, con ambos scripts.
  20. sWidth, sHeight = guiGetScreenSize ( ) function vve ( ) local vida = getElementHealth ( localPlayer ) dxDrawText ( tostring ( math.floor ( vida + 0.1 ) ) .."%", ( 1300 / 1440 ) * sWidth, ( 28 / 900 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) local armadura = getPedArmor ( localPlayer ) dxDrawText ( tostring ( math.floor ( armadura + 0.1 ) ) .."%", ( 1320 / 1440 ) * sWidth, ( 47 / 900 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) end function salu ( ) addEventHandler ( "onClientRender", root, vve ) end addEventHandler ( "onClientResourceStart", resourceRoot, salu ) Proba eso, si no funca, proba esto: sWidth, sHeight = guiGetScreenSize ( ) function vve ( ) local vida = getElementHealth ( localPlayer ) dxDrawText ( tostring ( math.floor ( vida + 0.1 ) ) .."%", ( 1300 / 1024 ) * sWidth, ( 28 / 768 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) local armadura = getPedArmor ( localPlayer ) dxDrawText ( tostring ( math.floor ( armadura + 0.1 ) ) .."%", ( 1320 / 1024 ) * sWidth, ( 47 / 768 ) * sHeight, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) end function salu ( ) addEventHandler ( "onClientRender", root, vve ) end addEventHandler ( "onClientResourceStart", resourceRoot, salu )
  21. En que resolucion lo creaste?
  22. I personally use the MTA-built in MySQL functions, they are somehow easier to use.
×
×
  • Create New...