Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. #IfWinActive, GTA:SA:MP
  2.  
  3. #Include API.ahk
  4. #NoEnv
  5. #UseHook
  6.  
  7. IniRead, bind1, Binds.ini, Keys, bind1
  8. IniRead, bind2, Binds.ini, Keys, bind2
  9. Gui, Add, Text, x142 y39 w200 h40 , /tazer
  10. Gui, Add, Button, x42 y399 w380 h30 gInfoschliessen, Info schliessen
  11. Gui, Add, Button, x42 y440 w380 h30 gHSpeichern, Speichern
  12. Gui, Add, Hotkey, x42 y39 w80 h20 vbind1,%bind1%
  13. Gui, Add, Hotkey, x42 y89 w80 h20 vbind2,%bind2%
  14. Gui, Show, w698 h476, SAMP PD Keybinder
  15. If(Bind1 != "" && Bind1 != "ERROR" && Bind1 != "Unbekannt")
  16. Hotkey, %Bind1%, Hotkey1, on
  17.  
  18. If(Bind2 != "" && Bind2 != "ERROR" && Bind2 != "Unbekannt")
  19. Hotkey, %Bind2%, Hotkey2, on
  20. return
  21.  
  22.  
  23. HSpeichern:
  24. Gui, submit, nohide
  25. IniWrite, %bind1%, Binds.ini, Keys, bind1
  26. IniWrite, %bind2%, Binds.ini, Keys, bind2
  27. return
  28.  
  29. Infoschliessen:
  30. Gui Cancel
  31. return
  32.  
  33. GuiClose:
  34. ExitApp
  35.  
  36.  
  37. Hotkey1:
  38. if(isInChat() == 1)
  39. {
  40. SendInput, {%A_ThisHotkey%}
  41. return
  42. }
  43. SendChat("/tazer")
  44. return
  45.  
  46. Hotkey2:
  47. if(isInChat() == 1)
  48. {
  49. SendInput, {%A_ThisHotkey%}
  50. return
  51. }
  52. SendInput t/freilassen{space}
  53. Input, Prompt, V M, {enter}
  54. sleep 100
  55. SendInput t/festnehmen %prompt%{enter}
  56. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement