-
Posts
1,673 -
Joined
-
Last visited
-
Days Won
6
Everything posted by 0xCiBeR
-
[Problema] Reinicios en 1.5
0xCiBeR replied to Narutimmy's topic in Ayuda relacionada al cliente/servidor
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. -
https://community.multitheftauto.com/index.php?p= ... ls&id=9655 Ahi tenes una base.
-
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.
-
Suerte con tu proyecto!
-
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.
-
Start slothbot resource first.
-
bot1 = exports["slothbot"]:spawnBot ( x + 5, y, z, 0, math.random ( 1, 312 ), 0, 0, nil, math.random ( 333, 339 ), "chasing" )
-
Yo usaría shaders, pero puedes usar los argumentos de faceToward que son los ultimos 3.
-
dxDrawMaterialLine3D
-
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
-
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)
-
A través del mtaserver.conf
-
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)
-
Post the code.
-
onMarkerHit getElementVelocity or getElementSpeed
-
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)
-
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
-
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.
-
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
-
We are using a free webhost for the moment. Soon we will have a stable webserver and domain with SSL Encryption.
