function showGUI(theplayer)
local id = getElementModel ( theplayer )
if id == 0 then
if ( theplayer == localPlayer ) then
Ventana = guiCreateWindow(179, 161, 335, 130, "Sistema de Musculatura", false )
guiWindowSetSizable(Ventana, false)
FlechaIzq = guiCreateButton(10, 55, 30, 31, "<", false, Ventana)
guiSetProperty(FlechaIzq, "NormalTextColour", "FFAAAAAA")
Ejer = guiCreateButton(127, 55, 94, 32, "EJERCITARME", false, Ventana)
guiSetProperty(Ejer, "NormalTextColour", "FFAAAAAA")
Cerrar = guiCreateButton(305, 103, 20, 17, "x", false, Ventana)
guiSetProperty(Cerrar, "NormalTextColour", "FFAAAAAA")
showCursor ( true )
addEventHandler ( "onClientGUIClick", Cerrar, Exit, false )
addEventHandler ( "onClientGUIClick", FlechaIzq, Ayuda, false )
addEventHandler ( "onClientGUIClick", Ejer, Ejercitar, false )
end
end
end
addEventHandler( "onClientMarkerHit", marker, showGUI )
function Exit ()
guiSetVisible ( Ventana, not guiGetVisible ( Ventana) )
showCursor ( false )
end
function Ayuda ()
VentanaHelp = guiCreateWindow(10, 161, 163, 130, "Ayuda", false)
guiWindowSetSizable(VentanaHelp, false)
guiSetAlpha(VentanaHelp, 0.72)
FlechaDer = guiCreateButton(138, 56, 15, 22, ">", false, VentanaHelp)
guiSetProperty(FlechaDer, "NormalTextColour", "FFAAAAAA")
showCursor ( true )
addEventHandler ( "onClientGUIClick", FlechaDer, ExitAy, false )
end
function ExitAy()
guiSetVisible ( VentanaHelp, not guiGetVisible ( VentanaHelp) )
end
:'B