Jump to content

Que està mal en este script?


NodZen

Recommended Posts

Posted (edited)

Amigos , hice este script para que cuando el player entra al servidor , aparezca una "intro" que es una imagen. Pero cuando aprieto el bindKey no se cierra.... Fijense que està mal

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

Gracias. 8)

Edited by Guest

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

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

Tema movido a "Scripting".

@On topic:

Yo no veo nada mal en tu script, deberia destruir la imagen si esta existe.

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