Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinActive, GTA:SA:MP
- #Include API.ahk
- #NoEnv
- #UseHook
- IniRead, bind1, Binds.ini, Keys, bind1
- IniRead, bind2, Binds.ini, Keys, bind2
- Gui, Add, Text, x142 y39 w200 h40 , /tazer
- Gui, Add, Button, x42 y399 w380 h30 gInfoschliessen, Info schliessen
- Gui, Add, Button, x42 y440 w380 h30 gHSpeichern, Speichern
- Gui, Add, Hotkey, x42 y39 w80 h20 vbind1,%bind1%
- Gui, Add, Hotkey, x42 y89 w80 h20 vbind2,%bind2%
- Gui, Show, w698 h476, SAMP PD Keybinder
- If(Bind1 != "" && Bind1 != "ERROR" && Bind1 != "Unbekannt")
- Hotkey, %Bind1%, Hotkey1, on
- If(Bind2 != "" && Bind2 != "ERROR" && Bind2 != "Unbekannt")
- Hotkey, %Bind2%, Hotkey2, on
- return
- HSpeichern:
- Gui, submit, nohide
- IniWrite, %bind1%, Binds.ini, Keys, bind1
- IniWrite, %bind2%, Binds.ini, Keys, bind2
- return
- Infoschliessen:
- Gui Cancel
- return
- GuiClose:
- ExitApp
- Hotkey1:
- if(isInChat() == 1)
- {
- SendInput, {%A_ThisHotkey%}
- return
- }
- SendChat("/tazer")
- return
- Hotkey2:
- if(isInChat() == 1)
- {
- SendInput, {%A_ThisHotkey%}
- return
- }
- SendInput t/freilassen{space}
- Input, Prompt, V M, {enter}
- sleep 100
- SendInput t/festnehmen %prompt%{enter}
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement