~Funky~ Posted May 24, 2013 Share 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: Link to comment
Alexs Posted May 24, 2013 Share Posted May 24, 2013 Especifica mas en eso de 'apretar 2 botones'. Link to comment
Castillo Posted May 24, 2013 Share 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. Link to comment
~Funky~ Posted May 24, 2013 Author Share 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? Link to comment
Castillo Posted May 24, 2013 Share Posted May 24, 2013 Simplemente usa un bind como el que tenes y luego usas: getKeyState Link to comment
~Funky~ Posted May 26, 2013 Author Share 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. Link to comment
Castillo Posted May 26, 2013 Share Posted May 26, 2013 Simplemente verifica si la tecla esta presionada con getKeyState. Link to comment
FraN-724 Posted May 26, 2013 Share 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) Link to comment
~Funky~ Posted May 26, 2013 Author Share 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 Link to comment
Recommended Posts