Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #IfWinActive, GTA:SA:MP
  2. #Include SAMP.ahk
  3. #Include position.ahk
  4. #Persistent
  5. #UseHook
  6. #SingleInstance Force
  7. #NoEnv
  8.  
  9. SetTimer, ReadChat, 100
  10.  
  11. ;INI READ
  12. IniRead, 200s, settings.ini, Bomben_Timer, 200s
  13. IniRead, 300s, settings.ini, Bomben_Timer, 300s
  14. IniRead,taste_1,settings.ini,Keybinds, taste_1
  15. IniRead,taste_2,settings.ini,Keybinds, taste_2
  16. IniRead,taste_3,settings.ini,Keybinds, taste_3
  17. IniRead,taste_4,settings.ini,Keybinds, taste_4
  18. IniRead,taste_5,settings.ini,Keybinds, taste_5
  19. IniRead,taste_6,settings.ini,Keybinds, taste_6
  20. IniRead,taste_10,settings.ini,Keybinds, taste_10
  21. IniRead,taste_11,settings.ini,Keybinds, taste_11
  22.  
  23. ; OWNKEYS
  24. IniRead,ownkey_1,settings.ini,OwnKeys, ownkey_1
  25. IniRead,ownkey_2,settings.ini,OwnKeys, ownkey_2
  26. IniRead,ownkey_3,settings.ini,OwnKeys, ownkey_3
  27. IniRead,ownkey_4,settings.ini,OwnKeys, ownkey_4
  28. IniRead,ownkey_5,settings.ini,OwnKeys, ownkey_5
  29. IniRead,ownkey_6,settings.ini,OwnKeys, ownkey_6
  30. IniRead,ownkey_7,settings.ini,OwnKeys, ownkey_7
  31. IniRead,ownkey_8,settings.ini,OwnKeys, ownkey_8
  32. IniRead,ownkey_9,settings.ini,OwnKeys, ownkey_9
  33. ;Owntex
  34. IniRead, owntext_1,settings.ini,OwnText, owntext_1
  35. IniRead, owntext_2,settings.ini,OwnText, owntext_2
  36. IniRead, owntext_3,settings.ini,OwnText, owntext_3
  37. IniRead, owntext_4,settings.ini,OwnText, owntext_4
  38. IniRead, owntext_5,settings.ini,OwnText, owntext_5
  39. IniRead, owntext_6,settings.ini,OwnText, owntext_6
  40. IniRead, owntext_7,settings.ini,OwnText, owntext_7
  41. IniRead, owntext_8,settings.ini,OwnText, owntext_8
  42. IniRead, owntext_9,settings.ini,OwnText, owntext_9
  43. gosub Hotkeyfestlegen
  44.  
  45. If(owntext_1 && owntext_2 && owntext_3 && owntext_4 && owntext_5 && owntext_6 && owntext_7 && owntext_8 && owntext_9 = "ERROR"){
  46.   owntext_1 = BEFEHL/AUSGABE
  47.   owntext_2 = BEFEHL/AUSGABE
  48.   owntext_3 = BEFEHL/AUSGABE
  49.   owntext_4 = BEFEHL/AUSGABE
  50.   owntext_5 = BEFEHL/AUSGABE
  51.   owntext_6 = BEFEHL/AUSGABE
  52.   owntext_7 = BEFEHL/AUSGABE
  53.   owntext_8 = BEFEHL/AUSGABE
  54.   owntext_9 = BEFEHL/AUSGABE
  55. }
  56.  
  57. ;Gui
  58. Gui, Font ,s10, Bahnschrift
  59. Gui, Show, w400 h349, Terroristen Keybinder v 1.0 by Artemis
  60. Gui, Add, Button, x0 y320 w400 h25 gSpeichern, Speichern
  61. Gui, Add, Tab3, x4 y5 w390 h310 , Terror Keybinds|Eigene Keybinds|Einstellungen
  62.  
  63. ; TAB TERROR KEYBINDS
  64. ; Terror Keybinds // HOTKEY
  65. Gui, Font ,s12, Bahnschrift
  66. Gui, Add, Text,   x40 y40  cred, Terror Keybinds
  67. Gui, Font ,s10, Bahnschrift
  68. Gui, Add, Hotkey, x40 y65 vtaste_1, %taste_1%
  69. Gui, Add, Hotkey, x40 y90 vtaste_2, %taste_2%
  70. Gui, Add, Hotkey, x40 y115 vtaste_3, %taste_3%
  71. Gui, Add, Hotkey, x40 y140 vtaste_10, %taste_10%
  72. Gui, Add, Hotkey, x40 y165 vtaste_11, %taste_11%
  73. Gui, Font ,s12, Bahnschrift
  74. Gui, Add, Text,   x40 y195  cred, Nützliche Keybinds
  75. Gui, Font ,s10, Bahnschrift
  76. Gui, Add, Hotkey, x40 y220 vtaste_4, %taste_4%
  77. Gui, Add, Hotkey, x40 y245 vtaste_5, %taste_5%
  78. Gui, Add, Hotkey, x40 y270 vtaste_6, %taste_6%
  79.  
  80.  
  81. ;Terror Keybind // Text
  82. Gui, Add, Text, x220 y67, WT-Information
  83. Gui, Add, Text, x220 y92, Set Bomb (200 oder 300)
  84. Gui, Add, Text, x220 y119, Carbomb
  85. Gui, Add, Text, x220 y145, Verstärkung anfordern!
  86. Gui, Add, Text, x220 y170, Verstärkungsruf bestätigen!
  87.  
  88. Gui, Add, Text, x220 y220, Waschen || Toilette
  89. Gui, Add, Text, x220 y245, Mein Inventar
  90. Gui, Add, Text, x220 y270, Fahrzeug Inventar
  91.  
  92. ;TAB EIGENE KEYBINDS
  93. Gui, Tab, Eigene Keybinds
  94. ; EIGENE HOTKEY
  95. Gui, Add, Hotkey, x40 y40 vownkey_1,%ownkey_1%
  96. Gui, Add, Hotkey, x40 y70 vownkey_2,%ownkey_2%
  97. Gui, Add, Hotkey, x40 y100 vownkey_3,%ownkey_3%
  98. Gui, Add, Hotkey, x40 y130 vownkey_4,%ownkey_4%
  99. Gui, Add, Hotkey, x40 y160 vownkey_5,%ownkey_5%
  100. Gui, Add, Hotkey, x40 y190 vownkey_6,%ownkey_6%
  101. Gui, Add, Hotkey, x40 y220 vownkey_7,%ownkey_7%
  102. Gui, Add, Hotkey, x40 y250 vownkey_8,%ownkey_8%
  103. Gui, Add, Hotkey, x40 y280 vownkey_9,%ownkey_9%
  104. ; EIGENE BEFEHLE
  105. Gui, Add, Edit, x200 y40 w150 vowntext_1,%owntext_1%
  106. Gui, Add, Edit, x200 y70 w150 vowntext_2,%owntext_2%
  107. Gui, Add, Edit, x200 y100 w150 vowntext_3,%owntext_3%
  108. Gui, Add, Edit, x200 y130 w150 vowntext_4,%owntext_4%
  109. Gui, Add, Edit, x200 y160 w150 vowntext_5,%owntext_5%
  110. Gui, Add, Edit, x200 y190 w150 vowntext_6,%owntext_6%
  111. Gui, Add, Edit, x200 y220 w150 vowntext_7,%owntext_7%
  112. Gui, Add, Edit, x200 y250 w150 vowntext_8,%owntext_8%
  113. Gui, Add, Edit, x200 y280 w150 vowntext_9,%owntext_9%
  114.  
  115.  
  116. ;TAB EINSTELLUNGEN
  117. Gui, Tab, Einstellungen
  118. Gui, Font ,s9, Bahnschrift
  119. ;BOMBEN TIMER
  120. Gui, Add, Text,   x10 y30 cred, Bomben Timer:
  121. Gui, Add, Checkbox,Checked%200s% v200s, 200 Sekunden
  122. Gui, Add, Checkbox,Checked%300s% v300s, 300 Sekunden
  123.  
  124. ;RESET
  125. Gui, Add, Text,   x310 y30 cred, Reset:
  126. Gui, Add, Button, x280 y50 w100 h20 gbombenc, Bombencounter
  127. Gui, Add, Button, x280 y70 w100 h20 gwtc, WTCounter
  128. IniRead, BombenTimer, settings.ini, Bomben_Timer, 200s
  129. IniRead, BombenTimer, settings.ini, Bomben_Timer, 300s
  130. return
  131.  
  132. GuiClose:
  133. ExitApp
  134.  
  135. Gui,Submit,NoHide
  136. IniWrite, %taste_1%,settings.ini,Keybinds, taste_1
  137. IniWrite, %taste_2%,settings.ini,Keybinds, taste_2
  138. IniWrite, %taste_3%,settings.ini,Keybinds, taste_3
  139. IniWrite, %taste_4%,settings.ini,Keybinds, taste_4
  140. IniWrite, %taste_5%,settings.ini,Keybinds, taste_5
  141. IniWrite, %taste_6%,settings.ini,Keybinds, taste_6
  142. IniWrite, %200s%,settings.ini,Bomben_Timer, 200s
  143. IniWrite, %300s%,settings.ini,Bomben_Timer, 300s
  144. IniWrite, 0,settings.ini,Bomben_Counter,Bombencounter
  145.  
  146. ;OWNKEYS
  147. IniWrite, %ownkey_1%,settings.ini,OwnKeys, ownkey_1
  148. IniWrite, %ownkey_2%,settings.ini,OwnKeys, ownkey_2
  149. IniWrite, %ownkey_3%,settings.ini,OwnKeys, ownkey_3
  150. IniWrite, %ownkey_4%,settings.ini,OwnKeys, ownkey_4
  151. IniWrite, %ownkey_5%,settings.ini,OwnKeys, ownkey_5
  152. IniWrite, %ownkey_6%,settings.ini,OwnKeys, ownkey_6
  153. IniWrite, %ownkey_7%,settings.ini,OwnKeys, ownkey_7
  154. IniWrite, %ownkey_7%,settings.ini,OwnKeys, ownkey_7
  155. IniWrite, %ownkey_8%,settings.ini,OwnKeys, ownkey_8
  156. IniWrite, %ownkey_9%,settings.ini,OwnKeys, ownkey_9
  157.  
  158. IniWrite, %test%,settings.ini,TEST,TEST1
  159.  
  160. ;OWNTEXT
  161. IniWrite, %owntext_1%,settings.ini,OwnText, owntext_1
  162. IniWrite, %owntext_2%,settings.ini,OwnText, owntext_2
  163. IniWrite, %owntext_3%,settings.ini,OwnText, owntext_3
  164. IniWrite, %owntext_4%,settings.ini,OwnText, owntext_4
  165. IniWrite, %owntext_5%,settings.ini,OwnText, owntext_5
  166. IniWrite, %owntext_6%,settings.ini,OwnText, owntext_6
  167. IniWrite, %owntext_7%,settings.ini,OwnText, owntext_7
  168. IniWrite, %owntext_8%,settings.ini,OwnText, owntext_8
  169. IniWrite, %owntext_9%,settings.ini,OwnText, owntext_9
  170.  
  171. Speichern:
  172.  gosub Hotkeyfestlegen
  173.   Gui,Submit,NoHide
  174.   IniWrite, %taste_1%,settings.ini,Keybinds, taste_1
  175.   IniWrite, %taste_2%,settings.ini,Keybinds, taste_2
  176.   IniWrite, %taste_3%,settings.ini,Keybinds, taste_3
  177.   IniWrite, %taste_4%,settings.ini,Keybinds, taste_4
  178.   IniWrite, %taste_5%,settings.ini,Keybinds, taste_5
  179.   IniWrite, %taste_6%,settings.ini,Keybinds, taste_6
  180.   IniWrite, %taste_10%,settings.ini,Keybinds, taste_10
  181.   IniWrite, %taste_11%,settings.ini,Keybinds, taste_11
  182.   IniWrite, %200s%,settings.ini,Bomben_Timer, 200s
  183.   IniWrite, %300s%,settings.ini,Bomben_Timer, 300s
  184.   IniWrite, %MeFunktion%,settings.ini,Me-Funktion, MeFunktion
  185.   IniWrite, 0,settings.ini,Bomben_Counter,Bombencounter
  186.   Reload
  187.  
  188.   ;OWNKEYS
  189.   IniWrite, %ownkey_1%,settings.ini,OwnKeys, ownkey_1
  190.   IniWrite, %ownkey_2%,settings.ini,OwnKeys, ownkey_2
  191.   IniWrite, %ownkey_3%,settings.ini,OwnKeys, ownkey_3
  192.   IniWrite, %ownkey_4%,settings.ini,OwnKeys, ownkey_4
  193.   IniWrite, %ownkey_5%,settings.ini,OwnKeys, ownkey_5
  194.   IniWrite, %ownkey_6%,settings.ini,OwnKeys, ownkey_6
  195.   IniWrite, %ownkey_7%,settings.ini,OwnKeys, ownkey_7
  196.   IniWrite, %ownkey_7%,settings.ini,OwnKeys, ownkey_7
  197.   IniWrite, %ownkey_8%,settings.ini,OwnKeys, ownkey_8
  198.   IniWrite, %ownkey_9%,settings.ini,OwnKeys, ownkey_9
  199.  
  200.   ;OWNTEXT
  201.   IniWrite, %owntext_1%,settings.ini,OwnText, owntext_1
  202.   IniWrite, %owntext_2%,settings.ini,OwnText, owntext_2
  203.   IniWrite, %owntext_3%,settings.ini,OwnText, owntext_3
  204.   IniWrite, %owntext_4%,settings.ini,OwnText, owntext_4
  205.   IniWrite, %owntext_5%,settings.ini,OwnText, owntext_5
  206.   IniWrite, %owntext_6%,settings.ini,OwnText, owntext_6
  207.   IniWrite, %owntext_7%,settings.ini,OwnText, owntext_7
  208.   IniWrite, %owntext_8%,settings.ini,OwnText, owntext_8
  209.   IniWrite, %owntext_9%,settings.ini,OwnText, owntext_9
  210.  
  211.   MsgBox,0,Neustart,Alle Einstellugen wurden übernommen!
  212. return
  213.  
  214. ;Hotkeyfestlegung von
  215. Hotkeyfestlegen:
  216.  Hotkey, ~%taste_1%, Hotk1, UseErrorlevel
  217.   Hotkey, ~%taste_2%, Hotk2, UseErrorlevel
  218.   Hotkey, ~%taste_3%, Hotk3, UseErrorlevel
  219.   Hotkey, ~%taste_4%, Hotk4, UseErrorlevel
  220.   Hotkey, ~%taste_5%, Hotk5, UseErrorlevel
  221.   Hotkey, ~%taste_6%, Hotk6, UseErrorlevel
  222.   Hotkey, ~%taste_10%, Hotk10, UseErrorlevel
  223.   Hotkey, ~%taste_11%, Hotk11, UseErrorlevel
  224.  
  225.   ;OWNKEY
  226.   Hotkey, ~%ownkey_1%, OK1, UseErrorlevel
  227.   Hotkey, ~%ownkey_2%, OK2, UseErrorlevel
  228.   Hotkey, ~%ownkey_3%, OK3, UseErrorlevel
  229.   Hotkey, ~%ownkey_4%, OK4, UseErrorlevel
  230.   Hotkey, ~%ownkey_5%, OK5, UseErrorlevel
  231.   Hotkey, ~%ownkey_6%, OK6, UseErrorlevel
  232.   Hotkey, ~%ownkey_7%, OK7, UseErrorlevel
  233.   Hotkey, ~%ownkey_8%, OK8, UseErrorlevel
  234.   Hotkey, ~%ownkey_9%, OK9, UseErrorlevel
  235. return
  236.  
  237. bombenc:
  238.  Bombencounter = 0
  239.   IniWrite, %Bombencounter%,settings.ing,Bomben_Counter,Bombencounter
  240.   MsgBox,1,Bombencounter,Der Bombencounter wurde zurückgesetzt!
  241. return
  242.  
  243. wtc:
  244.  WTCounter = 0
  245.   IniWrite, %WTCounter%,settings.ini,WT_Counter,WTCounter
  246.   MsgBox,1,WTCounter,Der WTcounter wurde zurückgesetzt!
  247. return
  248.  
  249. ;Hotkeys
  250. t::
  251. Suspend On
  252. SendInput t
  253. Hotkey, Enter, On
  254. Hotkey, Escape, On
  255. Hotkey, t, Off
  256. return
  257.  
  258. NumpadEnter::
  259. Enter::
  260. Suspend Permit
  261. Suspend Off
  262. SendInput {Enter}
  263. Hotkey, t, On
  264. Hotkey, Enter, Off
  265. Hotkey, Escape, Off
  266. return
  267.  
  268. Escape::
  269. Suspend Permit
  270. Suspend Off
  271. SendInput {Escape}
  272. Hotkey, t, On
  273. Hotkey, Enter, Off
  274. Hotkey, Escape, Off
  275. return
  276.  
  277. Hotk1:
  278. SendChat("/wtinfo")
  279. return
  280.  
  281.  
  282.  
  283. Hotk2:
  284. IniRead, 200s, settings.ini, Bomben_Timer, 200s
  285. IniRead, 300s, settings.ini, Bomben_Timer, 300s
  286.  
  287.   GuiControlGet 200s
  288.   GuiControlGet 300s
  289.  
  290.  
  291.   if(200s && 300s) {
  292.     AddChatMessage("{993300}[Terroristen Keybinder]{FF0000} FEHLER: BEIDE TIMER CHECKBOXEN AUSGEWAEHLT")
  293.   } else if(200s) {
  294.       SendChat("/setbomb 200")
  295.  
  296.      
  297.       }
  298.   else if(300s){
  299.       SendChat("/setbomb 300")
  300.  
  301.  
  302.   }
  303.  return  
  304.  
  305.  
  306. Hotk3:
  307.  
  308. SendChat("/carbomb")
  309. return
  310.  
  311.  
  312.  
  313. Hotk4:
  314.  
  315. SendChat("/waschen")
  316. Sleep, 100
  317. SendChat("/toilette")
  318. return
  319.  
  320.  
  321.  
  322. Hotk5:
  323. SendChat(chat)
  324. return
  325.  
  326.  
  327.  
  328. Hotk6:
  329. SendChat("/inventar fahrzeug")
  330. return
  331.  
  332.  
  333.  
  334. Hotk10:
  335. SendChat("/f Ich brauche Hilfe! - [" . getPlayerCity() . " || " . position() . "]")
  336. return
  337.  
  338.  
  339.  
  340. Hotk11:
  341. SendChat("/f Halt durch! Bin auf dem Weg! - [" . getPlayerCity() . " || " . position() . "]")
  342. return
  343.  
  344. ::/cinfo::
  345. SendChat(Hallo)
  346. return
  347.  
  348. OK1:
  349.  SendChat(owntext_1)
  350. return
  351.  
  352. OK2:
  353.  SendChat(owntext_2)
  354. return
  355.  
  356. OK3:
  357.  SendChat(owntext_3)
  358. return
  359.  
  360. OK4:
  361.  SendChat(owntext_4)
  362. return
  363.  
  364. OK5:
  365.  SendChat(owntext_5)
  366. return
  367.  
  368. OK6:
  369.  SendChat(owntext_6)
  370. return
  371.  
  372. OK7:
  373.  SendChat(owntext_7)
  374. return
  375.  
  376. OK8:
  377.  SendChat(owntext_8)
  378. return
  379.  
  380. OK9:
  381.  SendChat(owntext_9)
  382. return
  383.  
  384.  
  385.  
  386. ReadChat:
  387.  GetChatLine(0, chat)
  388.   ;~ if(InStr(chat, "sagt:") || InStr(chat, "** [") || InStr(chat, "PM von") || InStr(chat, ")) **") || InStr(chat, "[ID: ")) {
  389.     ;~ return
  390.   ;~ }
  391.  
  392.   if(InStr(chat, "Connected to Life")) {
  393.     AddChatMessage("{993300}[Terroristen Keybinder]{00FFFF} Keybinder v.1.0 by Artemis loaded")
  394.   }
  395.  
  396.  
  397.  
  398.  if(InStr(chat, "* Sie wird in 200 Sekunden explodieren!") || InStr(chat, "* Sie wird in 300 Sekunden explodieren!")) {
  399.     SendChat("/f Bomb has been planted! - [" . getPlayerCity() . " || " . position() . "]")
  400.   }
  401.  
  402.   if(InStr(chat, "** Fahre nun zu deiner Base, um die Waffen abzuladen.")) {
  403.       SendChat("/f WT wurde beladen und ist auf dem Weg zu Basis!")
  404.       sleep, 60000
  405.       SendChat("/f WT-Standort: [" . getPlayerCity() . " || " . position() . "]")
  406.      
  407.   }
  408.  
  409.   if(InStr(chat, "EXP: Du hast soeben") && InStr(chat, "EXP erhalten, Grund: Bombe explodieren lassen")) {
  410.     IniRead, Bombencounter, settings.ini, Bomben_Counter, Bombencounter, 0
  411.     Bombencounter++
  412.     IniWrite, %Bombencounter%, settings.ini, Bomben_Counter, Bombencounter
  413.  
  414.     AddChatMessage("{993300}[Terroristen Keybinder]{00FFFF} [BombenCounter] Du hast "  Bombencounter  " Bombe/n hochgejagt!")
  415.     Sleep, 5000
  416.   }
  417.  
  418.   if(InStr(chat, "EXP: Du hast soeben") && InStr(chat, "EXP erhalten, Grund: Waffentransporter abgeladen")) {
  419.     IniRead, WTCounter, settings.ini, WT_Counter, WTCounter, 0
  420.     WTCounter++
  421.     IniWrite, %WTCounter%, settings.ini, WT_Counter, WTCounter
  422.     AddChatMessage("{993300}[Terroristen Keybinder]{00FFFF} [WTCounter] Du hast "  WTCounter  " WT/s durchgeführt!")
  423.   }
  424.  
  425. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement