bindKey('F1','down',
function ( )
if not guiGetVisible ( wnd ) then
bindKey ( 'num_1', 'down', Health )
bindKey ( 'num_2', 'down', kill )
guiSetVisible ( wnd, true )
showCursor ( true )
else
guiSetVisible ( wnd, false )
showCursor ( false )
unbindKey ( 'num_1', 'down', Health )
unbindKey ( 'num_2', 'down', kill )
end
end
)
function Health ( )
setElementHealth ( localPlayer, 100 )
end
function kill ( )
setElementHealth ( localPlayer, 0 )
end