Jump to content

Duda simple


NodZen

Recommended Posts

Posted

Hola amigos , quiero saber si se puede poner un gif en un server. Intente pasar un gif a formato .png pero no funciona. Es posible poner un gif? algo asi como un showImage.

Gracias

------------------------------------------------------------------------------------------

My scripts

http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977

http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740

Posted

debes desintegrar la imagen gif con cada una de sus imagenes.

Y debes hacer el codigo para que muestre una imagen tras de otra

fijate el video en el logo biohazard

suerte :)

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Yo habia creado una funcion para simular un .gif, aca les dejo el codigo:

local gifs = { } 
local gifTimers = { } 
  
function dxDrawGifImage ( x, y, w, h, name, cStart, cEnd, cCurrent, iType, timerSpeed ) 
    local i = ( #gifs + 1 ) 
    gifs [ i ] = { x, y, w, h, name, cStart, cEnd, cCurrent, iType } 
    gifTimers [ i ] = setTimer ( 
        function ( )  
            gifs [ i ] [ 8 ] = ( gifs [ i ] [ 8 ] + 1 ) 
            if ( gifs [ i ][ 8 ] >= gifs [ i ] [ 7 ] ) then  
                gifs [ i ] [ 8 ] = gifs [ i ] [ 6 ]  
            end 
        end 
  
        ,timerSpeed or 150, 0 
    ) 
     
    return i 
end 
  
function dxGifDestroy ( index ) 
    gifs [ index ] = nil 
end 
  
addEventHandler ( "onClientRender", root, 
    function ( ) 
        for index, gif in ipairs ( gifs ) do 
            dxDrawImage ( gif [ 1 ], gif [ 2 ], gif [ 3 ], gif [ 4 ], "images/".. gif [ 5 ] .."".. gif [ 8 ] ..".".. gif [ 9 ] ) 
        end 
    end 
) 
  
dxDrawGifImage ( 769, 175, 193, 145, "flag_arg", 0, 3, 0, "png", 150 ) 
dxDrawGifImage ( 769, 305, 193, 145, "flag_usa", 0, 3, 0, "png", 150 ) 

Lo hice hace meses y asi rapido, asi que puede que no funcione bien :P.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Los .gif no estan soportados en MTA, son para sprites, osea varias imagenes.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

aah Ok, otra cosa, cuando pongo una imagen .png en MTA con fondo blanco , ( para que este transparente el fondo ), el fondo no es transparente es blanco, como podria solucionar esto ?

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

Conseguite el PaintNet y edita la imagen, eso es lo que yo hago.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...