Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function GM:KeyPress( ply, key )
  2. if ( key == IN_MOVELEFT ) then
  3. RunConsoleCommand( "+left", "1" )
  4. end
  5. end
  6.  
  7. function GM:KeyRelease( player, key )
  8. if ( key == IN_MOVELEFT ) then
  9. RunConsoleCommand( "-left", "0" )
  10. end
  11. end
  12.  
  13. function GM:KeyPress( ply, key )
  14. if ( key == IN_MOVERIGHT ) then
  15. RunConsoleCommand( "+right", "1" )
  16. end
  17. end
  18.  
  19. function GM:KeyRelease( player, key )
  20. if ( key == IN_MOVERIGHT ) then
  21. RunConsoleCommand( "-right", "0" )
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement