-
Posts
754 -
Joined
-
Last visited
Everything posted by NodZen
-
Es asi. slothbot = exports [ "slothbot" ]:spawnBot ( 111.79273223877, 1336.3046875, 10.5859375, 90, math.random ( 300, 303 ), 0, 0, Boss, 38, "hunting", true ) Lo editas a tu gusto.
-
Traducela con google. Pero los codigo digamos, si o si van en ingles.
-
Hola ,Bienvenido!. Bueno para eso te dejo la wiki del slothbot. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
-
rayos >.<, ok, podrias decirme que ocupo para hacerlo? getElementsByType getElementPosition , getLocalPlayer getPedArmor getElementHealth dxDrawRectangle Creo que me falta una mas. Pero no me acuerdo.
-
Y no ahi otro que sirva? o tendria que hacer un scrip desde Cero? La verdad nose si hay otro. Mejor hacè uno desde 0 a tu gusto! =D
-
Ese Resource tiene un script llamado 'clientc' , y està configurado para que funcione con los zombies. Y como està codificado no lo puedo ver. Por eso no funciona el sript. Tambien puedes probar cambiar la parte que dice 'slothbot' por ped.
-
Este 'spawn' es bastante complicado por decirlo asi. Ya que si haya un espacio de mas ya no funcion. Asi que tendràs que crear un script aparte y si quieres agregalo al Resource este. Suerte Y agrega al script como Server.
-
Creo que no tienen nada que ver que sea la version '1.2.0' . Tienes que hacer un script que le dè al player el Level asi funcion el script que te paso Solidsnake.
-
No creas. Si juegas al "Xlatino" , te das cuenta que tiene muchos resources de la comunidad. No es la gran cosa.
-
Y lo del "rank" , usa el Scoreboard para agregar la columna.
-
Hola , es facil. Esos no son ranks , son teams y los players que esta en ese team. Puedes hacerlo privado, es facil.
-
Solucion: dxDrawText ( tostring(math.floor(armadura+0.1)), 32, screenHeight - 100, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 0.5, "bankgothic" ) Editè los S
-
I think you can not do that you want.
-
si se acomoda 1, en otra resolucion se aparece en otro lada
-
Ok , lo voy a ir editanto haber si puedo arreglarlo. Edit: Lo mismo me pasa con este. sWidth, sHeight = guiGetScreenSize() function dxDrawGifImage ( x, y, w, h, path, iStart, iType, effectSpeed ) local gifElement = createElement ( "dx-gif" ) if ( gifElement ) then setElementData ( gifElement, "gifData", { x = x, y = y, w = w, h = h, imgPath = path, startID = iStart, imgID = iStart, imgType = iType, speed = effectSpeed, tick = getTickCount ( ) } ) return gifElement else return false end end addEventHandler ( "onClientRender", root, function ( ) local currentTick = getTickCount ( ) for index, gif in ipairs ( getElementsByType ( "dx-gif" ) ) do local gifData = getElementData ( gif, "gifData" ) if ( gifData ) then if ( currentTick - gifData.tick >= gifData.speed ) then gifData.tick = currentTick gifData.imgID = ( gifData.imgID + 1 ) if ( fileExists ( gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) ) then gifData.imgID = gifData.imgID setElementData ( gif, "gifData", gifData ) else gifData.imgID = gifData.startID setElementData ( gif, "gifData", gifData ) end end dxDrawImage ( gifData.x, gifData.y, gifData.w, gifData.h, gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) end end end ) gif = dxDrawGifImage ( 1200, 5, 70, 80, "images/Frame", 0, "png", 50 )
-
Pero eso crearia el DX con todas las resoluciones , pero no con es pos especificas?
-
Pero no tendria que funcionar con todas las resoluciones?
-
En 1440x900 si aparece , pero arriba. En las otras resoluciones No.
-
No solid, Ahora no aparece en ninguna resolucion. Probè los 2 y nada.
-
Hola amigos, Tengo un script que ya habia pregutnado aqui. Pero ahora no se crea en la pos correcta. Miren sWidth, sHeight = guiGetScreenSize() function nose ( ) jugador = getLocalPlayer() local armadura = getPedArmor(jugador) dxDrawText ( tostring(math.floor(armadura+0.1)).."%", 1320, sHeight - 47, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) end function ver ( ) addEventHandler ( "onClientRender", root, nose ) end addEventHandler ( "onClientResourceStart", resourceRoot, ver ) function vve ( ) jugador = getLocalPlayer() local vida = getElementHealth(jugador) dxDrawText ( tostring(math.floor(vida+0.1)).."%", 1300, sHeight - 28, sWidth, sHeight, tocolor ( 255, 255, 255, 255 ), 0.4, "bankgothic" ) end function salu ( ) addEventHandler ( "onClientRender", root, vve ) end addEventHandler ( "onClientResourceStart", resourceRoot, salu ) Tendria que poner el dx en la misma pos con todas las resoluciones. Yo uso 1440 y cuando pruevo con 800x600 o 1024 se crea el dx en otro lado... Alguna ayuda. PD Ya tengo un script asi y funciona bien pero a este nose que le pasa
-
Agregaste un evento para activar la funcion?
-
Creo que es esta parte: No estoy seguro for k, myPed in pairs( getElementsByType("slothbot") ) do local px, py, pz = getElementPosition( getLocalPlayer() ) local x, y, z = getPedBonePosition(myPed, 2) if isElementOnScreen( myPed ) and getDistanceBetweenPoints2D(px, py, x, y) < 45 and getElementHealth(myPed) > 0 then local X, Y = getScreenFromWorldPosition( x, y, z ) if X then local arm = getPedArmor( myPed ); local health = getElementHealth( myPed ); local lineLength = 56 * ( health / 100 ); dxDrawRectangle( X - 30, Y - 130, 60, 10, tocolor( 0, 0, 0, 255), 10 ); dxDrawRectangle( X - 28, Y - 128, lineLength, 6, tocolor( 255, 0, 0, 200 ), 6 ); if arm ~= 0 then local lineLengthArm = 56 * ( arm / 100 ); dxDrawRectangle( X - 30, Y - 142, 60, 10, tocolor( 0, 0, 0, 255), 10 ); dxDrawRectangle( X - 28, Y - 140, lineLengthArm, 6, tocolor( 255, 255, 255, 200 ), 6 ); end local BotName = getElementData(myPed, 'BotName'); if not BotName then BotName = 'Zombi' end local namelen = string.len(BotName) dxDrawText( tostring(BotName), X - (3.5 * namelen), Y - 160, X - (3.5 * namelen), Y - 160, tocolor ( 255, 255, 255, 255 ), 1, "default-bold") end end end Probà asi.. Haber si funciona.
