Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function playerListKeyPressed ( key, state )
- if state == "down" and not getElementData(localPlayer,"Tactic") then
- radioUpState = isControlEnabled ( "radio_next" )
- radioDownState = isControlEnabled ( "radio_prelaus" )
- weaponUpState = isControlEnabled ( "next_weapon" )
- weaponDownState = isControlEnabled ( "prelaus_weapon" )
- toggleControl ( "radio_next", false )
- toggleControl ( "radio_prelaus", false )
- toggleControl ( "next_weapon", false )
- toggleControl ( "prelaus_weapon", false )
- if isTimer ( playerListUpdateTimer ) then
- killTimer ( playerListUpdateTimer )
- end
- scollBarAdjustTimer = setTimer ( reAdjustPlayerListScollBar, 50, 0 )
- bindKey ( "mouse_wheel_up", "down", playerListScrollUp )
- bindKey ( "mouse_wheel_down", "down", playerListScrollDown )
- showPlayerList ()
- elseif not getElementData(localPlayer,"Tactic") then
- toggleControl ( "radio_next", radioUpState )
- toggleControl ( "radio_prelaus", radioDownState )
- toggleControl ( "next_weapon", weaponUpState )
- toggleControl ( "prelaus_weapon", weaponDownState )
- killTimer ( scollBarAdjustTimer )
- unbindKey ( "mouse_wheel_up", "down", playerListScrollUp )
- unbindKey ( "mouse_wheel_down", "down", playerListScrollDown )
- guiSetVisible ( gImage["playerList"], false )
- end
- end
- bindKey ( "tab", "both", playerListKeyPressed )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement