Jump to content

Function Simple!


Chaz-CR

Recommended Posts

Posted

Hola, simplemente me gustaria bindear una misma letra asi como abre un panel cerrarlo sin necesidad de tocar un boton (cerrar) Gracias. aca el ejemplo de abrir un panel etc.

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        bindKey("r", "down", clientToggleRadio) 

430x73_338AC4_FFFFFF_000000_000000.png

||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons||

http://facebook.com/AoBMTA - Fanpage

Posted

El panel es GUI? si es asi, entonces usa guiGetVisible para obtener el estado, si esta visible, lo ocultas, y si no, lo mostras.

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

Espero que esto te ayude c:

estado = 0 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
bindKey("r", "down", 
function() 
if estado == 0 then 
radio = playSound("linkdelaradio") 
setSoundVolume(radio, 100) 
setRadioChannel(0) 
estado = 1 
elseif estado == 1 then 
stopSound(radio) 
estado = 0 
end 

~ProtoN!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...