Jump to content

Como hago esto?


NodZen

Recommended Posts

Posted

Hola amigos de la comunidad . Tengo un proble/duda sobre mi script. Se trata de que cuando un player entra al server , le aparezca una imagen y que cuando aprieten la bingKEY se la cierre. Pero otro script que tengo (un login/register) no me deja cerrar esta ventana. El problema es que como puedo hacer para que esta imagen de desbanesca o se cierre sola a los 3 o 5 segundos se aparecerse..

Les dejo el guion y fijense si me pueden ayuda porque no tengo la minima idea de como acerlo .

NOTA: Este es mi primer script...

function showClientImage() 
    myImage = guiCreateStaticImage( 0.0,0.0,1279.0,767.0, "images/image.png", true ) 
end 
addEventHandler( "onClientResourceStart", resourceRoot, showClientImage ) 
  
function hideClientImage() 
    if isElement ( myImage ) then destroyElement ( myImage ) end 
end 
bindKey("space", "down", hideClientImage) 

:D

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

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
function showClientImage() 
    myImage = guiCreateStaticImage( 0.0,0.0,1279.0,767.0, "images/image.png", true ) 
    setTimer ( destroyElement, 5000, 1, myImage ) 
end 
addEventHandler( "onClientResourceStart", resourceRoot, showClientImage ) 

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
function showClientImage() 
    myImage = guiCreateStaticImage( 0.0,0.0,1279.0,767.0, "images/image.png", true ) 
    setTimer ( destroyElement, 5000, 1, myImage ) 
end 
addEventHandler( "onClientResourceStart", resourceRoot, showClientImage ) 

Gracias Solid. Funciona a la perfeccion.

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

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

De nada.

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...