~Funky~ Posted May 24, 2013 Posted May 24, 2013 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 . 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:
Alexs Posted May 24, 2013 Posted May 24, 2013 Especifica mas en eso de 'apretar 2 botones'. Developer @ MYVAL
Castillo Posted May 24, 2013 Posted May 24, 2013 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. Education is the most powerful weapon which you can use to change the world.
~Funky~ Posted May 24, 2013 Author Posted May 24, 2013 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 Me Podrian Ayudar?
Castillo Posted May 24, 2013 Posted May 24, 2013 Simplemente usa un bind como el que tenes y luego usas: getKeyState San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
~Funky~ Posted May 26, 2013 Author Posted May 26, 2013 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.
Castillo Posted May 26, 2013 Posted May 26, 2013 Simplemente verifica si la tecla esta presionada con getKeyState. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
FraN-724 Posted May 26, 2013 Posted May 26, 2013 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)
~Funky~ Posted May 26, 2013 Author Posted May 26, 2013 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
Castillo Posted May 26, 2013 Posted May 26, 2013 De nada. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts