Jump to content

Ayuda con Logo


Recommended Posts

Posted

ok Chicos. Quisiera saver Si ustedes me pueden ayudar aca, para que esta imagen salga en la pantalla cada determinado tiempo, por ejemplo: Que salga cada 5 Minutos y desaparesca...

lo demas esta bien.. la hubicacion etc...

addEventHandler("onClientResourceStart",resourceRoot, 
    function() 
  
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
    end 
) 

Posted
function Nomnre() 
  
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
end 
  
setTimer(destroyElement, 8000, 0, Logo) 
setTimer(Nomnre, 3000, 0 ) 

No lo comprobé

pero es mas o menos asi

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
function Nomnre() 
  
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
end 
  
setTimer ( function() 
        destroyElement(Logo) 
    end, 8000, 1 ) 
  
setTimer(Nomnre, 3000, 0 ) 

bandera_de_Venezuela.png

Posted

Y sino intenta asi:

function Nomnre() 
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
end 
  
setTimer ( function() 
        guiSetVisible(Logo, true) 
        setTimer(guiSetVisible, 3000, 1, Logo, false) 
    end, 8000, 0 ) 

State: Inactive

  • MTA Team
Posted

Usa el que te dio sasuke...Ese no usa destroyElement... (reemplaza todo por eso)

Y sino intenta asi:
function Nomnre() 
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
end 
  
setTimer ( function() 
        guiSetVisible(Logo, true) 
        setTimer(guiSetVisible, 3000, 1, Logo, false) 
    end, 8000, 0 ) 

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted

Eso es porque nunca creaste la imagen. Intenta asi:

function Nomnre() 
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
        guiSetVisible(Logo, false) 
end 
addEventHandler("onClientResourceStart", resourceRoot, Nomnre) 
  
setTimer ( function() 
        guiSetVisible(Logo, true) 
        setTimer(guiSetVisible, 3000, 1, Logo, false) 
    end, 8000, 0 ) 

State: Inactive

  • 3 weeks later...
Posted (edited)

Solo reemplazas el evento "onClientResourceStart" por este "onClientPlayerWasted" , te quedaría así:

function Nomnre(killer, weapon, bodypart) 
        Logo = guiCreateStaticImage(218,513,384,82,"images/logo1.png",false) 
        guiSetVisible(Logo, false) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), Nomnre) 
  
setTimer ( function() 
        guiSetVisible(Logo, true) 
        setTimer(guiSetVisible, 3000, 1, Logo, false) 
    end, 8000, 0 ) 

Edited by Guest

Bc Media Clan XPG Foro
mtasa://104.223.20.159:21003

Posted

Si lo dejas con: "resourceRoot", entonces se creara la imagen al morir cualquier jugador, no solo el cliente.

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
Si lo dejas con: "resourceRoot", entonces se creara la imagen al morir cualquier jugador, no solo el cliente.

No havia notado eso xD gracias por la correccion solid.

@Anyelberth edité el comentario prueba con eso

Bc Media Clan XPG Foro
mtasa://104.223.20.159:21003

Posted

Mira en gui yo no soy el mejor de los expertos pero te hice el mismo script pero en dx espero te funcione.

function Nomnre(killer, weapon, bodypart) 
  
    addEventHandler("onClientRender", getLocalPlayer(), drawImage) 
     
    setTimer ( function() 
        removeEventHandler ( "onClientRender", getLocalPlayer(), drawImage ) 
    end, 8000, 0 ) 
end 
addEventHandler("onClientPlayerWasted", getLocalPlayer(), Nomnre) 
  
  
function drawImage() 
    dxDrawImage ( 218,513,384,82,"images/logo1.png") 
end 
  
  
  

Bc Media Clan XPG Foro
mtasa://104.223.20.159:21003

  • MTA Team
Posted
No Me Funciona :/

Lo has puesto client-side no?

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
  • Recently Browsing   0 members

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