Jump to content

podria poner gif ?


AlvareZ_

Recommended Posts

Posted

usaria solo esto ?

gif = dxDrawGifImage ( 769, 175, 193, 145, "images/flag_arg", 0, "png", 120 ) 
  
addCommandHandler ( "destroygif", 
    function ( ) 
        destroyElement ( gif ) 
    end 
) 

bandera_de_Venezuela.png

Posted

Si, con eso deberia funcionar.

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

No, "png" es la extension de las imagenes ( los sprites ).

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
gif = dxDrawGifImage ( 769, 175, 193, 145, "imagen", 0, "png", 120 ) 
  
addCommandHandler ( "destroygif", 
    function ( ) 
        destroyElement ( gif ) 
    end 
) 

no me anda, y ya agrege la imagen a el archivo

bandera_de_Venezuela.png

Posted

Cargaste todas las imagenes en el archivo: meta.xml y se llaman asi?

imagen1.png

imagen2.png

imagen3.png

etc

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

Me parece que no entendes como funciona, esa funcion no es para usar .gif es para SIMULAR su efecto.

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

meta.xml:

    "images/flag_arg0.png" /> 
    "images/flag_arg1.png" /> 
    "images/flag_arg2.png" /> 
    "images/flag_arg3.png" /> 

script:

gif = dxDrawGifImage ( 769, 175, 193, 145, "images/flag_arg", 0, "png", 600 ) 

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

client:

gif = dxDrawGifImage ( 769, 175, 193, 145, "imagen", 0, "png", 120 ) 
  
addCommandHandler ( "destroygif", 
    function ( ) 
        destroyElement ( gif ) 
    end 
) 

meta:

    "gif" author="alvarez" version="1.0" /> 
    

bandera_de_Venezuela.png

Posted

SON MUCHAS IMAGENES, NO SOLO UNA.

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

No, muchas imagenes, son sprites, si no sabes que son, buscalo en google, yo ya me aburri de explicarlo.

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

ams les muestro un ejemplo de mi gif con la funcion de solid :P

  
  
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 ( -20, 450, 105, 75, "img/logo", 1, "png", 50 ) 
  

el meta :

    "ElMota" name="logo" version="0.1" type="script"/> 
    

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
  • Recently Browsing   0 members

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