Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. function playerListKeyPressed ( key, state )
  2.  
  3. if state == "down" and not getElementData(localPlayer,"Tactic") then
  4. radioUpState = isControlEnabled ( "radio_next" )
  5. radioDownState = isControlEnabled ( "radio_prelaus" )
  6. weaponUpState = isControlEnabled ( "next_weapon" )
  7. weaponDownState = isControlEnabled ( "prelaus_weapon" )
  8.  
  9. toggleControl ( "radio_next", false )
  10. toggleControl ( "radio_prelaus", false )
  11. toggleControl ( "next_weapon", false )
  12. toggleControl ( "prelaus_weapon", false )
  13.  
  14. if isTimer ( playerListUpdateTimer ) then
  15. killTimer ( playerListUpdateTimer )
  16. end
  17. scollBarAdjustTimer = setTimer ( reAdjustPlayerListScollBar, 50, 0 )
  18. bindKey ( "mouse_wheel_up", "down", playerListScrollUp )
  19. bindKey ( "mouse_wheel_down", "down", playerListScrollDown )
  20. showPlayerList ()
  21. elseif not getElementData(localPlayer,"Tactic") then
  22. toggleControl ( "radio_next", radioUpState )
  23. toggleControl ( "radio_prelaus", radioDownState )
  24. toggleControl ( "next_weapon", weaponUpState )
  25. toggleControl ( "prelaus_weapon", weaponDownState )
  26.  
  27. killTimer ( scollBarAdjustTimer )
  28. unbindKey ( "mouse_wheel_up", "down", playerListScrollUp )
  29. unbindKey ( "mouse_wheel_down", "down", playerListScrollDown )
  30. guiSetVisible ( gImage["playerList"], false )
  31. end
  32. end
  33. bindKey ( "tab", "both", playerListKeyPressed )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement