Jump to content

0xCiBeR

MTA Team
  • Posts

    1,673
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by 0xCiBeR

  1. Que yo sepa no, podes postearlo como bug. De igual manera, te recomiendo usar el MTA:DayZ oficial de aca http://mtadayz.heliohost.org/forum/index.php que en la 1.0.0b va a ser open source. Tiene muchos cambios en cuanto a rendimiento.
  2. https://community.multitheftauto.com/index.php?p= ... ls&id=9655 Ahi tenes una base.
  3. Thanks all, sorry for the delay to respond. I'm thinking of making this open source as I lack time to continue it. I'll update it soon.
  4. Contacta con soporte ya que te pueden haber limitado la conexión.
  5. 0xCiBeR

    dxDrawText

    Eso mismo dije, de nada!
  6. 0xCiBeR

    dxDrawText

    bool dxDrawText ( string text, float left, float top [, float right=left, float bottom=top, int color=white, float scale=1, mixed font="default", string alignX="left", string alignY="top", bool clip=false, bool wordBreak=false, bool postGUI=false, bool colorCoded=false, bool subPixelPositioning=false, float fRotation=0, float fRotationCenterX=0, float fRotationCenterY=0 ] ) El argumento colorCoded ponlo a true.
  7. 0xCiBeR

    [Help] Slothbot

    Start slothbot resource first.
  8. 0xCiBeR

    [Help] Slothbot

    bot1 = exports["slothbot"]:spawnBot ( x + 5, y, z, 0, math.random ( 1, 312 ), 0, 0, nil, math.random ( 333, 339 ), "chasing" )
  9. En realidad si, depende de los recursos de tu VPS, pero en el caso de linux el cache de archivos se estropea si pasas mucho tiempo sin dar /refresh en tu servidor. Recuerdo haberlo leído en el bugtracker.
  10. Yo usaría shaders, pero puedes usar los argumentos de faceToward que son los ultimos 3.
  11. Si con eso debería funcionarte, sino proba agregarle tambien \r pero eso te generaría dos renglones en algunos programas que leen tanto \n como \r De nada
  12. local file = fileOpen("REP.log") if not file then file = fileCreate("REP.log") outputDebugString("Creating REP.log") end fileSetPos ( file, fileGetSize ( file ) ) local written = fileWrite( file, ""..chatterName .. " ("..ussser..") envio " ..quantity.." "..item.." a " ..pName.."\n") fileFlush(file) fileClose(file)
  13. function startgetTickCount() start = getTickCount() end addEventHandler ( "onClientResourceStart", root, startgetTickCount) local max = 2000 -- Definir valor maximo local count = 0 -- Definimos el contador local alpha = 255 function Linea() if count < max then now = getTickCount() count = now - start else end if alpha > 0 then alpha = alpha - 0.10 else end dxDrawRectangle ((1110/mi_x)*user_x, (200/mi_y)*user_y, (count/8/mi_x)*user_x, (30/mi_y)*user_y, tocolor( 0, 0, 0, alpha), false ) dxDrawRectangle ((1100/mi_x)*user_x, (200/mi_y)*user_y, (10/mi_x)*user_x, (30/mi_y)*user_y, tocolor( 0, 255, 0, alpha), false ) dxDrawTextPerLetter ( 'Has comprado una Pizza-HEAL', (1150/mi_x)*user_x, (207/mi_y)*user_y, (0/mi_x)*user_x, (30/mi_y)*user_y, tocolor ( 255, 255, 255, alpha ), 1, "default-bold" ) end addEventHandler("onClientRender", root, Linea) setTimer (function() removeEventHandler("onClientRender",root,Linea) end, 3000, 1)
  14. onMarkerHit getElementVelocity or getElementSpeed
  15. function startgetTickCount() start = getTickCount() end addEventHandler ( "onClientResourceStart", root, startgetTickCount) local max = 10 -- Definir valor maximo local count = 0 -- Definimos el contador function Linea() if count < max then now = getTickCount() count = now - start else end dxDrawRectangle ((1360/mi_x)*user_x, (200/mi_y)*user_y, (count/-8/mi_x)*user_x, (30/mi_y)*user_y, tocolor( 0, 0, 0, 150), false ) end addEventHandler("onClientRender", root, Linea)
  16. Usar interpolateBetween para una interpolación linear es ineficiente por el consumo que usa esa función. Para algo lineal, lo mejor es o aumentar una variable, o usar getTickCount para establecer posición. @Smoke, intenta hacerlo como te explique, si no te funciona, te ayudaremos a corregirlo. Es muy sencillo, simplemente usa condicionales y en vez de sumar +5, utiliza un valor menor como +0.01
  17. Si es algo lineal podes utilizar getTickCount o simplemente aumentar o reducir tu variable usando condicionales. Recuerda que onClientRender se ejecuta hasta 100 veces por segundo, por lo tanto, si aumentas la variable +5 se va a salir de la pantalla en un abrir y cerrar de ojos.
  18. Lo mas fácil sería borrar tu internal.db y luego reiniciar el servidor y ejecutar el comando /svp Podes agregar mas spawns de vehículos desde el editor_server.lua
  19. We are using a free webhost for the moment. Soon we will have a stable webserver and domain with SSL Encryption.
×
×
  • Create New...