Jump to content

2 Bind Key


~Funky~

Recommended Posts

Posted

Antes Que Todo, Hola Soy Nuevo En La Comunidad y Estoy Aprendiendo LUA Para Crear Mi Propio Server, Se Los Conocimientos Basicos y Espero Aprender Mucho Mas :D .

Ahora El Problema :( :

Tengo un Problema Con Un Panel Quiero Que Se Habra Mi Panel Al Apretar 2 Botones pero No Se Como me Podrian Ayudar?

Aca El Bind Que Tengo :

bindKey ( "V", "down", 
function () 
if ( guiGetVisible ( Windvip ) == true ) then 
guiSetVisible ( Windvip, false ) 
showCursor(false) 
else               
guiSetVisible ( Windvip, true ) 
showCursor(true) 
end 
end) 

Desde Ya Muchas Gracias c:

34zy9gy.png
Posted

Me parece que quiere algo asi como: tocas CTRL + V y se abre el panel, no se si estoy en lo cierto.

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 quiere algo asi como: tocas CTRL + V y se abre el panel, no se si estoy en lo cierto.

Si A Eso Me Refiero :D Me Podrian Ayudar?

34zy9gy.png
Posted

Simplemente usa un bind como el que tenes y luego usas:

getKeyState 

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
Simplemente usa un bind como el que tenes y luego usas:
getKeyState 

Perdon por responder recien. Solid Nose o no Puedo Unir el

getKeyState 

con mi bind me puedes ayudar para saber como debe ir porfavor te lo agradeceria mucho.

34zy9gy.png
Posted

Simplemente verifica si la tecla esta presionada con getKeyState.

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

Intento esto.

  
  
function open() 
    if getKeyState( "lctrl" ) == true or getKeyState( "rctrl" ) == true then 
        if ( guiGetVisible ( Windvip ) == true ) then 
            guiSetVisible ( Windvip, false ) 
            showCursor(false) 
            else               
            guiSetVisible ( Windvip, true ) 
            showCursor(true) 
        end 
    end 
end 
  
bindKey ("V", "down", open) 

Posted
Intento esto.
  
  
function open() 
    if getKeyState( "lctrl" ) == true or getKeyState( "rctrl" ) == true then 
        if ( guiGetVisible ( Windvip ) == true ) then 
            guiSetVisible ( Windvip, false ) 
            showCursor(false) 
            else               
            guiSetVisible ( Windvip, true ) 
            showCursor(true) 
        end 
    end 
end 
  
bindKey ("V", "down", open) 

Si Me Sirvio Muchas Gracias FraN y Solid :D

34zy9gy.png
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...