Advertisement
Guest User

LyD-Keybinder 0.3.7

a guest
Jun 18th, 2015
1,009
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 147.40 KB | None | 0 0
  1. ; <COMPILER: v1.1.16.05>
  2. #SingleInstance, Force
  3. #UseHook, On
  4. #If WinActive("GTA:SA:MP") and (isInChat() == 0)
  5. #Persistent
  6. #NoTrayIcon
  7. #NoEnv
  8. version := "2.2"
  9. lastupdate := "07.05.15, 17:35 Uhr"
  10. server := "http://lyd-roleplay.de"
  11. Url := "lyd-roleplay.de"
  12. verfile := "lyd.txt"
  13. serverstatus :=
  14. SetTimer, UpdateBarTimer, 40
  15. SetTimer, DownloadBarTimer, 40
  16. SetTimer, KillCounter, 100
  17. RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
  18. if(ErrorLevel = 0){
  19. serverstatus := "Online"
  20. } else {
  21. RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
  22. if(ErrorLevel = 0){
  23. serverstatus := "Online"
  24. } else {
  25. RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
  26. if(ErrorLevel = 0 && serverstatus != "Online"){
  27. serverstatus := "Online"
  28. } else {
  29. RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
  30. if(ErrorLevel = 0){
  31. serverstatus := "Online"
  32. } else {
  33. serverstatus := "Offline"
  34. }
  35. }
  36. }
  37. }
  38. IfNotExist, %a_MyDocuments%\LYD-Keybinder\
  39. {
  40. FileCreateDir, %A_MyDocuments%\LYD-Keybinder
  41. }
  42. IfNotExist, %a_MyDocuments%\LYD-Keybinder\images\
  43. {
  44. FileCreateDir, %A_MyDocuments%\LYD-Keybinder\images\
  45. }
  46. IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\1.png
  47. {
  48. if(serverstatus == "Offline")
  49. {
  50. MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
  51. ExitApp
  52. }
  53. Urldownloadtofile,%server%/keybinder/images/1.png, %a_MyDocuments%\LYD-Keybinder\images\1.png
  54. }
  55. IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\2.png
  56. {
  57. if(serverstatus == "Offline")
  58. {
  59. MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
  60. ExitApp
  61. }
  62. Urldownloadtofile,%server%/keybinder/images/2.png, %a_MyDocuments%\LYD-Keybinder\images\2.png
  63. }
  64. IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\3.png
  65. {
  66. if(serverstatus == "Offline")
  67. {
  68. MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
  69. ExitApp
  70. }
  71. Urldownloadtofile,%server%/keybinder/images/3.png, %a_MyDocuments%\LYD-Keybinder\images\3.png
  72. }
  73. IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\4.png
  74. { if(serverstatus == "Offline")
  75. {
  76. MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
  77. ExitApp
  78. }
  79. Urldownloadtofile,%server%/keybinder/images/4.png, %a_MyDocuments%\LYD-Keybinder\images\4.png
  80. }
  81. IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\5.png
  82. {
  83. if(serverstatus == "Offline")
  84. {
  85. MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
  86. ExitApp
  87. }
  88. Urldownloadtofile,%server%/keybinder/images/5.png, %a_MyDocuments%\LYD-Keybinder\images\5.png
  89. }
  90. IfNotExist, %a_MyDocuments%\LYD-Keybinder\
  91. {
  92. FileCreateDir, %A_MyDocuments%\LYD-Keybinder
  93. }
  94. Iniread, Kills, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
  95. If (Kills = "" or Kills = "ERROR")
  96. {
  97. Kills := 0
  98. IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
  99. }
  100. Iniread, Key1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
  101. If (Key1 = "" or Key1 = "ERROR")
  102. {
  103. Key1 :=
  104. IniWrite, %Key1%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
  105. }
  106. Iniread, Key2, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
  107. If (Key2 = "" or Key2 = "ERROR")
  108. {
  109. Key2 :=
  110. IniWrite, %Key2%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
  111. }
  112. Iniread, Key3, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
  113. If (Key3 = "" or Key3 = "ERROR")
  114. {
  115. Key3 :=
  116. IniWrite, %Key3%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
  117. }
  118. Iniread, Key4, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
  119. If (Key4 = "" or Key4 = "ERROR")
  120. {
  121. Key4 :=
  122. IniWrite, %Key4%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
  123. }
  124. Iniread, Key5, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
  125. If (Key5 = "" or Key5 = "ERROR")
  126. {
  127. Key5 :=
  128. IniWrite, %Key5%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
  129. }
  130. Iniread, Key6, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
  131. If (Key6 = "" or Key6 = "ERROR")
  132. {
  133. Key6 :=
  134. IniWrite, %Key6%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
  135. }
  136. Iniread, Key7, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
  137. If (Key7 = "" or Key7 = "ERROR")
  138. {
  139. Key7 :=
  140. IniWrite, %Key7%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
  141. }
  142. Iniread, Key8, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
  143. If (Key8 = "" or Key8 = "ERROR")
  144. {
  145. Key8 :=
  146. IniWrite, %Key8%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
  147. }
  148. Iniread, Key9, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
  149. If (Key9 = "" or Key9 = "ERROR")
  150. {
  151. Key9 :=
  152. IniWrite, %Key9%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
  153. }
  154. Iniread, Key10, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
  155. If (Key10 = "" or Key10 = "ERROR")
  156. {
  157. Key10 :=
  158. IniWrite, %Key10%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
  159. }
  160. Iniread, Key11, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
  161. If (Key11 = "" or Key11 = "ERROR")
  162. {
  163. Key11 :=
  164. IniWrite, %Key11%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
  165. }
  166. Iniread, Key12, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
  167. If (Key12 = "" or Key12 = "ERROR")
  168. {
  169. Key12 :=
  170. IniWrite, %Key12%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
  171. }
  172. Iniread, Key13, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
  173. If (Key13 = "" or Key13 = "ERROR")
  174. {
  175. Key13 :=
  176. IniWrite, %Key13%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
  177. }
  178. Iniread, Key14, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
  179. If (Key14 = "" or Key14 = "ERROR")
  180. {
  181. Key14 :=
  182. IniWrite, %Key14%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
  183. }
  184. Iniread, Key15, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
  185. If (Key15 = "" or Key15 = "ERROR")
  186. {
  187. Key15 :=
  188. IniWrite, %Key15%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
  189. }
  190. Iniread, Key16, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
  191. If (Key16 = "" or Key16 = "ERROR")
  192. {
  193. Key16 :=
  194. IniWrite, %Key16%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
  195. }
  196. Iniread, Key17, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
  197. If (Key17 = "" or Key17 = "ERROR")
  198. {
  199. Key17 :=
  200. IniWrite, %Key17%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
  201. }
  202. Iniread, Key18, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
  203. If (Key18 = "" or Key18 = "ERROR")
  204. {
  205. Key18 :=
  206. IniWrite, %Key18%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
  207. }
  208. Iniread, Key19, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
  209. If (Key19 = "" or Key19 = "ERROR")
  210. {
  211. Key19 :=
  212. IniWrite, %Key19%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
  213. }
  214. Iniread, Key20, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
  215. If (Key20 = "" or Key20 = "ERROR")
  216. {
  217. Key20 :=
  218. IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
  219. }
  220. Iniread, Key21, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
  221. If (Key21 = "" or Key21 = "ERROR")
  222. {
  223. Key21 :=
  224. IniWrite, %Key21%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
  225. }
  226. Iniread, Key22, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
  227. If (Key22 = "" or Key22 = "ERROR")
  228. {
  229. Key22 :=
  230. IniWrite, %Key22%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
  231. }
  232. Iniread, Key23, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
  233. If (Key23 = "" or Key23 = "ERROR")
  234. {
  235. Key23 :=
  236. IniWrite, %Key23%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
  237. }
  238. Iniread, Key24, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
  239. If (Key24 = "" or Key24 = "ERROR")
  240. {
  241. Key24 :=
  242. IniWrite, %Key24%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
  243. }
  244. Iniread, Key25, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
  245. If (Key25 = "" or Key25 = "ERROR")
  246. {
  247. Key25 :=
  248. IniWrite, %Key25%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
  249. }
  250. Iniread, Key26, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
  251. If (Key26 = "" or Key26 = "ERROR")
  252. {
  253. Key26 :=
  254. IniWrite, %Key26%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
  255. }
  256. Iniread, Key27, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
  257. If (Key27 = "" or Key27 = "ERROR")
  258. {
  259. Key27 :=
  260. IniWrite, %Key27%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
  261. }
  262. Iniread, Key28, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
  263. If (Key28 = "" or Key28 = "ERROR")
  264. {
  265. Key28 :=
  266. IniWrite, %Key28%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
  267. }
  268. Iniread, Key29, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
  269. If (Key29 = "" or Key29 = "ERROR")
  270. {
  271. Key29 :=
  272. IniWrite, %Key29%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
  273. }
  274. Iniread, Key30, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
  275. If (Key30 = "" or Key30 = "ERROR")
  276. {
  277. Key30 :=
  278. IniWrite, %Key30%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
  279. }
  280. Iniread, Key31, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
  281. If (Key31 = "" or Key31 = "ERROR")
  282. {
  283. Key31 :=
  284. IniWrite, %Key31%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
  285. }
  286. Iniread, Key32, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
  287. If (Key32 = "" or Key32 = "ERROR")
  288. {
  289. Key32 :=
  290. IniWrite, %Key32%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
  291. }
  292. Iniread, Key33, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
  293. If (Key33 = "" or Key33 = "ERROR")
  294. {
  295. Key33 :=
  296. IniWrite, %Key33%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
  297. }
  298. Iniread, Key34, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
  299. If (Key34 = "" or Key34 = "ERROR")
  300. {
  301. Key34 :=
  302. IniWrite, %Key34%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
  303. }
  304. Iniread, Key35, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
  305. If (Key35 = "" or Key35 = "ERROR")
  306. {
  307. Key35 :=
  308. IniWrite, %Key35%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
  309. }
  310. Iniread, Key36, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
  311. If (Key36 = "" or Key36 = "ERROR")
  312. {
  313. Key36 :=
  314. IniWrite, %Key36%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
  315. }
  316. Iniread, Key37, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
  317. If (Key37 = "" or Key37 = "ERROR")
  318. {
  319. Key37 :=
  320. IniWrite, %Key37%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
  321. }
  322. Iniread, Key38, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
  323. If (Key38 = "" or Key38 = "ERROR")
  324. {
  325. Key38 :=
  326. IniWrite, %Key38%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
  327. }
  328. Iniread, Key39, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
  329. If (Key39 = "" or Key39 = "ERROR")
  330. {
  331. Key39 :=
  332. IniWrite, %Key39%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
  333. }
  334. Iniread, Key40, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
  335. If (Key40 = "" or Key40 = "ERROR")
  336. {
  337. Key40 :=
  338. IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
  339. }
  340. Iniread, KillCounterText, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
  341. If (KillCounterText = "ERROR")
  342. {
  343. KillCounterText :=
  344. IniWrite, %KillCounterText%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
  345. }
  346. Iniread, Key1Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
  347. If (Key1Text = "ERROR")
  348. {
  349. Key1Text :=
  350. IniWrite, %Key1Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
  351. }
  352. Iniread, Key2Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
  353. If (Key2Text = "ERROR")
  354. {
  355. Key2Text :=
  356. IniWrite, %Key2Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
  357. }
  358. Iniread, Key3Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
  359. If (Key3Text = "ERROR")
  360. {
  361. Key3Text :=
  362. IniWrite, %Key3Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
  363. }
  364. Iniread, Key4Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
  365. If ( Key4Text = "ERROR")
  366. {
  367. Key4Text :=
  368. IniWrite, %Key4Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
  369. }
  370. Iniread, Key5Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
  371. If (Key5Text = "ERROR")
  372. {
  373. Key5Text :=
  374. IniWrite, %Key5Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
  375. }
  376. Iniread, Key6Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
  377. If (Key6Text = "ERROR")
  378. {
  379. Key6Text :=
  380. IniWrite, %Key6Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
  381. }
  382. Iniread, Key7Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
  383. If (Key7Text = "ERROR")
  384. {
  385. Key7Text :=
  386. IniWrite, %Key7Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
  387. }
  388. Iniread, Key8Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
  389. If (Key8Text = "ERROR")
  390. {
  391. Key8Text :=
  392. IniWrite, %Key8Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
  393. }
  394. Iniread, Key9Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
  395. If (Key9Text = "ERROR")
  396. {
  397. Key9Text :=
  398. IniWrite, %Key9Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
  399. }
  400. Iniread, Key10Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
  401. If (Key10Text = "ERROR")
  402. {
  403. Key10Text :=
  404. IniWrite, %Key10Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
  405. }
  406. Iniread, Key11Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
  407. If (Key11Text = "ERROR")
  408. {
  409. Key11Text :=
  410. IniWrite, %Key11Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
  411. }
  412. Iniread, Key12Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
  413. If (Key12Text = "ERROR")
  414. {
  415. Key12Text :=
  416. IniWrite, %Key12Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
  417. }
  418. Iniread, Key13Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
  419. If (Key13Text = "ERROR")
  420. {
  421. Key13Text :=
  422. IniWrite, %Key13Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
  423. }
  424. Iniread, Key14Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
  425. If (Key14Text = "ERROR")
  426. {
  427. Key14Text :=
  428. IniWrite, %Key14Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
  429. }
  430. Iniread, Key15Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
  431. If (Key15Text = "ERROR")
  432. {
  433. Key15Text :=
  434. IniWrite, %Key15Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
  435. }
  436. Iniread, Key16Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
  437. If (Key16Text = "ERROR")
  438. {
  439. Key16Text :=
  440. IniWrite, %Key16Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
  441. }
  442. Iniread, Key17Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
  443. If (Key17Text = "ERROR")
  444. {
  445. Key17Text :=
  446. IniWrite, %Key17Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
  447. }
  448. Iniread, Key18Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
  449. If (Key18Text = "ERROR")
  450. {
  451. Key18Text :=
  452. IniWrite, %Key18Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
  453. }
  454. Iniread, Key19Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
  455. If (Key19Text = "ERROR")
  456. {
  457. Key19Text :=
  458. IniWrite, %Key19Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
  459. }
  460. Iniread, Key20Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
  461. If (Key20Text = "ERROR")
  462. {
  463. Key20Text :=
  464. IniWrite, %Key20Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
  465. }
  466. Iniread, Key21Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
  467. If (Key21Text = "ERROR")
  468. {
  469. Key21Text :=
  470. IniWrite, %Key21Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
  471. }
  472. Iniread, Key22Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
  473. If (Key22Text = "ERROR")
  474. {
  475. Key22Text :=
  476. IniWrite, %Key22Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
  477. }
  478. Iniread, Key23Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
  479. If (Key23Text = "ERROR")
  480. {
  481. Key23Text :=
  482. IniWrite, %Key23Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
  483. }
  484. Iniread, Key24Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
  485. If (Key24Text = "ERROR")
  486. {
  487. Key24Text :=
  488. IniWrite, %Key24Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
  489. }
  490. Iniread, Key25Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
  491. If (Key25Text = "ERROR")
  492. {
  493. Key25Text :=
  494. IniWrite, %Key25Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
  495. }
  496. Iniread, Key26Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
  497. If (Key26Text = "ERROR")
  498. {
  499. Key26Text :=
  500. IniWrite, %Key26Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
  501. }
  502. Iniread, Key27Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
  503. If (Key27Text = "ERROR")
  504. {
  505. Key27Text :=
  506. IniWrite, %Key27Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
  507. }
  508. Iniread, Key28Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
  509. If (Key28Text = "ERROR")
  510. {
  511. Key28Text :=
  512. IniWrite, %Key28Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
  513. }
  514. Iniread, Key29Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
  515. If (Key29Text = "ERROR")
  516. {
  517. Key29Text :=
  518. IniWrite, %Key29Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
  519. }
  520. Iniread, Key30Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
  521. If (Key30Text = "ERROR")
  522. {
  523. Key30Text :=
  524. IniWrite, %Key30Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
  525. }
  526. Iniread, Key31Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
  527. If (Key31Text = "ERROR")
  528. {
  529. Key31Text :=
  530. IniWrite, %Key31Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
  531. }
  532. Iniread, Key32Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
  533. If (Key32Text = "ERROR")
  534. {
  535. Key32Text :=
  536. IniWrite, %Key32Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
  537. }
  538. Iniread, Key33Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
  539. If (Key33Text = "ERROR")
  540. {
  541. Key33Text :=
  542. IniWrite, %Key33Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
  543. }
  544. Iniread, Key34Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
  545. If (Key34Text = "ERROR")
  546. {
  547. Key34Text :=
  548. IniWrite, %Key34Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
  549. }
  550. Iniread, Key35Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
  551. If (Key35Text = "ERROR")
  552. {
  553. Key35Text :=
  554. IniWrite, %Key35Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
  555. }
  556. Iniread, Key36Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
  557. If (Key36Text = "ERROR")
  558. {
  559. Key36Text :=
  560. IniWrite, %Key36Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
  561. }
  562. Iniread, Key37Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
  563. If (Key37Text = "ERROR")
  564. {
  565. Key37Text :=
  566. IniWrite, %Key37Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
  567. }
  568. Iniread, Key38Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
  569. If (Key38Text = "ERROR")
  570. {
  571. Key38Text :=
  572. IniWrite, %Key38Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
  573. }
  574. Iniread, Key39Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
  575. If (Key39Text = "ERROR")
  576. {
  577. Key39Text :=
  578. IniWrite, %Key39Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
  579. }
  580. Iniread, Key40Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
  581. If (Key40Text = "ERROR")
  582. {
  583. Key40Text :=
  584. IniWrite, %Key40Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
  585. }
  586. Iniread, ToggleKey, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
  587. If (ToggleKey = "" or ToggleKey = "ERROR")
  588. {
  589. ToggleKey := F12
  590. IniWrite, %ToggleKey%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
  591. }
  592. Iniread, KillCounterToggle, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterToggle
  593. Iniread, Key1Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Status
  594. Iniread, Key2Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Status
  595. Iniread, Key3Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Status
  596. Iniread, Key4Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Status
  597. Iniread, Key5Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Status
  598. Iniread, Key6Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Status
  599. Iniread, Key7Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Status
  600. Iniread, Key8Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Status
  601. Iniread, Key9Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Status
  602. Iniread, Key10Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Status
  603. Iniread, Key11Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Status
  604. Iniread, Key12Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Status
  605. Iniread, Key13Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Status
  606. Iniread, Key14Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Status
  607. Iniread, Key15Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Status
  608. Iniread, Key16Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Status
  609. Iniread, Key17Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Status
  610. Iniread, Key18Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Status
  611. Iniread, Key19Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Status
  612. Iniread, Key20Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Status
  613. Iniread, Key21Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Status
  614. Iniread, Key22Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Status
  615. Iniread, Key23Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Status
  616. Iniread, Key24Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Status
  617. Iniread, Key25Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Status
  618. Iniread, Key26Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Status
  619. Iniread, Key27Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Status
  620. Iniread, Key28Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Status
  621. Iniread, Key29Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Status
  622. Iniread, Key30Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Status
  623. Iniread, Key31Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Status
  624. Iniread, Key32Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Status
  625. Iniread, Key33Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Status
  626. Iniread, Key34Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Status
  627. Iniread, Key35Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Status
  628. Iniread, Key36Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Status
  629. Iniread, Key37Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Status
  630. Iniread, Key38Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Status
  631. Iniread, Key39Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Status
  632. Iniread, Key40Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Status
  633. Iniread, Key1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
  634. Iniread, Key2, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
  635. Iniread, Key3, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
  636. Iniread, Key4, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
  637. Iniread, Key5, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
  638. Iniread, Key6, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
  639. Iniread, Key7, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
  640. Iniread, Key8, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
  641. Iniread, Key9, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
  642. Iniread, Key10, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
  643. Iniread, Key11, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
  644. Iniread, Key12, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
  645. Iniread, Key13, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
  646. Iniread, Key14, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
  647. Iniread, Key15, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
  648. Iniread, Key16, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
  649. Iniread, Key17, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
  650. Iniread, Key18, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
  651. Iniread, Key19, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
  652. Iniread, Key20, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
  653. Iniread, Key21, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
  654. Iniread, Key22, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
  655. Iniread, Key23, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
  656. Iniread, Key24, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
  657. Iniread, Key25, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
  658. Iniread, Key26, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
  659. Iniread, Key27, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
  660. Iniread, Key28, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
  661. Iniread, Key29, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
  662. Iniread, Key30, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
  663. Iniread, Key31, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
  664. Iniread, Key32, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
  665. Iniread, Key33, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
  666. Iniread, Key34, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
  667. Iniread, Key35, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
  668. Iniread, Key36, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
  669. Iniread, Key37, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
  670. Iniread, Key38, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
  671. Iniread, Key39, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
  672. Iniread, Key40, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
  673. Iniread, Key1Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
  674. Iniread, Key2Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
  675. Iniread, Key3Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
  676. Iniread, Key4Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
  677. Iniread, Key5Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
  678. Iniread, Key6Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
  679. Iniread, Key7Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
  680. Iniread, Key8Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
  681. Iniread, Key9Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
  682. Iniread, Key10Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
  683. Iniread, Key11Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
  684. Iniread, Key12Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
  685. Iniread, Key13Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
  686. Iniread, Key14Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
  687. Iniread, Key15Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
  688. Iniread, Key16Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
  689. Iniread, Key17Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
  690. Iniread, Key18Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
  691. Iniread, Key19Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
  692. Iniread, Key20Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
  693. Iniread, Key21Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
  694. Iniread, Key22Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
  695. Iniread, Key23Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
  696. Iniread, Key24Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
  697. Iniread, Key25Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
  698. Iniread, Key26Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
  699. Iniread, Key27Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
  700. Iniread, Key28Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
  701. Iniread, Key29Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
  702. Iniread, Key30Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
  703. Iniread, Key31Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
  704. Iniread, Key32Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
  705. Iniread, Key33Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
  706. Iniread, Key34Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
  707. Iniread, Key35Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
  708. Iniread, Key36Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
  709. Iniread, Key37Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
  710. Iniread, Key38Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
  711. Iniread, Key39Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
  712. Iniread, Key40Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
  713. Iniread, Key1Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Enter
  714. Iniread, Key2Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Enter
  715. Iniread, Key3Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Enter
  716. Iniread, Key4Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Enter
  717. Iniread, Key5Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Enter
  718. Iniread, Key6Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Enter
  719. Iniread, Key7Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Enter
  720. Iniread, Key8Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Enter
  721. Iniread, Key9Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Enter
  722. Iniread, Key10Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Enter
  723. Iniread, Key11Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Enter
  724. Iniread, Key12Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Enter
  725. Iniread, Key13Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Enter
  726. Iniread, Key14Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Enter
  727. Iniread, Key15Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Enter
  728. Iniread, Key16Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Enter
  729. Iniread, Key17Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Enter
  730. Iniread, Key18Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Enter
  731. Iniread, Key19Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Enter
  732. Iniread, Key20Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Enter
  733. Iniread, Key21Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Enter
  734. Iniread, Key22Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Enter
  735. Iniread, Key23Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Enter
  736. Iniread, Key24Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Enter
  737. Iniread, Key25Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Enter
  738. Iniread, Key26Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Enter
  739. Iniread, Key27Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Enter
  740. Iniread, Key28Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Enter
  741. Iniread, Key29Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Enter
  742. Iniread, Key30Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Enter
  743. Iniread, Key31Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Enter
  744. Iniread, Key32Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Enter
  745. Iniread, Key33Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Enter
  746. Iniread, Key34Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Enter
  747. Iniread, Key35Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Enter
  748. Iniread, Key36Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Enter
  749. Iniread, Key37Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Enter
  750. Iniread, Key38Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Enter
  751. Iniread, Key39Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Enter
  752. Iniread, Key40Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Enter
  753. Iniread, ToggleKey, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
  754. Iniread, NoVersionWarn, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, NoVersionWarn
  755. global ERROR_OK := 0
  756. global ERROR_PROCESS_NOT_FOUND := 1
  757. global ERROR_OPEN_PROCESS := 2
  758. global ERROR_INVALID_HANDLE := 3
  759. global ERROR_MODULE_NOT_FOUND := 4
  760. global ERROR_ENUM_PROCESS_MODULES := 5
  761. global ERROR_ZONE_NOT_FOUND := 6
  762. global ERROR_CITY_NOT_FOUND := 7
  763. global ERROR_READ_MEMORY := 8
  764. global ERROR_WRITE_MEMORY := 9
  765. global ERROR_ALLOC_MEMORY := 10
  766. global ERROR_FREE_MEMORY := 11
  767. global ERROR_WAIT_FOR_OBJECT := 12
  768. global ERROR_CREATE_THREAD := 13
  769. global ADDR_ZONECODE := 0xA49AD4
  770. global ADDR_POSITION_X := 0xB6F2E4
  771. global ADDR_POSITION_Y := 0xB6F2E8
  772. global ADDR_POSITION_Z := 0xB6F2EC
  773. global ADDR_CPED_PTR := 0xB6F5F0
  774. global ADDR_CPED_HPOFF := 0x540
  775. global ADDR_CPED_ARMOROFF := 0x548
  776. global ADDR_VEHICLE_PTR := 0xBA18FC
  777. global ADDR_VEHICLE_HPOFF := 0x4C0
  778. global ADDR_CPED_MONEY := 0x0B7CE54
  779. global ADDR_CPED_INTID := 0xA4ACE8
  780. global ADDR_VEHICLE_DOORSTATE := 0x4F8
  781. global ADDR_VEHICLE_ENGINESTATE := 0x428
  782. global ADDR_VEHICLE_LIGHTSTATE := 0x584
  783. global ADDR_VEHICLE_MODEL := 0x22
  784. global ADDR_VEHICLE_TYPE := 0x590
  785. global ADDR_VEHICLE_DRIVER := 0x460
  786. global oAirplaneModels := [417, 425, 447, 460, 469, 476, 487, 488, 497, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593]
  787. global oBikeModels := [481,509,510]
  788. global ovehicleNames := ["Landstalker","Bravura","Buffalo","Linerunner","Perrenial","Sentinel","Dumper","Firetruck","Trashmaster","Stretch","Manana","Infernus","Voodoo","Pony","Mule","Cheetah","Ambulance","Leviathan","Moonbeam","Esperanto","Taxi","Washington","Bobcat","Whoopee","BFInjection","Hunter","Premier","Enforcer","Securicar","Banshee","Predator","Bus","Rhino","Barracks","Hotknife","Trailer","Previon","Coach","Cabbie","Stallion","Rumpo","RCBandit","Romero","Packer","Monster","Admiral","Squalo","Seasparrow","Pizzaboy","Tram","Trailer","Turismo","Speeder","Reefer","Tropic","Flatbed","Yankee","Caddy","Solair","Berkley'sRCVan","Skimmer","PCJ-600","Faggio","Freeway","RCBaron","RCRaider","Glendale","Oceanic","Sanchez","Sparrow","Patriot","Quad","Coastguard","Dinghy","Hermes","Sabre","Rustler","ZR-350","Walton","Regina","Comet","BMX","Burrito","Camper","Marquis","Baggage","Dozer","Maverick","NewsChopper","Rancher","FBIRancher","Virgo","Greenwood","Jetmax","Hotring","Sandking","BlistaCompact","PoliceMaverick","Boxvillde","Benson","Mesa","RCGoblin","HotringRacerA","HotringRacerB","BloodringBanger","Rancher","SuperGT","Elegant","Journey","Bike","MountainBike","Beagle","Cropduster","Stunt","Tanker","Roadtrain","Nebula","Majestic","Buccaneer","Shamal","hydra","FCR-900","NRG-500","HPV1000","CementTruck","TowTruck","Fortune","Cadrona","FBITruck","Willard","Forklift","Tractor","Combine","Feltzer","Remington","Slamvan","Blade","Freight","Streak","Vortex","Vincent","Bullet","Clover","Sadler","Firetruck","Hustler","Intruder","Primo","Cargobob","Tampa","Sunrise","Merit","Utility","Nevada","Yosemite","Windsor","Monster","Monster","Uranus","Jester","Sultan","Stratum","Elegy","Raindance","RCTiger","Flash","Tahoma","Savanna","Bandito","FreightFlat","StreakCarriage","Kart","Mower","Dune","Sweeper","Broadway","Tornado","AT-400","DFT-30","Huntley","Stafford","BF-400","NewsVan","Tug","Trailer","Emperor","Wayfarer","Euros","Hotdog","Club","FreightBox","Trailer","Andromada","Dodo","RCCam","Launch","PoliceCar","PoliceCar","PoliceCar","PoliceRanger","Picador","S.W.A.T","Alpha","Phoenix","GlendaleShit","SadlerShit","Luggage","Luggage","Stairs","Boxville","Tiller","UtilityTrailer"]
  789. global ADDR_SAMP_INCHAT_PTR := 0x21a10c
  790. global ADDR_SAMP_INCHAT_PTR_OFF := 0x55
  791. global ADDR_SAMP_USERNAME := 0x219A6F
  792. global ADDR_SAMP_CHATMSG_PTR := 0x21a0e4
  793. global ADDR_SAMP_SHOWDLG_PTR := 0x21a0b8
  794. global FUNC_SAMP_SENDCMD := 0x65c60
  795. global FUNC_SAMP_SENDSAY := 0x57f0
  796. global FUNC_SAMP_ADDTOCHATWND := 0x64520
  797. global FUNC_SAMP_SHOWGAMETEXT := 0x9c2c0
  798. global FUNC_SAMP_PLAYAUDIOSTR := 0x62da0
  799. global FUNC_SAMP_STOPAUDIOSTR := 0x629a0
  800. global FUNC_SAMP_SHOWDIALOG := 0x6B9C0
  801. global FUNC_UPDATESCOREBOARD := 0x8a10
  802. global SAMP_INFO_OFFSET := 0x21a0f8
  803. global SAMP_PPOOLS_OFFSET := 0x3D9
  804. global SAMP_PPOOL_PLAYER_OFFSET := 0x14
  805. global SAMP_SLOCALPLAYERID_OFFSET := 0x4
  806. global SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET := 0x1A
  807. global SAMP_SZLOCALPLAYERNAME_OFFSET := 0xA
  808. global SAMP_PSZLOCALPLAYERNAME_OFFSET := 0xA
  809. global SAMP_PREMOTEPLAYER_OFFSET := 0x2E
  810. global SAMP_ISTRLENNAME___OFFSET := 0x24
  811. global SAMP_SZPLAYERNAME_OFFSET := 0x14
  812. global SAMP_PSZPLAYERNAME_OFFSET := 0x14
  813. global SAMP_ILOCALPLAYERPING_OFFSET := 0x26
  814. global SAMP_ILOCALPLAYERSCORE_OFFSET := 0x2A
  815. global SAMP_IPING_OFFSET := 0xC
  816. global SAMP_ISCORE_OFFSET := 0x4
  817. global SAMP_ISNPC_OFFSET := 0x0
  818. global SAMP_PLAYER_MAX := 1004
  819. global SIZE_SAMP_CHATMSG := 0xFC
  820. global hGTA := 0x0
  821. global dwGTAPID := 0x0
  822. global dwSAMP := 0x0
  823. global pMemory := 0x0
  824. global pParam1 := 0x0
  825. global pParam2 := 0x0
  826. global pParam3 := 0x0
  827. global pInjectFunc := 0x0
  828. global nZone := 1
  829. global nCity := 1
  830. global bInitZaC := 0
  831. global iRefreshScoreboard := 0
  832. global oScoreboardData := ""
  833. global iRefreshHandles := 0
  834. global iUpdateTick := 2500
  835. Gui, Add, Picture, x-8 y-1 w1150 h70 , %a_MyDocuments%\LYD-Keybinder\images\1.png
  836. Gui, Font, S14 Cwhite Bold, Calibri
  837. Gui, Add, Text, x25 y19 w220 h30 BackgroundTrans, Live Your Dream
  838. Gui, Font, S12 Cwhite Bold, Calibri
  839. Gui, Add, Text, x730 y23 w90 h30 gKillCounterGui BackgroundTrans, Kill Counter
  840. Gui, Add, Text, x835 y23 w70 h30 gVariablen BackgroundTrans, Variablen
  841. Gui, Add, Text, x925 y23 w30 h30 gHelp BackgroundTrans, Hilfe
  842. Gui, Add, Picture, x-8 y69 w1140 h570 , %a_MyDocuments%\LYD-Keybinder\images\3.png
  843. Gui, Add, Picture, x12 y99 w1090 h420 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  844. Gui, Add, Picture, x12 y529 w1090 h110 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  845. Gui, Add, Picture, x980 y19 w113 h27 gGotoforum, %a_MyDocuments%\LYD-Keybinder\images\5.png
  846. Gui, Font, S12 CWHITE Bold, Calibri
  847. Gui, Add, Text, x20 y105 w20 h20 BackgroundTrans, An
  848. Gui, Add, Text, x50 y105 w50 h20 BackgroundTrans, Taste
  849. Gui, Add, Text, x180 y105 w50 h20 BackgroundTrans, Text
  850. Gui, Add, Text, x502 y105 w50 h20 BackgroundTrans, Enter
  851. Gui, Add, Text, x580 y105 w20 h20 BackgroundTrans, An
  852. Gui, Add, Text, x620 y105 w50 h20 BackgroundTrans, Taste
  853. Gui, Add, Text, x750 y105 w50 h20 BackgroundTrans, Text
  854. Gui, Add, Text, x1060 y105 w50 h20 BackgroundTrans, Enter
  855. Gui, Font, S8 CBLACK,
  856. Gui, Font, S10 CBLUE Bold,
  857. Gui, Add, Hotkey, x40 y440 w120 h20 BackgroundTrans vToggleKey, %ToggleKey%
  858. Gui, Font, S12 Cwhite Bold, Calibri
  859. Gui, Add, Text, x170 y440 w230 h20 BackgroundTrans , Taste zum An/Aus schalten
  860. Gui, Font, S10 CBLACK Bold,
  861. Gui, Add, Button, x40 y470 w120 h30 BackgroundTrans gSave, Speichern
  862. Gui, Add, CheckBox, x22 y132 w14 h14 BackgroundTrans gKey1Status vKey1Status Checked%Key1Status%,
  863. Gui, Add, CheckBox, x22 y162 w14 h14 BackgroundTrans gKey2Status vKey2Status Checked%Key2Status%,
  864. Gui, Add, CheckBox, x22 y192 w14 h14 BackgroundTrans gKey3Status vKey3Status Checked%Key3Status%,
  865. Gui, Add, CheckBox, x22 y222 w14 h14 BackgroundTrans gKey4Status vKey4Status Checked%Key4Status%,
  866. Gui, Add, CheckBox, x22 y252 w14 h14 BackgroundTrans gKey5Status vKey5Status Checked%Key5Status%,
  867. Gui, Add, CheckBox, x22 y282 w14 h14 BackgroundTrans gKey6Status vKey6Status Checked%Key6Status%,
  868. Gui, Add, CheckBox, x22 y312 w14 h14 BackgroundTrans gKey7Status vKey7Status Checked%Key7Status%,
  869. Gui, Add, CheckBox, x22 y342 w14 h14 BackgroundTrans gKey8Status vKey8Status Checked%Key8Status%,
  870. Gui, Add, CheckBox, x22 y372 w14 h14 BackgroundTrans gKey9Status vKey9Status Checked%Key9Status%,
  871. Gui, Add, CheckBox, x22 y402 w14 h14 BackgroundTrans gKey10Status vKey10Status Checked%Key10Status%,
  872. Gui, Add, CheckBox, x580 y132 w14 h14 BackgroundTrans gKey11Status vKey11Status Checked%Key11Status%,
  873. Gui, Add, CheckBox, x580 y162 w14 h14 BackgroundTrans gKey12Status vKey12Status Checked%Key12Status%,
  874. Gui, Add, CheckBox, x580 y192 w14 h14 BackgroundTrans gKey13Status vKey13Status Checked%Key13Status%,
  875. Gui, Add, CheckBox, x580 y222 w14 h14 BackgroundTrans gKey14Status vKey14Status Checked%Key14Status%,
  876. Gui, Add, CheckBox, x580 y252 w14 h14 BackgroundTrans gKey15Status vKey15Status Checked%Key15Status%,
  877. Gui, Add, CheckBox, x580 y282 w14 h14 BackgroundTrans gKey16Status vKey16Status Checked%Key16Status%,
  878. Gui, Add, CheckBox, x580 y312 w14 h14 BackgroundTrans gKey17Status vKey17Status Checked%Key17Status%,
  879. Gui, Add, CheckBox, x580 y342 w14 h14 BackgroundTrans gKey18Status vKey18Status Checked%Key18Status%,
  880. Gui, Add, CheckBox, x580 y372 w14 h14 BackgroundTrans gKey19Status vKey19Status Checked%Key19Status%,
  881. Gui, Add, CheckBox, x580 y402 w14 h14 BackgroundTrans gKey20Status vKey20Status Checked%Key20Status%,
  882. Gui, Add, Hotkey, x40 y129 w120 h20 BackgroundTrans vKey1, %Key1%
  883. Gui, Add, Hotkey, x40 y159 w120 h20 BackgroundTrans vKey2, %Key2%
  884. Gui, Add, Hotkey, x40 y189 w120 h20 BackgroundTrans vKey3, %Key3%
  885. Gui, Add, Hotkey, x40 y219 w120 h20 BackgroundTrans vKey4, %Key4%
  886. Gui, Add, Hotkey, x40 y249 w120 h20 BackgroundTrans vKey5, %Key5%
  887. Gui, Add, Hotkey, x40 y279 w120 h20 BackgroundTrans vKey6, %Key6%
  888. Gui, Add, Hotkey, x40 y309 w120 h20 BackgroundTrans vKey7, %Key7%
  889. Gui, Add, Hotkey, x40 y339 w120 h20 BackgroundTrans vKey8, %Key8%
  890. Gui, Add, Hotkey, x40 y369 w120 h20 BackgroundTrans vKey9, %Key9%
  891. Gui, Add, Hotkey, x40 y399 w120 h20 BackgroundTrans vKey10, %Key10%
  892. Gui, Add, Hotkey, x610 y129 w120 h20 BackgroundTrans vKey11, %Key11%
  893. Gui, Add, Hotkey, x610 y159 w120 h20 BackgroundTrans vKey12, %Key12%
  894. Gui, Add, Hotkey, x610 y189 w120 h20 BackgroundTrans vKey13, %Key13%
  895. Gui, Add, Hotkey, x610 y219 w120 h20 BackgroundTrans vKey14, %Key14%
  896. Gui, Add, Hotkey, x610 y249 w120 h20 BackgroundTrans vKey15, %Key15%
  897. Gui, Add, Hotkey, x610 y279 w120 h20 BackgroundTrans vKey16, %Key16%
  898. Gui, Add, Hotkey, x610 y309 w120 h20 BackgroundTrans vKey17, %Key17%
  899. Gui, Add, Hotkey, x610 y339 w120 h20 BackgroundTrans vKey18, %Key18%
  900. Gui, Add, Hotkey, x610 y369 w120 h20 BackgroundTrans vKey19, %Key19%
  901. Gui, Add, Hotkey, x610 y399 w120 h20 BackgroundTrans vKey20, %Key20%
  902. Gui, Add, Edit, x170 y129 w330 h20 BackgroundTrans vKey1Text, %Key1Text%
  903. Gui, Add, Edit, x170 y159 w330 h20 BackgroundTrans vKey2Text, %Key2Text%
  904. Gui, Add, Edit, x170 y189 w330 h20 BackgroundTrans vKey3Text, %Key3Text%
  905. Gui, Add, Edit, x170 y219 w330 h20 BackgroundTrans vKey4Text, %Key4Text%
  906. Gui, Add, Edit, x170 y249 w330 h20 BackgroundTrans vKey5Text, %Key5Text%
  907. Gui, Add, Edit, x170 y279 w330 h20 BackgroundTrans vKey6Text, %Key6Text%
  908. Gui, Add, Edit, x170 y309 w330 h20 BackgroundTrans vKey7Text, %Key7Text%
  909. Gui, Add, Edit, x170 y339 w330 h20 BackgroundTrans vKey8Text, %Key8Text%
  910. Gui, Add, Edit, x170 y369 w330 h20 BackgroundTrans vKey9Text, %Key9Text%
  911. Gui, Add, Edit, x170 y399 w330 h20 BackgroundTrans vKey10Text, %Key10Text%
  912. Gui, Add, Edit, x740 y129 w330 h20 BackgroundTrans vKey11Text, %Key11Text%
  913. Gui, Add, Edit, x740 y159 w330 h20 BackgroundTrans vKey12Text, %Key12Text%
  914. Gui, Add, Edit, x740 y189 w330 h20 BackgroundTrans vKey13Text, %Key13Text%
  915. Gui, Add, Edit, x740 y219 w330 h20 BackgroundTrans vKey14Text, %Key14Text%
  916. Gui, Add, Edit, x740 y249 w330 h20 BackgroundTrans vKey15Text, %Key15Text%
  917. Gui, Add, Edit, x740 y279 w330 h20 BackgroundTrans vKey16Text, %Key16Text%
  918. Gui, Add, Edit, x740 y309 w330 h20 BackgroundTrans vKey17Text, %Key17Text%
  919. Gui, Add, Edit, x740 y339 w330 h20 BackgroundTrans vKey18Text, %Key18Text%
  920. Gui, Add, Edit, x740 y369 w330 h20 BackgroundTrans vKey19Text, %Key19Text%
  921. Gui, Add, Edit, x740 y399 w330 h20 BackgroundTrans vKey20Text, %Key20Text%
  922. Gui, Add, CheckBox, x510 y132 w14 h14 BackgroundTrans gKey1Enter vKey1Enter Checked%Key1Enter%,
  923. Gui, Add, CheckBox, x510 y162 w14 h14 BackgroundTrans gKey2Enter vKey2Enter Checked%Key2Enter%,
  924. Gui, Add, CheckBox, x510 y192 w14 h14 BackgroundTrans gKey3Enter vKey3Enter Checked%Key3Enter%,
  925. Gui, Add, CheckBox, x510 y222 w14 h14 BackgroundTrans gKey4Enter vKey4Enter Checked%Key4Enter%,
  926. Gui, Add, CheckBox, x510 y252 w14 h14 BackgroundTrans gKey5Enter vKey5Enter Checked%Key5Enter%,
  927. Gui, Add, CheckBox, x510 y282 w14 h14 BackgroundTrans gKey6Enter vKey6Enter Checked%Key6Enter%,
  928. Gui, Add, CheckBox, x510 y312 w14 h14 BackgroundTrans gKey7Enter vKey7Enter Checked%Key7Enter%,
  929. Gui, Add, CheckBox, x510 y342 w14 h14 BackgroundTrans gKey8Enter vKey8Enter Checked%Key8Enter%,
  930. Gui, Add, CheckBox, x510 y372 w14 h14 BackgroundTrans gKey9Enter vKey9Enter Checked%Key9Enter%,
  931. Gui, Add, CheckBox, x510 y402 w14 h14 BackgroundTrans gKey10Enter vKey10Enter Checked%Key10Enter%,
  932. Gui, Add, CheckBox, x1080 y132 w14 h14 BackgroundTrans gKey11Enter vKey11Enter Checked%Key11Enter%,
  933. Gui, Add, CheckBox, x1080 y162 w14 h14 BackgroundTrans gKey12Enter vKey12Enter Checked%Key12Enter%,
  934. Gui, Add, CheckBox, x1080 y192 w14 h14 BackgroundTrans gKey13Enter vKey13Enter Checked%Key13Enter%,
  935. Gui, Add, CheckBox, x1080 y222 w14 h14 BackgroundTrans gKey14Enter vKey14Enter Checked%Key14Enter%,
  936. Gui, Add, CheckBox, x1080 y252 w14 h14 BackgroundTrans gKey15Enter vKey15Enter Checked%Key15Enter%,
  937. Gui, Add, CheckBox, x1080 y282 w14 h14 BackgroundTrans gKey16Enter vKey16Enter Checked%Key16Enter%,
  938. Gui, Add, CheckBox, x1080 y312 w14 h14 BackgroundTrans gKey17Enter vKey17Enter Checked%Key17Enter%,
  939. Gui, Add, CheckBox, x1080 y342 w14 h14 BackgroundTrans gKey18Enter vKey18Enter Checked%Key18Enter%,
  940. Gui, Add, CheckBox, x1080 y372 w14 h14 BackgroundTrans gKey19Enter vKey19Enter Checked%Key19Enter%,
  941. Gui, Add, CheckBox, x1080 y402 w14 h14 BackgroundTrans gKey20Enter vKey20Enter Checked%Key20Enter%,
  942. Gui, Font, S12 CWHITE Bold, Calibri
  943. Gui, Add, Text, x22 y539 w220 h30 BackgroundTrans gURLKlick, www.lyd-roleplay.de
  944. Gui, Add, Text, x490 y539 w170 h20 BackgroundTrans gInfo, Update Server: %serverstatus%
  945. Gui, Add, Text, x955 y539 w470 h120 BackgroundTrans gInfo, Version %version% by Julian
  946. Gui, Show, xCenter x311 y87 h565 w1115, [LyD] Keybinder %version%
  947. Hotkey, ~%Key1%, Hotkey1
  948. Hotkey, ~%Key2%, Hotkey2
  949. Hotkey, ~%Key3%, Hotkey3
  950. Hotkey, ~%Key4%, Hotkey4
  951. Hotkey, ~%Key5%, Hotkey5
  952. Hotkey, ~%Key6%, Hotkey6
  953. Hotkey, ~%Key7%, Hotkey7
  954. Hotkey, ~%Key8%, Hotkey8
  955. Hotkey, ~%Key9%, Hotkey9
  956. Hotkey, ~%Key10%, Hotkey10
  957. Hotkey, ~%Key11%, Hotkey11
  958. Hotkey, ~%Key12%, Hotkey12
  959. Hotkey, ~%Key13%, Hotkey13
  960. Hotkey, ~%Key14%, Hotkey14
  961. Hotkey, ~%Key15%, Hotkey15
  962. Hotkey, ~%Key16%, Hotkey16
  963. Hotkey, ~%Key17%, Hotkey17
  964. Hotkey, ~%Key18%, Hotkey18
  965. Hotkey, ~%Key19%, Hotkey19
  966. Hotkey, ~%Key20%, Hotkey20
  967. FileDelete, %a_MyDocuments%\LYD-Keybinder\update.bat
  968. if(serverstatus == "Online")
  969. {
  970. UrlDownloadToFile,%server%/keybinder/%verfile%, %verfile%
  971. FileReadLine , newver , %verfile% , 1
  972. FileReadLine , neuurl , %verfile% , 2
  973. FileDelete, %verfile%
  974. if ((version < newver) && (newver != "<!DOCTYPE html>") && (newver != "<html>")) {
  975. newververfügbar := 1
  976. SoundPlay *-1
  977. Gui, 10:+AlwaysOnTop
  978. Gui, 10:Add, Picture, x-8 y-1 w870 h360 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  979. Gui, 10:Add, Picture, x-8 y-1 w640 h40 , %a_MyDocuments%\LYD-Keybinder\images\1.png
  980. Gui, 10:Font, S14 CWHITE Bold, Calibri
  981. Gui, 10:Add, Text, x52 y9 w220 h20 +BackgroundTrans, Es ist ein Update verfügbar!
  982. Gui, 10:Font, S12 CWHITE Bold, Calibri
  983. Gui, 10:Add, Text, x22 y59 w200 h20 +BackgroundTrans, Aktuelle Version: %version%
  984. Gui, 10:Add, Text, x22 y89 w200 h20 +BackgroundTrans, Neue Version: %newver%
  985. Gui, 10:Font, S12 CWHITE Bold, Calibri
  986. Gui, 10:Add, Text, x11 y139 w300 h20 +BackgroundTrans, Möchtest du dieses Update herunterladen?
  987. Gui, 10:Font, S10 CWHITE Bold, Calibri
  988. Gui, 10:Add, Button, x12 y179 w90 h30 gUpdateYes, Ja
  989. Gui, 10:Add, Button, x222 y179 w90 h30 gUpdateNo, Nein
  990. Gui, 10:Show, x311 y150 h218 w326, Update
  991. }
  992. }
  993. Hotkey, ~%ToggleKey%, ToggleHotKey
  994. Suspend , Off
  995. return
  996. GuiClose:
  997. ExitApp
  998. return
  999. UpdateYes:
  1000. if(!A_IsAdmin) {
  1001. MsgBox, 64,Fehler, Zum Update den Keybinder als Administrator ausführen!
  1002. ExitApp
  1003. } else {
  1004. Gui, Hide
  1005. Gui, 10:Hide
  1006. Gui, 3:+AlwaysOnTop
  1007. Gui, 3:Font, S8 CRED Bold, Verdana
  1008. Gui, 3:Add, Picture, x-8 y-1 w550 h30 , %a_MyDocuments%\LYD-Keybinder\images\1.png
  1009. Gui, 3:Add, Picture, x-8 y29 w670 h370 , %a_MyDocuments%\LYD-Keybinder\images\3.png
  1010. Gui, 3:Add, Picture, x12 y39 w480 h140 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  1011. Gui, 3:Add, Picture, x12 y189 w480 h20 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  1012. Gui, 3:Font, S14 CWHITE Bold, Calibri
  1013. Gui, 3:Add, Text, x177 y-1 w150 h20 +BackgroundTrans, Keybinder Updater
  1014. Gui, 3:Font, S12 CWHITE Bold, Calibri
  1015. Gui, 3:Add, Text, x147 y49 w210 h20 +BackgroundTrans, Update wird heruntergeladen
  1016. Gui, 3:Add, Progress, vUpdateBar -Smooth 0x8 x117 y89 w270 h30
  1017. Gui, 3:Add, Button, x202 y139 w100 h30 gUpdateCancel, Abbrechen
  1018. Gui, 3:Font, S12 CWHITE Bold, Calibri
  1019. Gui, 3:Add, Text, x22 y189 w150 h20 +BackgroundTrans, www.lyd-roleplay.de
  1020. Gui, 3:Add, Text, x402 y189 w150 h20 +BackgroundTrans, By Julian %version%
  1021. Gui, 3:Show, x127 y87 h210 w503, Updater
  1022. Urldownloadtofile,%neuurl%, LYD-Keybinder %newver%.exe
  1023. BatchFile=
  1024. (
  1025. Ping 127.0.0.1
  1026. Del update.bat
  1027. cd "%A_ScriptFullPath%"
  1028. Del "%A_ScriptName%"
  1029. "LYD-Keybinder %newver%"
  1030. )
  1031. FileDelete, %a_MyDocuments%\LYD-Keybinder\update.bat
  1032. FileAppend,%BatchFile%, %a_MyDocuments%\LYD-Keybinder\update.bat
  1033. Sleep, 2000
  1034. Run, %a_MyDocuments%\LYD-Keybinder\update.bat,,hide
  1035. Exitapp
  1036. }
  1037. return
  1038. UpdateNo:
  1039. Gui, 10:Destroy
  1040. return
  1041. URLKlick:
  1042. IfNotEqual, FirstTimeA7, No
  1043. {
  1044. Gui, 7:+AlwaysOnTop
  1045. Gui, 7:Add, Picture, x-8 y-1 w570 h280 , %a_MyDocuments%\SAPD-Keybinder\images\3.png
  1046. Gui, 7:Add, Picture, x-8 y-1 w570 h40 , %a_MyDocuments%\SAPD-Keybinder\images\1.png
  1047. Gui, 7:Add, Picture, x12 y49 w190 h160 , %a_MyDocuments%\SAPD-Keybinder\images\4.png
  1048. Gui, 7:Font, S14 CWHITE Bold, Calibri
  1049. Gui, 7:Add, Text, x12 y9 w130 h20 +BackgroundTrans, Ziel auswählen:
  1050. Gui, 7:Font, S14 CWHITE Bold, Calibri
  1051. Gui, 7:Add, Text, x32 y59 w100 h20 +BackgroundTrans gZumForum, Zum Forum
  1052. Gui, 7:Add, Text, x32 y119 w100 h20 +BackgroundTrans gZumUCP, Zum UCP
  1053. Gui, 7:Add, Text, x32 y89 w80 h20 +BackgroundTrans gZumShop, Zum Shop
  1054. Gui, 7:Add, Text, x32 y179 w200 h20 +Lowercase +BackgroundTrans gTS, Teamspeak starten
  1055. Gui, 7:Add, Text, x32 y149 w150 h20 +BackgroundTrans gSAMPStart, SA:MP starten
  1056. Gui, 7:Show, x678 y269 h221 w214, Dienste
  1057. FirstTimeA7 = No
  1058. }
  1059. Gui, 7:Show
  1060. Return
  1061. ZumForum:
  1062. run, https://www.lyd-roleplay.de/forum
  1063. return
  1064. ZumUCP:
  1065. run, http://ucp.lyd-roleplay.de
  1066. return
  1067. ZumShop:
  1068. run, https://www.lyd-roleplay.de/shop
  1069. return
  1070. TS:
  1071. run, ts3server://teamspeak.lyd-roleplay.de?port=9987
  1072. return
  1073. SAMPStart:
  1074. run, samp://server.lyd-roleplay.de:7777
  1075. return
  1076. Info:
  1077. MsgBox, 0, Info, Keybinder Version: %version%`nStand: %lastupdate%`nServer Status: %serverstatus%`nOS: %A_OSVersion%`n`nDer Keybinder wurde entwickelt von Julian`n`nBei Fragen, Wünschen, oder Probleme an Julian wenden.`n`nwww.lyd-roleplay.de`nadmin@julianrecke.net
  1078. return
  1079. VersionWarnWeiter:
  1080. Gui, 8:Hide
  1081. return
  1082. VersionWarnNoWarn:
  1083. Gui, 8:Hide
  1084. IniWrite, 1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, NoVersionWarn
  1085. return
  1086. VersionWarnDownload:
  1087. Gui, 8:Hide
  1088. if(!A_IsAdmin)
  1089. {
  1090. MsgBox, 64,Fehler, Zum Download den Keybinder als Administrator ausführen!
  1091. ExitApp
  1092. }
  1093. MsgBox, 0, Download, SAMP 0.3z R2 wird heruntergeladen und anschließend ausgeführt, 5
  1094. Urldownloadtofile, http://dl.gta-sa-mp.de/samp/sa-mp-0.3z-R2-install.exe, sa-mp-0.3z-R2-install.exe
  1095. IfWinExist, GTA:SA:MP
  1096. WinClose
  1097. IfWinExist, SA-MP 0.3
  1098. WinClose
  1099. Run, sa-mp-0.3z-R2-install.exe
  1100. ExitApp
  1101. return
  1102. Gotoforum:
  1103. run, https://www.lyd-roleplay.de/forum
  1104. return
  1105. Variablen:
  1106. CustomMsgBox("Variablen","Variablen für den Keybinder:`n`n`nDiese Variablen werden ohne Anführungszeichen in das Textfeld eingegeben und durch den angegebenen Wert automatisch ersetzt.`n`n'{Space}' - Damit kannst du am Ende eines Textes ein Leerzeichen einfügen.`n`n'{Username}' - Fügt deinen Spielernamen ein.`n`n'{PlayerId}' - Fügt deine ID ein.`n`n'{PlayerScore}' - Fügt dein Level ein.`n`n'{PlayerPing}' - Fügt deine Ping Zeit ein.`n`n'{PlayerHealth}' - Fügt deine HP-Anzahl ein.`n`n'{PlayerArmor}' - Fügt deine Armor-Anzahl ein.`n`n'{PlayerMoney}' - Fügt den Geldwert auf deiner Hand ein.`n`n'{PlayerZone}' - Fügt den Namen der aktuellen Zone ein.`n`n'{PlayerCity}' - Fügt den Namen der aktuellen Stadt ein.`n`n'{Time}' - Fügt die aktuelle Uhrzeit ein. (hh:mm) `n`n`n`nBei weiteren Fragen oder Problemen wende dich an Julian","16 Calibri","cWHITE Bold")
  1107. return
  1108. Help:
  1109. CustomMsgBox("Keybinder Hilfe","Hilfe zum LyD Keybinder " version " Stand: " lastupdate "`n`n`nBei den Feldern 'Text' trägst du das ein, was im Chat eingegeben werden soll, also dein Text/Befehl. `n`nUm die Taste auszuwählen, welche diesen Text/Befehl abschicken soll, drückst du in das jeweilige Feld 'Taste' und drückst die Wunschtaste auf deiner Tastatur.`n`nDas Häckchen bei 'An' schaltet die komplette Funktion des jeweiligen Keybinds aus. `n`nBei 'Enter' legst du fest, ob nach dem eingegebenen Text/Befehl Enter gedrückt werden soll oder der Chat offen bleiben soll.`n`nWenn du am Ende eines Textes ein Leerzeichen einfügen möchtest nutze dazu '{Space}'`n`nMit '&&&&' kannst du mehrere Befehle auf eine Taste legen. Wenn der Befehl direkt abgeschickt werden soll, muss ein '{Return} folgen. `nBeispiel: '/motor{Return}&&&&/flock{Return}&&&&/licht{Return}' Hierbei wird /motor, /flock und /licht mit einer Taste abgeschickt.`nDie 'Enter' Checkbox wird hierbei ignoriert.`n`n`n`nBei weiteren Fragen oder Problemen wende dich an Julian","14 Calibri","cWHITE Bold")
  1110. return
  1111. KillCounterGui:
  1112. IfNotEqual, FirstTimeA, No
  1113. {
  1114. Gui, 9:Add, Picture, x-8 y-1 w720 h420 , %a_MyDocuments%\LYD-Keybinder\images\3.png
  1115. Gui, 9:Add, Picture, x12 y49 w450 h200 , %a_MyDocuments%\LYD-Keybinder\images\4.png
  1116. Gui, 9:Add, Picture, x-8 y-1 w710 h40 , %a_MyDocuments%\LYD-Keybinder\images\1.png
  1117. Gui, 9:Font, S10 CBLACK Bold, Calibri
  1118. Gui, 9:Add, Edit, x92 y109 w360 h20 vKillCounterText gKillCounterTextS, %KillCounterText%
  1119. Gui, 9:Font, S12 CWHITE Bold, Calibri
  1120. Gui, 9:Add, Text, x22 y9 w90 h20 +BackgroundTrans, Kill Counter
  1121. Gui, 9:Add, Text, x22 y79 w180 h30 +BackgroundTrans, Kills insgesammt: %Kills%
  1122. Gui, 9:Add, Text, x22 y109 w60 h20 +BackgroundTrans , Kill Text:
  1123. Gui, 9:Font, S10 CWHITE Bold, Calibri
  1124. Gui, 9:Add, Text, x22 y159 w460 h20 +BackgroundTrans, Du kannst im Textfeld {Kills} benutzen`, um die Anzahl deiner Kills auszugeben.
  1125. Gui, 9:Add, Text, x22 y179 w300 h20 +BackgroundTrans, Beispiel: /ic Snack`, Nr. {Kills}
  1126. Gui, 9:Add, Button, x352 y209 w100 h20 gResetKillCounter, Zurücksetzen
  1127. Gui, 9:Font, S12 CWHITE Bold, Calibri
  1128. Gui, 9:Add, CheckBox, x22 y62 w14 h14 +BackgroundTrans vKillCounterToggle gKillCounterToggleS Checked%KillCounterToggle%
  1129. Gui, 9:Add, Text, x42 y59 w90 h20 +BackgroundTrans, Aktivieren
  1130. Gui, 9: +AlwaysOnTop
  1131. Gui, 9:Show, x127 xCenter y87 h262 w473, Kill Counter
  1132. FirstTimeA = No
  1133. }
  1134. Gui, 9:Show
  1135. return
  1136. KillCounterToggleS:
  1137. GuiControlGet, KillCounterToggle, 9:,KillCounterToggle
  1138. IniWrite, %KillCounterToggle%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterToggle
  1139. return
  1140. KillCounterTextS:
  1141. GuiControlGet, KillCounterText, 9:,KillCounterText
  1142. IniWrite, %KillCounterText%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
  1143. return
  1144. SaveKillCounter:
  1145. Gui, 9:Hide
  1146. return
  1147. ResetKillCounter:
  1148. Kills := 0
  1149. IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
  1150. Reload
  1151. return
  1152. CustomMsgBox(Title,Message,Font="",FontOptions="",WindowColor="333333")
  1153. {
  1154. Gui,66:Destroy
  1155. Gui,66:Color,%WindowColor%
  1156. Gui,66:Font,%FontOptions%,%Font%
  1157. Gui,66:Add,Text,,%Message%
  1158. Gui,66:Font
  1159. GuiControlGet,Text,66:Pos,Static1
  1160. Gui,66:Add,Button,% "Default y+10 w75 g66OK xp+" (TextW / 2) - 38 ,OK
  1161. Gui,66:-MinimizeBox
  1162. Gui,66:-MaximizeBox
  1163. SoundPlay,*-1
  1164. Gui,66:Show,,%Title%
  1165. Gui,66:+LastFound
  1166. WinWaitClose
  1167. Gui,66:Destroy
  1168. return
  1169. 66OK:
  1170. Gui,66:Destroy
  1171. return
  1172. }
  1173. DownloadBarTimer:
  1174. GuiControl, 3:, UpdateBar, 1
  1175. Return
  1176. UpdateBarTimer:
  1177. GuiControl, 4:, DownloadBar, 1
  1178. Return
  1179. UpdateCancel:
  1180. Filedelete,update.bat
  1181. ExitApp
  1182. Return
  1183. Key1Status:
  1184. Key1Status := !Key1Status
  1185. return
  1186. Key2Status:
  1187. Key2Status := !Key2Status
  1188. return
  1189. Key3Status:
  1190. Key3Status := !Key3Status
  1191. return
  1192. Key4Status:
  1193. Key4Status := !Key4Status
  1194. return
  1195. Key5Status:
  1196. Key5Status := !Key5Status
  1197. return
  1198. Key6Status:
  1199. Key6Status := !Key6Status
  1200. return
  1201. Key7Status:
  1202. Key7Status := !Key7Status
  1203. return
  1204. Key8Status:
  1205. Key8Status := !Key8Status
  1206. return
  1207. Key9Status:
  1208. Key9Status := !Key9Status
  1209. return
  1210. Key10Status:
  1211. Key10Status := !Key10Status
  1212. return
  1213. Key11Status:
  1214. Key11Status := !Key11Status
  1215. return
  1216. Key12Status:
  1217. Key12Status := !Key12Status
  1218. return
  1219. Key13Status:
  1220. Key13Status := !Key13Status
  1221. return
  1222. Key14Status:
  1223. Key14Status := !Key14Status
  1224. return
  1225. Key15Status:
  1226. Key15Status := !Key15Status
  1227. return
  1228. Key16Status:
  1229. Key16Status := !Key16Status
  1230. return
  1231. Key17Status:
  1232. Key17Status := !Key17Status
  1233. return
  1234. Key18Status:
  1235. Key18Status := !Key18Status
  1236. return
  1237. Key19Status:
  1238. Key19Status := !Key19Status
  1239. return
  1240. Key20Status:
  1241. Key20Status := !Key20Status
  1242. return
  1243. Key21Status:
  1244. Key21Status := !Key21Status
  1245. return
  1246. Key22Status:
  1247. Key22Status := !Key22Status
  1248. return
  1249. Key23Status:
  1250. Key23Status := !Key23Status
  1251. return
  1252. Key24Status:
  1253. Key24Status := !Key24Status
  1254. return
  1255. Key25Status:
  1256. Key25Status := !Key25Status
  1257. return
  1258. Key26Status:
  1259. Key26Status := !Key26Status
  1260. return
  1261. Key27Status:
  1262. Key27Status := !Key27Status
  1263. return
  1264. Key28Status:
  1265. Key28Status := !Key28Status
  1266. return
  1267. Key29Status:
  1268. Key29Status := !Key29Status
  1269. return
  1270. Key30Status:
  1271. Key30Status := !Key30Status
  1272. return
  1273. Key31Status:
  1274. Key31Status := !Key31Status
  1275. return
  1276. Key32Status:
  1277. Key32Status := !Key32Status
  1278. return
  1279. Key33Status:
  1280. Key33Status := !Key33Status
  1281. return
  1282. Key34Status:
  1283. Key34Status := !Key34Status
  1284. return
  1285. Key35Status:
  1286. Key35Status := !Key35Status
  1287. return
  1288. Key36Status:
  1289. Key36Status := !Key36Status
  1290. return
  1291. Key37Status:
  1292. Key37Status := !Key37Status
  1293. return
  1294. Key38Status:
  1295. Key38Status := !Key38Status
  1296. return
  1297. Key39Status:
  1298. Key39Status := !Key39Status
  1299. return
  1300. Key40Status:
  1301. Key40Status := !Key40Status
  1302. return
  1303. Key1Enter:
  1304. Key1Enter := !Key1Enter
  1305. return
  1306. Key2Enter:
  1307. Key2Enter := !Key2Enter
  1308. return
  1309. Key3Enter:
  1310. Key3Enter := !Key3Enter
  1311. return
  1312. Key4Enter:
  1313. Key4Enter := !Key4Enter
  1314. return
  1315. Key5Enter:
  1316. Key5Enter := !Key5Enter
  1317. return
  1318. Key6Enter:
  1319. Key6Enter := !Key6Enter
  1320. return
  1321. Key7Enter:
  1322. Key7Enter := !Key7Enter
  1323. return
  1324. Key8Enter:
  1325. Key8Enter := !Key8Enter
  1326. return
  1327. Key9Enter:
  1328. Key9Enter := !Key9Enter
  1329. return
  1330. Key10Enter:
  1331. Key10Enter := !Key10Enter
  1332. return
  1333. Key11Enter:
  1334. Key11Enter := !Key11Enter
  1335. return
  1336. Key12Enter:
  1337. Key12Enter := !Key12Enter
  1338. return
  1339. Key13Enter:
  1340. Key13Enter := !Key13Enter
  1341. return
  1342. Key14Enter:
  1343. Key14Enter := !Key14Enter
  1344. return
  1345. Key15Enter:
  1346. Key15Enter := !Key15Enter
  1347. return
  1348. Key16Enter:
  1349. Key16Enter := !Key16Enter
  1350. return
  1351. Key17Enter:
  1352. Key17Enter := !Key17Enter
  1353. return
  1354. Key18Enter:
  1355. Key18Enter := !Key18Enter
  1356. return
  1357. Key19Enter:
  1358. Key19Enter := !Key19Enter
  1359. return
  1360. Key20Enter:
  1361. Key20Enter := !Key20Enter
  1362. return
  1363. Key21Enter:
  1364. Key21Enter := !Key21Enter
  1365. return
  1366. Key22Enter:
  1367. Key22Enter := !Key22Enter
  1368. return
  1369. Key23Enter:
  1370. Key23Enter := !Key23Enter
  1371. return
  1372. Key24Enter:
  1373. Key24Enter := !Key24Enter
  1374. return
  1375. Key25Enter:
  1376. Key25Enter := !Key25Enter
  1377. return
  1378. Key26Enter:
  1379. Key26Enter := !Key26Enter
  1380. return
  1381. Key27Enter:
  1382. Key27Enter := !Key27Enter
  1383. return
  1384. Key28Enter:
  1385. Key28Enter := !Key28Enter
  1386. return
  1387. Key29Enter:
  1388. Key29Enter := !Key29Enter
  1389. return
  1390. Key30Enter:
  1391. Key20Enter := !Key20Enter
  1392. return
  1393. Key31Enter:
  1394. Key31Enter := !Key31Enter
  1395. return
  1396. Key32Enter:
  1397. Key32Enter := !Key32Enter
  1398. return
  1399. Key33Enter:
  1400. Key33Enter := !Key33Enter
  1401. return
  1402. Key34Enter:
  1403. Key34Enter := !Key34Enter
  1404. return
  1405. Key35Enter:
  1406. Key35Enter := !Key35Enter
  1407. return
  1408. Key36Enter:
  1409. Key36Enter := !Key36Enter
  1410. return
  1411. Key37Enter:
  1412. Key37Enter := !Key37Enter
  1413. return
  1414. Key38Enter:
  1415. Key38Enter := !Key38Enter
  1416. return
  1417. Key39Enter:
  1418. Key39Enter := !Key39Enter
  1419. return
  1420. Key40Enter:
  1421. Key40Enter := !Key40Enter
  1422. return
  1423. Save:
  1424. GuiControlGet, Key1Status
  1425. IniWrite, %Key1Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Status
  1426. GuiControlGet, Key2Status
  1427. IniWrite, %Key2Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Status
  1428. GuiControlGet, Key3Status
  1429. IniWrite, %Key3Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Status
  1430. GuiControlGet, Key4Status
  1431. IniWrite, %Key4Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Status
  1432. GuiControlGet, Key5Status
  1433. IniWrite, %Key5Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Status
  1434. GuiControlGet, Key6Status
  1435. IniWrite, %Key6Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Status
  1436. GuiControlGet, Key7Status
  1437. IniWrite, %Key7Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Status
  1438. GuiControlGet, Key8Status
  1439. IniWrite, %Key8Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Status
  1440. GuiControlGet, Key9Status
  1441. IniWrite, %Key9Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Status
  1442. GuiControlGet, Key10Status
  1443. IniWrite, %Key10Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Status
  1444. GuiControlGet, Key11Status
  1445. IniWrite, %Key11Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Status
  1446. GuiControlGet, Key12Status
  1447. IniWrite, %Key12Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Status
  1448. GuiControlGet, Key13Status
  1449. IniWrite, %Key13Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Status
  1450. GuiControlGet, Key14Status
  1451. IniWrite, %Key14Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Status
  1452. GuiControlGet, Key15Status
  1453. IniWrite, %Key15Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Status
  1454. GuiControlGet, Key16Status
  1455. IniWrite, %Key16Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Status
  1456. GuiControlGet, Key17Status
  1457. IniWrite, %Key17Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Status
  1458. GuiControlGet, Key18Status
  1459. IniWrite, %Key18Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Status
  1460. GuiControlGet, Key19Status
  1461. IniWrite, %Key19Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Status
  1462. GuiControlGet, Key20Status
  1463. IniWrite, %Key20Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Status
  1464. GuiControlGet, Key1
  1465. IniWrite, %Key1%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
  1466. GuiControlGet, Key2
  1467. IniWrite, %Key2%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
  1468. GuiControlGet, Key3
  1469. IniWrite, %Key3%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
  1470. GuiControlGet, Key4
  1471. IniWrite, %Key4%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
  1472. GuiControlGet, Key5
  1473. IniWrite, %Key5%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
  1474. GuiControlGet, Key6
  1475. IniWrite, %Key6%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
  1476. GuiControlGet, Key7
  1477. IniWrite, %Key7%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
  1478. GuiControlGet, Key8
  1479. IniWrite, %Key8%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
  1480. GuiControlGet, Key9
  1481. IniWrite, %Key9%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
  1482. GuiControlGet, Key10
  1483. IniWrite, %Key10%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
  1484. GuiControlGet, Key11
  1485. IniWrite, %Key11%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
  1486. GuiControlGet, Key12
  1487. IniWrite, %Key12%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
  1488. GuiControlGet, Key13
  1489. IniWrite, %Key13%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
  1490. GuiControlGet, Key14
  1491. IniWrite, %Key14%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
  1492. GuiControlGet, Key15
  1493. IniWrite, %Key15%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
  1494. GuiControlGet, Key16
  1495. IniWrite, %Key16%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
  1496. GuiControlGet, Key17
  1497. IniWrite, %Key17%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
  1498. GuiControlGet, Key18
  1499. IniWrite, %Key18%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
  1500. GuiControlGet, Key19
  1501. IniWrite, %Key19%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
  1502. GuiControlGet, Key20
  1503. IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
  1504. GuiControlGet, Key1Text
  1505. IniWrite, %Key1Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
  1506. GuiControlGet, Key2Text
  1507. IniWrite, %Key2Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
  1508. GuiControlGet, Key3Text
  1509. IniWrite, %Key3Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
  1510. GuiControlGet, Key4Text
  1511. IniWrite, %Key4Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
  1512. GuiControlGet, Key5Text
  1513. IniWrite, %Key5Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
  1514. GuiControlGet, Key6Text
  1515. IniWrite, %Key6Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
  1516. GuiControlGet, Key7Text
  1517. IniWrite, %Key7Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
  1518. GuiControlGet, Key8Text
  1519. IniWrite, %Key8Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
  1520. GuiControlGet, Key9Text
  1521. IniWrite, %Key9Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
  1522. GuiControlGet, Key10Text
  1523. IniWrite, %Key10Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
  1524. GuiControlGet, Key11Text
  1525. IniWrite, %Key11Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
  1526. GuiControlGet, Key12Text
  1527. IniWrite, %Key12Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
  1528. GuiControlGet, Key13Text
  1529. IniWrite, %Key13Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
  1530. GuiControlGet, Key14Text
  1531. IniWrite, %Key14Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
  1532. GuiControlGet, Key15Text
  1533. IniWrite, %Key15Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
  1534. GuiControlGet, Key16Text
  1535. IniWrite, %Key16Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
  1536. GuiControlGet, Key17Text
  1537. IniWrite, %Key17Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
  1538. GuiControlGet, Key18Text
  1539. IniWrite, %Key18Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
  1540. GuiControlGet, Key19Text
  1541. IniWrite, %Key19Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
  1542. GuiControlGet, Key20Text
  1543. IniWrite, %Key20Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
  1544. GuiControlGet, Key1Enter
  1545. IniWrite, %Key1Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Enter
  1546. GuiControlGet, Key2Enter
  1547. IniWrite, %Key2Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Enter
  1548. GuiControlGet, Key3Enter
  1549. IniWrite, %Key3Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Enter
  1550. GuiControlGet, Key4Enter
  1551. IniWrite, %Key4Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Enter
  1552. GuiControlGet, Key5Enter
  1553. IniWrite, %Key5Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Enter
  1554. GuiControlGet, Key6Enter
  1555. IniWrite, %Key6Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Enter
  1556. GuiControlGet, Key7Enter
  1557. IniWrite, %Key7Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Enter
  1558. GuiControlGet, Key8Enter
  1559. IniWrite, %Key8Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Enter
  1560. GuiControlGet, Key9Enter
  1561. IniWrite, %Key9Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Enter
  1562. GuiControlGet, Key10Enter
  1563. IniWrite, %Key10Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Enter
  1564. GuiControlGet, Key11Enter
  1565. IniWrite, %Key11Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Enter
  1566. GuiControlGet, Key12Enter
  1567. IniWrite, %Key12Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Enter
  1568. GuiControlGet, Key13Enter
  1569. IniWrite, %Key13Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Enter
  1570. GuiControlGet, Key14Enter
  1571. IniWrite, %Key14Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Enter
  1572. GuiControlGet, Key15Enter
  1573. IniWrite, %Key15Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Enter
  1574. GuiControlGet, Key16Enter
  1575. IniWrite, %Key16Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Enter
  1576. GuiControlGet, Key17Enter
  1577. IniWrite, %Key17Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Enter
  1578. GuiControlGet, Key18Enter
  1579. IniWrite, %Key18Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Enter
  1580. GuiControlGet, Key19Enter
  1581. IniWrite, %Key19Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Enter
  1582. GuiControlGet, Key20Enter
  1583. IniWrite, %Key20Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Enter
  1584. GuiControlGet, ToggleKey
  1585. IniWrite, %ToggleKey%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
  1586. Reload
  1587. return
  1588. Save2:
  1589. GuiControlGet, Key21Status, 2:,Key21Status
  1590. IniWrite, %Key21Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Status
  1591. GuiControlGet, Key22Status, 2:,Key22Status
  1592. IniWrite, %Key22Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Status
  1593. GuiControlGet, Key23Status, 2:,Key23Status
  1594. IniWrite, %Key23Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Status
  1595. GuiControlGet, Key24Status, 2:,Key24Status
  1596. IniWrite, %Key24Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Status
  1597. GuiControlGet, Key25Status, 2:,Key25Status
  1598. IniWrite, %Key25Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Status
  1599. GuiControlGet, Key26Status, 2:,Key26Status
  1600. IniWrite, %Key26Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Status
  1601. GuiControlGet, Key27Status, 2:,Key27Status
  1602. IniWrite, %Key27Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Status
  1603. GuiControlGet, Key28Status, 2:,Key28Status
  1604. IniWrite, %Key28Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Status
  1605. GuiControlGet, Key29Status, 2:,Key29Status
  1606. IniWrite, %Key29Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Status
  1607. GuiControlGet, Key30Status, 2:,Key30Status
  1608. IniWrite, %Key30Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Status
  1609. GuiControlGet, Key31Status, 2:,Key31Status
  1610. IniWrite, %Key31Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Status
  1611. GuiControlGet, Key32Status, 2:,Key32Status
  1612. IniWrite, %Key32Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Status
  1613. GuiControlGet, Key33Status, 2:,Key33Status
  1614. IniWrite, %Key33Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Status
  1615. GuiControlGet, Key34Status, 2:,Key34Status
  1616. IniWrite, %Key34Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Status
  1617. GuiControlGet, Key35Status, 2:,Key35Status
  1618. IniWrite, %Key35Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Status
  1619. GuiControlGet, Key36Status, 2:,Key36Status
  1620. IniWrite, %Key36Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Status
  1621. GuiControlGet, Key37Status, 2:,Key37Status
  1622. IniWrite, %Key37Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Status
  1623. GuiControlGet, Key38Status, 2:,Key38Status
  1624. IniWrite, %Key38Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Status
  1625. GuiControlGet, Key39Status, 2:,Key39Status
  1626. IniWrite, %Key39Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Status
  1627. GuiControlGet, Key40Status, 2:,Key40Status
  1628. IniWrite, %Key40Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Status
  1629. GuiControlGet, Key21, 2:,Key21
  1630. IniWrite, %Key21%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
  1631. GuiControlGet, Key22, 2:,Key22
  1632. IniWrite, %Key22%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
  1633. GuiControlGet, Key23, 2:,Key23
  1634. IniWrite, %Key23%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
  1635. GuiControlGet, Key24, 2:,Key24
  1636. IniWrite, %Key24%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
  1637. GuiControlGet, Key25, 2:,Key25
  1638. IniWrite, %Key25%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
  1639. GuiControlGet, Key26, 2:,Key26
  1640. IniWrite, %Key26%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
  1641. GuiControlGet, Key27, 2:,Key27
  1642. IniWrite, %Key27%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
  1643. GuiControlGet, Key28, 2:,Key28
  1644. IniWrite, %Key28%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
  1645. GuiControlGet, Key29, 2:,Key29
  1646. IniWrite, %Key29%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
  1647. GuiControlGet, Key30, 2:,Key30
  1648. IniWrite, %Key30%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
  1649. GuiControlGet, Key31, 2:,Key31
  1650. IniWrite, %Key31%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
  1651. GuiControlGet, Key32, 2:,Key32
  1652. IniWrite, %Key32%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
  1653. GuiControlGet, Key33, 2:,Key33
  1654. IniWrite, %Key33%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
  1655. GuiControlGet, Key34, 2:,Key34
  1656. IniWrite, %Key34%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
  1657. GuiControlGet, Key35, 2:,Key35
  1658. IniWrite, %Key35%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
  1659. GuiControlGet, Key36, 2:,Key36
  1660. IniWrite, %Key36%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
  1661. GuiControlGet, Key37, 2:,Key37
  1662. IniWrite, %Key37%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
  1663. GuiControlGet, Key38, 2:,Key38
  1664. IniWrite, %Key38%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
  1665. GuiControlGet, Key39, 2:,Key39
  1666. IniWrite, %Key39%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
  1667. GuiControlGet, Key40, 2:,Key40
  1668. IniWrite, %Key40%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
  1669. GuiControlGet, Key21Text, 2:,Key21Text
  1670. IniWrite, %Key21Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
  1671. GuiControlGet, Key22Text, 2:,Key22Text
  1672. IniWrite, %Key22Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
  1673. GuiControlGet, Key23Text, 2:,Key23Text
  1674. IniWrite, %Key23Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
  1675. GuiControlGet, Key24Text, 2:,Key24Text
  1676. IniWrite, %Key24Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
  1677. GuiControlGet, Key25Text, 2:,Key25Text
  1678. IniWrite, %Key25Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
  1679. GuiControlGet, Key26Text, 2:,Key26Text
  1680. IniWrite, %Key26Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
  1681. GuiControlGet, Key27Text, 2:,Key27Text
  1682. IniWrite, %Key27Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
  1683. GuiControlGet, Key28Text, 2:,Key28Text
  1684. IniWrite, %Key28Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
  1685. GuiControlGet, Key29Text, 2:,Key29Text
  1686. IniWrite, %Key29Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
  1687. GuiControlGet, Key30Text, 2:,Key30Text
  1688. IniWrite, %Key30Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
  1689. GuiControlGet, Key31Text, 2:,Key31Text
  1690. IniWrite, %Key31Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
  1691. GuiControlGet, Key32Text, 2:,Key32Text
  1692. IniWrite, %Key32Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
  1693. GuiControlGet, Key33Text, 2:,Key33Text
  1694. IniWrite, %Key33Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
  1695. GuiControlGet, Key34Text, 2:,Key34Text
  1696. IniWrite, %Key34Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
  1697. GuiControlGet, Key35Text, 2:,Key35Text
  1698. IniWrite, %Key35Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
  1699. GuiControlGet, Key36Text, 2:,Key36Text
  1700. IniWrite, %Key36Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
  1701. GuiControlGet, Key37Text, 2:,Key37Text
  1702. IniWrite, %Key37Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
  1703. GuiControlGet, Key38Text, 2:,Key38Text
  1704. IniWrite, %Key38Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
  1705. GuiControlGet, Key39Text, 2:,Key39Text
  1706. IniWrite, %Key39Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
  1707. GuiControlGet, Key40Text, 2:,Key40Text
  1708. IniWrite, %Key40Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
  1709. GuiControlGet, Key21Enter, 2:,Key21Enter
  1710. IniWrite, %Key21Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Enter
  1711. GuiControlGet, Key22Enter, 2:,Key22Enter
  1712. IniWrite, %Key22Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Enter
  1713. GuiControlGet, Key23Enter, 2:,Key23Enter
  1714. IniWrite, %Key23Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Enter
  1715. GuiControlGet, Key24Enter, 2:,Key24Enter
  1716. IniWrite, %Key24Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Enter
  1717. GuiControlGet, Key25Enter, 2:,Key25Enter
  1718. IniWrite, %Key25Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Enter
  1719. GuiControlGet, Key26Enter, 2:,Key26Enter
  1720. IniWrite, %Key26Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Enter
  1721. GuiControlGet, Key27Enter, 2:,Key27Enter
  1722. IniWrite, %Key27Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Enter
  1723. GuiControlGet, Key28Enter, 2:,Key28Enter
  1724. IniWrite, %Key28Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Enter
  1725. GuiControlGet, Key29Enter, 2:,Key29Enter
  1726. IniWrite, %Key29Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Enter
  1727. GuiControlGet, Key30Enter, 2:,Key30Enter
  1728. IniWrite, %Key30Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Enter
  1729. GuiControlGet, Key31Enter, 2:,Key31Enter
  1730. IniWrite, %Key31Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Enter
  1731. GuiControlGet, Key32Enter, 2:,Key32Enter
  1732. IniWrite, %Key32Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Enter
  1733. GuiControlGet, Key33Enter, 2:,Key33Enter
  1734. IniWrite, %Key33Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Enter
  1735. GuiControlGet, Key34Enter, 2:,Key34Enter
  1736. IniWrite, %Key34Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Enter
  1737. GuiControlGet, Key35Enter, 2:,Key35Enter
  1738. IniWrite, %Key35Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Enter
  1739. GuiControlGet, Key36Enter, 2:,Key36Enter
  1740. IniWrite, %Key36Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Enter
  1741. GuiControlGet, Key37Enter, 2:,Key37Enter
  1742. IniWrite, %Key37Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Enter
  1743. GuiControlGet, Key38Enter, 2:,Key38Enter
  1744. IniWrite, %Key38Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Enter
  1745. GuiControlGet, Key39Enter, 2:,Key39Enter
  1746. IniWrite, %Key39Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Enter
  1747. GuiControlGet, Key40Enter, 2:,Key34Enter
  1748. IniWrite, %Key40Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Enter
  1749. Reload
  1750. return
  1751. Hotkey1:
  1752. If(Key1Status = 0)
  1753. return
  1754. If(Key1Enter = 1) {
  1755. GuiControlGet, Key1Text
  1756. sendKeybind(Key1Text)
  1757. }
  1758. else {
  1759. GuiControlGet, Key1Text
  1760. SendChatNoAPI(Key1Text)
  1761. }
  1762. return
  1763. Hotkey2:
  1764. If(Key2Status = 0)
  1765. return
  1766. If(Key2Enter = 1) {
  1767. GuiControlGet, Key2Text
  1768. sendKeybind(Key2Text)
  1769. }
  1770. else {
  1771. GuiControlGet, Key2Text
  1772. SendChatNoAPI(Key2Text)
  1773. }
  1774. return
  1775. Hotkey3:
  1776. If(Key3Status = 0)
  1777. return
  1778. If(Key3Enter = 1) {
  1779. GuiControlGet, Key3Text
  1780. sendKeybind(Key3Text)
  1781. }
  1782. else {
  1783. GuiControlGet, Key3Text
  1784. SendChatNoAPI(Key3Text)
  1785. }
  1786. return
  1787. Hotkey4:
  1788. If(Key4Status = 0)
  1789. return
  1790. If(Key4Enter = 1) {
  1791. GuiControlGet, Key4Text
  1792. sendKeybind(Key4Text)
  1793. }
  1794. else {
  1795. GuiControlGet, Key4Text
  1796. SendChatNoAPI(Key4Text)
  1797. }
  1798. return
  1799. Hotkey5:
  1800. If(Key5Status = 0)
  1801. return
  1802. If(Key5Enter = 1) {
  1803. GuiControlGet, Key5Text
  1804. sendKeybind(Key5Text)
  1805. }
  1806. else {
  1807. GuiControlGet, Key5Text
  1808. SendChatNoAPI(Key5Text)
  1809. }
  1810. return
  1811. Hotkey6:
  1812. If(Key6Status = 0)
  1813. return
  1814. If(Key6Enter = 1) {
  1815. GuiControlGet, Key6Text
  1816. sendKeybind(Key6Text)
  1817. }
  1818. else {
  1819. GuiControlGet, Key6Text
  1820. SendChatNoAPI(Key6Text)
  1821. }
  1822. return
  1823. Hotkey7:
  1824. If(Key7Status = 0)
  1825. return
  1826. If(Key7Enter = 1) {
  1827. GuiControlGet, Key7Text
  1828. sendKeybind(Key7Text)
  1829. }
  1830. else {
  1831. GuiControlGet, Key7Text
  1832. SendChatNoAPI(Key7Text)
  1833. }
  1834. return
  1835. Hotkey8:
  1836. If(Key8Status = 0)
  1837. return
  1838. If(Key8Enter = 1) {
  1839. GuiControlGet, Key8Text
  1840. sendKeybind(Key8Text)
  1841. }
  1842. else {
  1843. GuiControlGet, Key8Text
  1844. SendChatNoAPI(Key8Text)
  1845. }
  1846. return
  1847. Hotkey9:
  1848. If(Key9Status = 0)
  1849. return
  1850. If(Key9Enter = 1) {
  1851. GuiControlGet, Key9Text
  1852. sendKeybind(Key9Text)
  1853. }
  1854. else {
  1855. GuiControlGet, Key9Text
  1856. SendChatNoAPI(Key9Text)
  1857. }
  1858. return
  1859. Hotkey10:
  1860. If(Key10Status = 0)
  1861. return
  1862. If(Key10Enter = 1) {
  1863. GuiControlGet, Key10Text
  1864. sendKeybind(Key10Text)
  1865. }
  1866. else {
  1867. GuiControlGet, Key10Text
  1868. SendChatNoAPI(Key10Text)
  1869. }
  1870. return
  1871. Hotkey11:
  1872. If(Key11Status = 0)
  1873. return
  1874. If(Key11Enter = 1) {
  1875. GuiControlGet, Key11Text
  1876. sendKeybind(Key11Text)
  1877. }
  1878. else {
  1879. GuiControlGet, Key11Text
  1880. SendChatNoAPI(Key11Text)
  1881. }
  1882. return
  1883. Hotkey12:
  1884. If(Key12Status = 0)
  1885. return
  1886. If(Key12Enter = 1) {
  1887. GuiControlGet, Key12Text
  1888. sendKeybind(Key12Text)
  1889. }
  1890. else {
  1891. GuiControlGet, Key12Text
  1892. SendChatNoAPI(Key12Text)
  1893. }
  1894. return
  1895. Hotkey13:
  1896. If(Key13Status = 0)
  1897. return
  1898. If(Key13Enter = 1) {
  1899. GuiControlGet, Key13ext
  1900. sendKeybind(Key13Text)
  1901. }
  1902. else {
  1903. GuiControlGet, Key13Text
  1904. SendChatNoAPI(Key13Text)
  1905. }
  1906. return
  1907. Hotkey14:
  1908. If(Key14Status = 0)
  1909. return
  1910. If(Key14Enter = 1) {
  1911. GuiControlGet, Key14Text
  1912. sendKeybind(Key14Text)
  1913. }
  1914. else {
  1915. GuiControlGet, Key14Text
  1916. SendChatNoAPI(Key14Text)
  1917. }
  1918. return
  1919. Hotkey15:
  1920. If(Key15Status = 0)
  1921. return
  1922. If(Key15Enter = 1) {
  1923. GuiControlGet, Key15Text
  1924. sendKeybind(Key15Text)
  1925. }
  1926. else {
  1927. GuiControlGet, Key15Text
  1928. SendChatNoAPI(Key15Text)
  1929. }
  1930. return
  1931. Hotkey16:
  1932. If(Key16Status = 0)
  1933. return
  1934. If(Key16Enter = 1) {
  1935. GuiControlGet, Key16Text
  1936. sendKeybind(Key16Text)
  1937. }
  1938. else {
  1939. GuiControlGet, Key16Text
  1940. SendChatNoAPI(Key16Text)
  1941. }
  1942. return
  1943. Hotkey17:
  1944. If(Key17Status = 0)
  1945. return
  1946. If(Key17Enter = 1) {
  1947. GuiControlGet, Key17Text
  1948. sendKeybind(Key17Text)
  1949. }
  1950. else {
  1951. GuiControlGet, Key17Text
  1952. SendChatNoAPI(Key17Text)
  1953. }
  1954. return
  1955. Hotkey18:
  1956. If(Key18Status = 0)
  1957. return
  1958. If(Key18Enter = 1) {
  1959. GuiControlGet, Key18Text
  1960. sendKeybind(Key18Text)
  1961. }
  1962. else {
  1963. GuiControlGet, Key18Text
  1964. SendChatNoAPI(Key18Text)
  1965. }
  1966. return
  1967. Hotkey19:
  1968. If(Key19Status = 0)
  1969. return
  1970. If(Key19Enter = 1) {
  1971. GuiControlGet, Key19Text
  1972. sendKeybind(Key19Text)
  1973. }
  1974. else {
  1975. GuiControlGet, Key19Text
  1976. SendChatNoAPI(Key19Text)
  1977. }
  1978. return
  1979. Hotkey20:
  1980. If(Key20Status = 0)
  1981. return
  1982. If(Key20Enter = 1) {
  1983. GuiControlGet, Key20Text
  1984. sendKeybind(Key20Text)
  1985. }
  1986. else {
  1987. GuiControlGet, Key20Text
  1988. SendChatNoAPI(Key1Text)
  1989. }
  1990. return
  1991. ToggleHotKey:
  1992. suspend
  1993. if ( A_IsSuspended )
  1994. {
  1995. ShowGameText("~b~] LyD ] ~r~Keybinder ~g~Aus", 2500, 3)
  1996. }
  1997. if ( !A_IsSuspended )
  1998. {
  1999. ShowGameText("~b~] LyD ] ~r~Keybinder ~g~An", 2500, 3)
  2000. }
  2001. return
  2002. KillCounter:
  2003. if(KillCounterToggle == 1) {
  2004. GetChatLine(1, chat)
  2005. if(InStr(chat,"Du hast ein Verbrechen begangen! (Mord an einem Gangmitglied) Reporter: Polizeizentrale") || InStr(chat,"Du hast ein Verbrechen begangen! (Beamten/Zivilisten Mord) Reporter: Polizeizentrale")) {
  2006. Kills++
  2007. IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
  2008. StringReplace, KillCounterTextIG, KillCounterText, {Kills}, %Kills%, All
  2009. if(KillCounterTextIG != "" && KillCounterTextIG != " ") {
  2010. sendKeybind(KillCounterTextIG)
  2011. Sleep, 100
  2012. }
  2013. }
  2014. }
  2015. return
  2016. replaceVariables(msg) {
  2017. Username := getUsername()
  2018. getPlayerIdByName(getUsername())
  2019. PlayerId := getPlayerIdByName(getUsername())
  2020. PlayerScore := getPlayerScoreById(getPlayerIdByName(getUsername()))
  2021. PlayerPing := getPlayerPingById(getPlayerIdByName(getUsername()))
  2022. PlayerHealth := getPlayerHealth()
  2023. PlayerArmor := getPlayerArmor()
  2024. PlayerMoney := getPlayerMoney()
  2025. PlayerZone := getPlayerZone()
  2026. PlayerCity := getPlayerCity()
  2027. space := " "
  2028. FormatTime,h,,HH
  2029. FormatTime,m,,mm
  2030. StringReplace, msg, msg, {Space}, %space%, All
  2031. StringReplace, msg, msg, {Username}, %Username%, All
  2032. StringReplace, msg, msg, {PlayerId}, %PlayerId% , All
  2033. StringReplace, msg, msg, {PlayerScore}, %PlayerScore%, All
  2034. StringReplace, msg, msg, {PlayerPing}, %PlayerPing%, All
  2035. StringReplace, msg, msg, {PlayerHealth}, %PlayerHealth%, All
  2036. StringReplace, msg, msg, {PlayerArmor}, %PlayerArmor%, All
  2037. StringReplace, msg, msg, {PlayerMoney}, %PlayerMoney%, All
  2038. StringReplace, msg, msg, {PlayerZone}, %PlayerZone%, All
  2039. StringReplace, msg, msg, {PlayerCity}, %PlayerCity%, All
  2040. StringReplace, msg, msg, {Time}, %h%:%m%, All
  2041. return msg
  2042. }
  2043. sendKeybind(KeyText) {
  2044. KeyText := replaceVariables(KeyText)
  2045. if (InStr(KeyText,"&&")) {
  2046. Loop, parse, KeyText, "&&",
  2047. {
  2048. msg = %A_LoopField%
  2049. if(msg != "" && msg != " ") {
  2050. IfInString, msg, {Return}
  2051. {
  2052. StringReplace, msg, msg, {Return}, , All
  2053. SendChat( msg )
  2054. } else {
  2055. msg := replaceVariables(msg)
  2056. SendInput, t%msg%
  2057. }
  2058. }
  2059. }
  2060. } else {
  2061. SendChat( KeyText )
  2062. }
  2063. return
  2064. }
  2065. SendChatNoAPI(KeyText) {
  2066. KeyText := replaceVariables(KeyText)
  2067. if (InStr(KeyText,"&&")) {
  2068. Loop, parse, KeyText, "&&",
  2069. {
  2070. msg = %A_LoopField%
  2071. if(msg != "" && msg != " ") {
  2072. IfInString, msg, {Return}
  2073. {
  2074. StringReplace, msg, msg, {Return}, , All
  2075. SendChat( msg )
  2076. } else {
  2077. msg := replaceVariables(msg)
  2078. SendInput, t%msg%
  2079. }
  2080. }
  2081. }
  2082. } else {
  2083. msg := replaceVariables(KeyText)
  2084. SendInput, t%msg%
  2085. }
  2086. return
  2087. }
  2088. isInChat() {
  2089. if(!checkHandles())
  2090. return -1
  2091. dwPtr := dwSAMP + ADDR_SAMP_INCHAT_PTR
  2092. dwAddress := readDWORD(hGTA, dwPtr) + ADDR_SAMP_INCHAT_PTR_OFF
  2093. if(ErrorLevel) {
  2094. ErrorLevel := ERROR_READ_MEMORY
  2095. return -1
  2096. }
  2097. dwInChat := readDWORD(hGTA, dwAddress)
  2098. if(ErrorLevel) {
  2099. ErrorLevel := ERROR_READ_MEMORY
  2100. return -1
  2101. }
  2102. ErrorLevel := ERROR_OK
  2103. if(dwInChat > 0) {
  2104. return true
  2105. } else {
  2106. return false
  2107. }
  2108. }
  2109. getUsername() {
  2110. if(!checkHandles())
  2111. return ""
  2112. dwAddress := dwSAMP + ADDR_SAMP_USERNAME
  2113. sUsername := readString(hGTA, dwAddress, 25)
  2114. if(ErrorLevel) {
  2115. ErrorLevel := ERROR_READ_MEMORY
  2116. return ""
  2117. }
  2118. ErrorLevel := ERROR_OK
  2119. return sUsername
  2120. }
  2121. getId() {
  2122. s:=getUsername()
  2123. return getPlayerIdByName(s)
  2124. }
  2125. SendChat(wText) {
  2126. wText := "" wText
  2127. if(!checkHandles())
  2128. return false
  2129. dwFunc:=0
  2130. if(SubStr(wText, 1, 1) == "/") {
  2131. dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
  2132. } else {
  2133. dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
  2134. }
  2135. callWithParams(hGTA, dwFunc, [["s", wText]], false)
  2136. ErrorLevel := ERROR_OK
  2137. return true
  2138. }
  2139. addChatMessage(wText) {
  2140. wText := "" wText
  2141. if(!checkHandles())
  2142. return false
  2143. dwFunc := dwSAMP + FUNC_SAMP_ADDTOCHATWND
  2144. dwChatInfo := readDWORD(hGTA, dwSAMP + ADDR_SAMP_CHATMSG_PTR)
  2145. if(ErrorLevel) {
  2146. ErrorLevel := ERROR_READ_MEMORY
  2147. return false
  2148. }
  2149. callWithParams(hGTA, dwFunc, [["p", dwChatInfo], ["s", wText]], true)
  2150. ErrorLevel := ERROR_OK
  2151. return true
  2152. }
  2153. showGameText(wText, dwTime, dwSize) {
  2154. wText := "" wText
  2155. dwTime += 0
  2156. dwTime := Floor(dwTime)
  2157. dwSize += 0
  2158. dwSize := Floor(dwSize)
  2159. if(!checkHandles())
  2160. return false
  2161. dwFunc := dwSAMP + FUNC_SAMP_SHOWGAMETEXT
  2162. callWithParams(hGTA, dwFunc, [["s", wText], ["i", dwTime], ["i", dwSize]], false)
  2163. ErrorLevel := ERROR_OK
  2164. return true
  2165. }
  2166. showDialog(dwStyle, wCaption, wInfo, wButton1 ) {
  2167. dwStyle += 0
  2168. dwStyle := Floor(dwStyle)
  2169. wCaption := "" wCaption
  2170. wInfo := "" wInfo
  2171. wButton1 := "" wButton1
  2172. if(!checkHandles())
  2173. return false
  2174. dwFunc := dwSAMP + FUNC_SAMP_SHOWDIALOG
  2175. dwAddress := readDWORD(hGTA, dwSAMP + ADDR_SAMP_SHOWDLG_PTR)
  2176. if(ErrorLevel || dwAddress==0) {
  2177. ErrorLevel := ERROR_READ_MEMORY
  2178. return false
  2179. }
  2180. writeString(hGTA, pParam1, wCaption)
  2181. if(ErrorLevel)
  2182. return false
  2183. writeString(hGTA, pParam2, wInfo)
  2184. if(ErrorLevel)
  2185. return false
  2186. writeString(hGTA, pParam3, wButton1)
  2187. if(ErrorLevel)
  2188. return false
  2189. dwLen := 5 + 7*5 + 5 + 1
  2190. VarSetCapacity(injectData, dwLen, 0)
  2191. NumPut(0xB9, injectData, 0, "UChar")
  2192. NumPut(dwAddress, injectData, 1, "UInt")
  2193. NumPut(0x68, injectData, 5, "UChar")
  2194. NumPut(0, injectData, 6, "UInt")
  2195. NumPut(0x68, injectData, 10, "UChar")
  2196. NumPut(pParam1+StrLen(wCaption), injectData, 11, "UInt")
  2197. NumPut(0x68, injectData, 15, "UChar")
  2198. NumPut(pParam3, injectData, 16, "UInt")
  2199. NumPut(0x68, injectData, 20, "UChar")
  2200. NumPut(pParam2, injectData, 21, "UInt")
  2201. NumPut(0x68, injectData, 25, "UChar")
  2202. NumPut(pParam1, injectData, 26, "UInt")
  2203. NumPut(0x68, injectData, 30, "UChar")
  2204. NumPut(dwStyle, injectData, 31, "UInt")
  2205. NumPut(0x68, injectData, 35, "UChar")
  2206. NumPut(1, injectData, 36, "UInt")
  2207. NumPut(0xE8, injectData, 40, "UChar")
  2208. offset := dwFunc - (pInjectFunc + 45)
  2209. NumPut(offset, injectData, 41, "Int")
  2210. NumPut(0xC3, injectData, 45, "UChar")
  2211. writeRaw(hGTA, pInjectFunc, &injectData, dwLen)
  2212. if(ErrorLevel)
  2213. return false
  2214. hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
  2215. if(ErrorLevel)
  2216. return false
  2217. waitForSingleObject(hThread, 0xFFFFFFFF)
  2218. closeProcess(hThread)
  2219. return true
  2220. }
  2221. playAudioStream(wUrl) {
  2222. wUrl := "" wUrl
  2223. if(!checkHandles())
  2224. return false
  2225. dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
  2226. patchRadio()
  2227. callWithParams(hGTA, dwFunc, [["s", wUrl], ["i", 0], ["i", 0], ["i", 0], ["i", 0], ["i", 0]], false)
  2228. unPatchRadio()
  2229. ErrorLevel := ERROR_OK
  2230. return true
  2231. }
  2232. stopAudioStream() {
  2233. if(!checkHandles())
  2234. return false
  2235. dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
  2236. patchRadio()
  2237. callWithParams(hGTA, dwFunc, [["i", 1]], false)
  2238. unPatchRadio()
  2239. ErrorLevel := ERROR_OK
  2240. return true
  2241. }
  2242. patchRadio()
  2243. {
  2244. if(!checkHandles())
  2245. return false
  2246. VarSetCapacity(nop, 4, 0)
  2247. NumPut(0x90909090,nop,0,"UInt")
  2248. dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
  2249. writeRaw(hGTA, dwFunc, &nop, 4)
  2250. writeRaw(hGTA, dwFunc+4, &nop, 1)
  2251. dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
  2252. writeRaw(hGTA, dwFunc, &nop, 4)
  2253. writeRaw(hGTA, dwFunc+4, &nop, 1)
  2254. return true
  2255. }
  2256. unPatchRadio()
  2257. {
  2258. if(!checkHandles())
  2259. return false
  2260. VarSetCapacity(old, 4, 0)
  2261. dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
  2262. NumPut(0x74003980,old,0,"UInt")
  2263. writeRaw(hGTA, dwFunc, &old, 4)
  2264. NumPut(0x39,old,0,"UChar")
  2265. writeRaw(hGTA, dwFunc+4, &old, 1)
  2266. dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
  2267. NumPut(0x74003980,old,0,"UInt")
  2268. writeRaw(hGTA, dwFunc, &old, 4)
  2269. NumPut(0x09,old,0,"UChar")
  2270. writeRaw(hGTA, dwFunc+4, &old, 1)
  2271. return true
  2272. }
  2273. blockChatInput() {
  2274. if(!checkHandles())
  2275. return false
  2276. VarSetCapacity(nop, 2, 0)
  2277. dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
  2278. NumPut(0x04C2,nop,0,"Short")
  2279. writeRaw(hGTA, dwFunc, &nop, 2)
  2280. dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
  2281. writeRaw(hGTA, dwFunc, &nop, 2)
  2282. return true
  2283. }
  2284. unBlockChatInput() {
  2285. if(!checkHandles())
  2286. return false
  2287. VarSetCapacity(nop, 2, 0)
  2288. dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
  2289. NumPut(0xA164,nop,0,"Short")
  2290. writeRaw(hGTA, dwFunc, &nop, 2)
  2291. dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
  2292. writeRaw(hGTA, dwFunc, &nop, 2)
  2293. return true
  2294. }
  2295. getPlayerNameById(dwId) {
  2296. dwId += 0
  2297. dwId := Floor(dwId)
  2298. if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
  2299. return ""
  2300. if(iRefreshScoreboard+iUpdateTick > A_TickCount)
  2301. {
  2302. if(oScoreboardData[dwId])
  2303. return oScoreboardData[dwId].NAME
  2304. return ""
  2305. }
  2306. if(!updateOScoreboardData())
  2307. return ""
  2308. if(oScoreboardData[dwId])
  2309. return oScoreboardData[dwId].NAME
  2310. return ""
  2311. }
  2312. getPlayerIdByName(wName) {
  2313. wName := "" wName
  2314. if(StrLen(wName) < 1 || StrLen(wName) > 24)
  2315. return -1
  2316. if(iRefreshScoreboard+iUpdateTick > A_TickCount)
  2317. {
  2318. For i, o in oScoreboardData
  2319. {
  2320. if(InStr(o.NAME,wName)==1)
  2321. return i
  2322. }
  2323. return -1
  2324. }
  2325. if(!updateOScoreboardData())
  2326. return -1
  2327. For i, o in oScoreboardData
  2328. {
  2329. if(InStr(o.NAME,wName)==1)
  2330. return i
  2331. }
  2332. return -1
  2333. }
  2334. getPlayerScoreById(dwId) {
  2335. dwId += 0
  2336. dwId := Floor(dwId)
  2337. if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
  2338. return ""
  2339. if(iRefreshScoreboard+iUpdateTick > A_TickCount)
  2340. {
  2341. if(oScoreboardData[dwId])
  2342. return oScoreboardData[dwId].SCORE
  2343. return ""
  2344. }
  2345. if(!updateOScoreboardData(1))
  2346. return ""
  2347. if(oScoreboardData[dwId])
  2348. return oScoreboardData[dwId].SCORE
  2349. return ""
  2350. }
  2351. getPlayerPingById(dwId) {
  2352. dwId += 0
  2353. dwId := Floor(dwId)
  2354. if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
  2355. return -1
  2356. if(iRefreshScoreboard+iUpdateTick > A_TickCount)
  2357. {
  2358. if(oScoreboardData[dwId])
  2359. return oScoreboardData[dwId].PING
  2360. return -1
  2361. }
  2362. if(!updateOScoreboardData(1))
  2363. return -1
  2364. if(oScoreboardData[dwId])
  2365. return oScoreboardData[dwId].PING
  2366. return -1
  2367. }
  2368. isNPCById(dwId) {
  2369. dwId += 0
  2370. dwId := Floor(dwId)
  2371. if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
  2372. return -1
  2373. if(iRefreshScoreboard+iUpdateTick > A_TickCount)
  2374. {
  2375. if(oScoreboardData[dwId])
  2376. return oScoreboardData[dwId].ISNPC
  2377. return -1
  2378. }
  2379. if(!updateOScoreboardData())
  2380. return -1
  2381. if(oScoreboardData[dwId])
  2382. return oScoreboardData[dwId].ISNPC
  2383. return -1
  2384. }
  2385. updateScoreboardDataEx() {
  2386. if(!checkHandles())
  2387. return false
  2388. dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
  2389. if(ErrorLevel || dwAddress==0) {
  2390. ErrorLevel := ERROR_READ_MEMORY
  2391. return false
  2392. }
  2393. dwFunc := dwSAMP + FUNC_UPDATESCOREBOARD
  2394. VarSetCapacity(injectData, 11, 0)
  2395. NumPut(0xB9, injectData, 0, "UChar")
  2396. NumPut(dwAddress, injectData, 1, "UInt")
  2397. NumPut(0xE8, injectData, 5, "UChar")
  2398. offset := dwFunc - (pInjectFunc + 10)
  2399. NumPut(offset, injectData, 6, "Int")
  2400. NumPut(0xC3, injectData, 10, "UChar")
  2401. writeRaw(hGTA, pInjectFunc, &injectData, 11)
  2402. if(ErrorLevel)
  2403. return false
  2404. hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
  2405. if(ErrorLevel)
  2406. return false
  2407. waitForSingleObject(hThread, 0xFFFFFFFF)
  2408. closeProcess(hThread)
  2409. return true
  2410. }
  2411. updateOScoreboardData(ex=0) {
  2412. if(!checkHandles())
  2413. return 0
  2414. oScoreboardData := []
  2415. if(ex && iRefreshScoreboard+5000 < A_TickCount)
  2416. {
  2417. if(!updateScoreboardDataEx())
  2418. return 0
  2419. }
  2420. iRefreshScoreboard := A_TickCount
  2421. dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
  2422. if(ErrorLevel || dwAddress==0) {
  2423. ErrorLevel := ERROR_READ_MEMORY
  2424. return 0
  2425. }
  2426. dwAddress := readDWORD(hGTA, dwAddress + SAMP_PPOOLS_OFFSET)
  2427. if(ErrorLevel || dwAddress==0) {
  2428. ErrorLevel := ERROR_READ_MEMORY
  2429. return 0
  2430. }
  2431. dwPlayers := readDWORD(hGTA, dwAddress + SAMP_PPOOL_PLAYER_OFFSET)
  2432. if(ErrorLevel || dwPlayers==0) {
  2433. ErrorLevel := ERROR_READ_MEMORY
  2434. return 0
  2435. }
  2436. wID := readMem(hGTA, dwPlayers + SAMP_SLOCALPLAYERID_OFFSET, 2, "Short")
  2437. if(ErrorLevel) {
  2438. ErrorLevel := ERROR_READ_MEMORY
  2439. return 0
  2440. }
  2441. dwPing := readMem(hGTA, dwPlayers + SAMP_ILOCALPLAYERPING_OFFSET, 4, "Int")
  2442. if(ErrorLevel) {
  2443. ErrorLevel := ERROR_READ_MEMORY
  2444. return 0
  2445. }
  2446. dwScore := readMem(hGTA, dwPlayers + SAMP_ILOCALPLAYERSCORE_OFFSET, 4, "Int")
  2447. if(ErrorLevel) {
  2448. ErrorLevel := ERROR_READ_MEMORY
  2449. return 0
  2450. }
  2451. dwTemp := readMem(hGTA, dwPlayers + SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET, 4, "Int")
  2452. if(ErrorLevel) {
  2453. ErrorLevel := ERROR_READ_MEMORY
  2454. return 0
  2455. }
  2456. sUsername := ""
  2457. if(dwTemp <= 0xf) {
  2458. sUsername := readString(hGTA, dwPlayers + SAMP_SZLOCALPLAYERNAME_OFFSET, 16)
  2459. if(ErrorLevel) {
  2460. ErrorLevel := ERROR_READ_MEMORY
  2461. return 0
  2462. }
  2463. }
  2464. else {
  2465. dwAddress := readDWORD(hGTA, dwPlayers + SAMP_PSZLOCALPLAYERNAME_OFFSET)
  2466. if(ErrorLevel) {
  2467. ErrorLevel := ERROR_READ_MEMORY
  2468. return 0
  2469. }
  2470. sUsername := readString(hGTA, dwAddress, 25)
  2471. if(ErrorLevel) {
  2472. ErrorLevel := ERROR_READ_MEMORY
  2473. return 0
  2474. }
  2475. }
  2476. oScoreboardData[wID] := Object("NAME", sUsername, "ID", wID, "PING", dwPing, "SCORE", dwScore, "ISNPC", 0)
  2477. Loop, % SAMP_PLAYER_MAX
  2478. {
  2479. i := A_Index-1
  2480. dwRemoteplayer := readDWORD(hGTA, dwPlayers+SAMP_PREMOTEPLAYER_OFFSET+i*4)
  2481. if(ErrorLevel) {
  2482. ErrorLevel := ERROR_READ_MEMORY
  2483. return 0
  2484. }
  2485. if(dwRemoteplayer==0)
  2486. continue
  2487. dwPing := readMem(hGTA, dwRemoteplayer + SAMP_IPING_OFFSET, 4, "Int")
  2488. if(ErrorLevel) {
  2489. ErrorLevel := ERROR_READ_MEMORY
  2490. return 0
  2491. }
  2492. dwScore := readMem(hGTA, dwRemoteplayer + SAMP_ISCORE_OFFSET, 4, "Int")
  2493. if(ErrorLevel) {
  2494. ErrorLevel := ERROR_READ_MEMORY
  2495. return 0
  2496. }
  2497. dwIsNPC := readMem(hGTA, dwRemoteplayer + SAMP_ISNPC_OFFSET, 4, "Int")
  2498. if(ErrorLevel) {
  2499. ErrorLevel := ERROR_READ_MEMORY
  2500. return 0
  2501. }
  2502. dwTemp := readMem(hGTA, dwRemoteplayer + SAMP_ISTRLENNAME___OFFSET, 4, "Int")
  2503. if(ErrorLevel) {
  2504. ErrorLevel := ERROR_READ_MEMORY
  2505. return 0
  2506. }
  2507. sUsername := ""
  2508. if(dwTemp <= 0xf)
  2509. {
  2510. sUsername := readString(hGTA, dwRemoteplayer+SAMP_SZPLAYERNAME_OFFSET, 16)
  2511. if(ErrorLevel) {
  2512. ErrorLevel := ERROR_READ_MEMORY
  2513. return 0
  2514. }
  2515. }
  2516. else {
  2517. dwAddress := readDWORD(hGTA, dwRemoteplayer + SAMP_PSZPLAYERNAME_OFFSET)
  2518. if(ErrorLevel || dwAddress==0) {
  2519. ErrorLevel := ERROR_READ_MEMORY
  2520. return 0
  2521. }
  2522. sUsername := readString(hGTA, dwAddress, 25)
  2523. if(ErrorLevel) {
  2524. ErrorLevel := ERROR_READ_MEMORY
  2525. return 0
  2526. }
  2527. }
  2528. o := Object("NAME", sUsername, "ID", i, "PING", dwPing, "SCORE", dwScore, "ISNPC", dwIsNPC)
  2529. oScoreboardData[i] := o
  2530. }
  2531. ErrorLevel := ERROR_OK
  2532. return 1
  2533. }
  2534. GetChatLine(Line, ByRef Output, timestamp=0, color=0){
  2535. chatindex := 0
  2536. FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
  2537. loop, Parse, file, `n, `r
  2538. {
  2539. if(A_LoopField)
  2540. chatindex := A_Index
  2541. }
  2542. loop, Parse, file, `n, `r
  2543. {
  2544. if(A_Index = chatindex - line){
  2545. output := A_LoopField
  2546. break
  2547. }
  2548. }
  2549. file := ""
  2550. if(!timestamp)
  2551. output := RegExReplace(output, "U)^\[\d{2}:\d{2}:\d{2}\]")
  2552. if(!color)
  2553. output := RegExReplace(output, "Ui)\{[a-f0-9]{6}\}")
  2554. return
  2555. }
  2556. getPlayerHealth() {
  2557. if(!checkHandles())
  2558. return -1
  2559. dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
  2560. if(ErrorLevel) {
  2561. ErrorLevel := ERROR_READ_MEMORY
  2562. return -1
  2563. }
  2564. dwAddr := dwCPedPtr + ADDR_CPED_HPOFF
  2565. fHealth := readFloat(hGTA, dwAddr)
  2566. if(ErrorLevel) {
  2567. ErrorLevel := ERROR_READ_MEMORY
  2568. return -1
  2569. }
  2570. ErrorLevel := ERROR_OK
  2571. return Round(fHealth)
  2572. }
  2573. getPlayerArmor() {
  2574. if(!checkHandles())
  2575. return -1
  2576. dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
  2577. if(ErrorLevel) {
  2578. ErrorLevel := ERROR_READ_MEMORY
  2579. return -1
  2580. }
  2581. dwAddr := dwCPedPtr + ADDR_CPED_ARMOROFF
  2582. fHealth := readFloat(hGTA, dwAddr)
  2583. if(ErrorLevel) {
  2584. ErrorLevel := ERROR_READ_MEMORY
  2585. return -1
  2586. }
  2587. ErrorLevel := ERROR_OK
  2588. return Round(fHealth)
  2589. }
  2590. getPlayerInteriorId() {
  2591. if(!checkHandles())
  2592. return -1
  2593. iid := readMem(hGTA, ADDR_CPED_INTID, 4, "Int")
  2594. if(ErrorLevel) {
  2595. ErrorLevel := ERROR_READ_MEMORY
  2596. return -1
  2597. }
  2598. ErrorLevel := ERROR_OK
  2599. return iid
  2600. }
  2601. getPlayerMoney() {
  2602. if(!checkHandles())
  2603. return ""
  2604. money := readMem(hGTA, ADDR_CPED_MONEY, 4, "Int")
  2605. if(ErrorLevel) {
  2606. ErrorLevel := ERROR_READ_MEMORY
  2607. return ""
  2608. }
  2609. ErrorLevel := ERROR_OK
  2610. return money
  2611. }
  2612. getPlayerWanteds() {
  2613. if(!checkHandles())
  2614. return -1
  2615. dwPtr := 0xB7CD9C
  2616. dwPtr := readDWORD(hGTA, dwPtr)
  2617. if(ErrorLevel) {
  2618. ErrorLevel := ERROR_READ_MEMORY
  2619. return -1
  2620. }
  2621. Wanteds := readDWORD(hGTA, dwPtr)
  2622. if(ErrorLevel) {
  2623. ErrorLevel := ERROR_READ_MEMORY
  2624. return -1
  2625. }
  2626. ErrorLevel := ERROR_OK
  2627. return Wanteds
  2628. }
  2629. isPlayerInAnyVehicle()
  2630. {
  2631. if(!checkHandles())
  2632. return -1
  2633. dwVehPtr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2634. if(ErrorLevel) {
  2635. ErrorLevel := ERROR_READ_MEMORY
  2636. return -1
  2637. }
  2638. return (dwVehPtr > 0)
  2639. }
  2640. isPlayerDriver() {
  2641. if(!checkHandles())
  2642. return -1
  2643. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2644. if(ErrorLevel) {
  2645. ErrorLevel := ERROR_READ_MEMORY
  2646. return -1
  2647. }
  2648. if(!dwAddr)
  2649. return -1
  2650. dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
  2651. if(ErrorLevel) {
  2652. ErrorLevel := ERROR_READ_MEMORY
  2653. return -1
  2654. }
  2655. dwVal := readDWORD(hGTA, dwAddr + ADDR_VEHICLE_DRIVER)
  2656. if(ErrorLevel) {
  2657. ErrorLevel := ERROR_READ_MEMORY
  2658. return -1
  2659. }
  2660. ErrorLevel := ERROR_OK
  2661. return (dwVal==dwCPedPtr)
  2662. }
  2663. getVehicleHealth() {
  2664. if(!checkHandles())
  2665. return -1
  2666. dwVehPtr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2667. if(ErrorLevel) {
  2668. ErrorLevel := ERROR_READ_MEMORY
  2669. return -1
  2670. }
  2671. dwAddr := dwVehPtr + ADDR_VEHICLE_HPOFF
  2672. fHealth := readFloat(hGTA, dwAddr)
  2673. if(ErrorLevel) {
  2674. ErrorLevel := ERROR_READ_MEMORY
  2675. return -1
  2676. }
  2677. ErrorLevel := ERROR_OK
  2678. return Round(fHealth)
  2679. }
  2680. getVehicleType() {
  2681. if(!checkHandles())
  2682. return 0
  2683. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2684. if(ErrorLevel) {
  2685. ErrorLevel := ERROR_READ_MEMORY
  2686. return 0
  2687. }
  2688. if(!dwAddr)
  2689. return 0
  2690. cVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_TYPE, 1, "Char")
  2691. if(ErrorLevel) {
  2692. ErrorLevel := ERROR_READ_MEMORY
  2693. return 0
  2694. }
  2695. ErrorLevel := ERROR_OK
  2696. if(!cVal)
  2697. {
  2698. mid := getVehicleModelId()
  2699. Loop % oAirplaneModels.MaxIndex()
  2700. {
  2701. if(oAirplaneModels[A_Index]==mid)
  2702. return 5
  2703. }
  2704. return 1
  2705. }
  2706. else if(cVal==5)
  2707. return 2
  2708. else if(cVal==6)
  2709. return 3
  2710. else if(cVal==9)
  2711. {
  2712. mid := getVehicleModelId()
  2713. Loop % oBikeModels.MaxIndex()
  2714. {
  2715. if(oBikeModels[A_Index]==mid)
  2716. return 6
  2717. }
  2718. return 4
  2719. }
  2720. return 0
  2721. }
  2722. getVehicleModelId() {
  2723. if(!checkHandles())
  2724. return 0
  2725. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2726. if(ErrorLevel) {
  2727. ErrorLevel := ERROR_READ_MEMORY
  2728. return 0
  2729. }
  2730. if(!dwAddr)
  2731. return 0
  2732. sVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_MODEL, 2, "Short")
  2733. if(ErrorLevel) {
  2734. ErrorLevel := ERROR_READ_MEMORY
  2735. return 0
  2736. }
  2737. ErrorLevel := ERROR_OK
  2738. return sVal
  2739. }
  2740. getVehicleModelName() {
  2741. id:=getVehicleModelId()
  2742. if(id>400 && id <611)
  2743. {
  2744. return ovehicleNames[id-399]
  2745. }
  2746. return ""
  2747. }
  2748. getVehicleLightState() {
  2749. if(!checkHandles())
  2750. return -1
  2751. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2752. if(ErrorLevel) {
  2753. ErrorLevel := ERROR_READ_MEMORY
  2754. return -1
  2755. }
  2756. if(!dwAddr)
  2757. return -1
  2758. dwVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_LIGHTSTATE, 4, "Int")
  2759. if(ErrorLevel) {
  2760. ErrorLevel := ERROR_READ_MEMORY
  2761. return -1
  2762. }
  2763. ErrorLevel := ERROR_OK
  2764. return (dwVal>0)
  2765. }
  2766. getVehicleEngineState() {
  2767. if(!checkHandles())
  2768. return -1
  2769. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2770. if(ErrorLevel) {
  2771. ErrorLevel := ERROR_READ_MEMORY
  2772. return -1
  2773. }
  2774. if(!dwAddr)
  2775. return -1
  2776. cVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_ENGINESTATE, 1, "Char")
  2777. if(ErrorLevel) {
  2778. ErrorLevel := ERROR_READ_MEMORY
  2779. return -1
  2780. }
  2781. ErrorLevel := ERROR_OK
  2782. return (cVal==24 || cVal==56 || cVal==88 || cVal==120)
  2783. }
  2784. getVehicleLockState() {
  2785. if(!checkHandles())
  2786. return -1
  2787. dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
  2788. if(ErrorLevel) {
  2789. ErrorLevel := ERROR_READ_MEMORY
  2790. return -1
  2791. }
  2792. if(!dwAddr)
  2793. return -1
  2794. dwVal := readDWORD(hGTA, dwAddr + ADDR_VEHICLE_DOORSTATE)
  2795. if(ErrorLevel) {
  2796. ErrorLevel := ERROR_READ_MEMORY
  2797. return -1
  2798. }
  2799. ErrorLevel := ERROR_OK
  2800. return (dwVal==2)
  2801. }
  2802. getCoordinates() {
  2803. if(!checkHandles())
  2804. return ""
  2805. fX := readFloat(hGTA, ADDR_POSITION_X)
  2806. if(ErrorLevel) {
  2807. ErrorLevel := ERROR_READ_MEMORY
  2808. return ""
  2809. }
  2810. fY := readFloat(hGTA, ADDR_POSITION_Y)
  2811. if(ErrorLevel) {
  2812. ErrorLevel := ERROR_READ_MEMORY
  2813. return ""
  2814. }
  2815. fZ := readFloat(hGTA, ADDR_POSITION_Z)
  2816. if(ErrorLevel) {
  2817. ErrorLevel := ERROR_READ_MEMORY
  2818. return ""
  2819. }
  2820. ErrorLevel := ERROR_OK
  2821. return [fX, fY, fZ]
  2822. }
  2823. GetPlayerPos(ByRef fX,ByRef fY,ByRef fZ) {
  2824. if(!checkHandles())
  2825. return 0
  2826. fX := readFloat(hGTA, ADDR_POSITION_X)
  2827. if(ErrorLevel) {
  2828. ErrorLevel := ERROR_READ_MEMORY
  2829. return 0
  2830. }
  2831. fY := readFloat(hGTA, ADDR_POSITION_Y)
  2832. if(ErrorLevel) {
  2833. ErrorLevel := ERROR_READ_MEMORY
  2834. return 0
  2835. }
  2836. fZ := readFloat(hGTA, ADDR_POSITION_Z)
  2837. if(ErrorLevel) {
  2838. ErrorLevel := ERROR_READ_MEMORY
  2839. return 0
  2840. }
  2841. ErrorLevel := ERROR_OK
  2842. }
  2843. initZonesAndCities() {
  2844. AddCity("Las Venturas", 685.0, 476.093, -500.0, 3000.0, 3000.0, 500.0)
  2845. AddCity("San Fierro", -3000.0, -742.306, -500.0, -1270.53, 1530.24, 500.0)
  2846. AddCity("San Fierro", -1270.53, -402.481, -500.0, -1038.45, 832.495, 500.0)
  2847. AddCity("San Fierro", -1038.45, -145.539, -500.0, -897.546, 376.632, 500.0)
  2848. AddCity("Los Santos", 480.0, -3000.0, -500.0, 3000.0, -850.0, 500.0)
  2849. AddCity("Los Santos", 80.0, -2101.61, -500.0, 1075.0, -1239.61, 500.0)
  2850. AddCity("Tierra Robada", -1213.91, 596.349, -242.99, -480.539, 1659.68, 900.0)
  2851. AddCity("Red County", -1213.91, -768.027, -242.99, 2997.06, 596.349, 900.0)
  2852. AddCity("Flint County", -1213.91, -2892.97, -242.99, 44.6147, -768.027, 900.0)
  2853. AddCity("Whetstone", -2997.47, -2892.97, -242.99, -1213.91, -1115.58, 900.0)
  2854. AddZone("Avispa Country Club", -2667.810, -302.135, -28.831, -2646.400, -262.320, 71.169)
  2855. AddZone("Easter Bay Airport", -1315.420, -405.388, 15.406, -1264.400, -209.543, 25.406)
  2856. AddZone("Avispa Country Club", -2550.040, -355.493, 0.000, -2470.040, -318.493, 39.700)
  2857. AddZone("Easter Bay Airport", -1490.330, -209.543, 15.406, -1264.400, -148.388, 25.406)
  2858. AddZone("Garcia", -2395.140, -222.589, -5.3, -2354.090, -204.792, 200.000)
  2859. AddZone("Shady Cabin", -1632.830, -2263.440, -3.0, -1601.330, -2231.790, 200.000)
  2860. AddZone("East Los Santos", 2381.680, -1494.030, -89.084, 2421.030, -1454.350, 110.916)
  2861. AddZone("LVA Freight Depot", 1236.630, 1163.410, -89.084, 1277.050, 1203.280, 110.916)
  2862. AddZone("Blackfield Intersection", 1277.050, 1044.690, -89.084, 1315.350, 1087.630, 110.916)
  2863. AddZone("Avispa Country Club", -2470.040, -355.493, 0.000, -2270.040, -318.493, 46.100)
  2864. AddZone("Temple", 1252.330, -926.999, -89.084, 1357.000, -910.170, 110.916)
  2865. AddZone("Unity Station", 1692.620, -1971.800, -20.492, 1812.620, -1932.800, 79.508)
  2866. AddZone("LVA Freight Depot", 1315.350, 1044.690, -89.084, 1375.600, 1087.630, 110.916)
  2867. AddZone("Los Flores", 2581.730, -1454.350, -89.084, 2632.830, -1393.420, 110.916)
  2868. AddZone("Starfish Casino", 2437.390, 1858.100, -39.084, 2495.090, 1970.850, 60.916)
  2869. AddZone("Easter Bay Chemicals", -1132.820, -787.391, 0.000, -956.476, -768.027, 200.000)
  2870. AddZone("Downtown Los Santos", 1370.850, -1170.870, -89.084, 1463.900, -1130.850, 110.916)
  2871. AddZone("Esplanade East", -1620.300, 1176.520, -4.5, -1580.010, 1274.260, 200.000)
  2872. AddZone("Market Station", 787.461, -1410.930, -34.126, 866.009, -1310.210, 65.874)
  2873. AddZone("Linden Station", 2811.250, 1229.590, -39.594, 2861.250, 1407.590, 60.406)
  2874. AddZone("Montgomery Intersection", 1582.440, 347.457, 0.000, 1664.620, 401.750, 200.000)
  2875. AddZone("Frederick Bridge", 2759.250, 296.501, 0.000, 2774.250, 594.757, 200.000)
  2876. AddZone("Yellow Bell Station", 1377.480, 2600.430, -21.926, 1492.450, 2687.360, 78.074)
  2877. AddZone("Downtown Los Santos", 1507.510, -1385.210, 110.916, 1582.550, -1325.310, 335.916)
  2878. AddZone("Jefferson", 2185.330, -1210.740, -89.084, 2281.450, -1154.590, 110.916)
  2879. AddZone("Mulholland", 1318.130, -910.170, -89.084, 1357.000, -768.027, 110.916)
  2880. AddZone("Avispa Country Club", -2361.510, -417.199, 0.000, -2270.040, -355.493, 200.000)
  2881. AddZone("Jefferson", 1996.910, -1449.670, -89.084, 2056.860, -1350.720, 110.916)
  2882. AddZone("Julius Thruway West", 1236.630, 2142.860, -89.084, 1297.470, 2243.230, 110.916)
  2883. AddZone("Jefferson", 2124.660, -1494.030, -89.084, 2266.210, -1449.670, 110.916)
  2884. AddZone("Julius Thruway North", 1848.400, 2478.490, -89.084, 1938.800, 2553.490, 110.916)
  2885. AddZone("Rodeo", 422.680, -1570.200, -89.084, 466.223, -1406.050, 110.916)
  2886. AddZone("Cranberry Station", -2007.830, 56.306, 0.000, -1922.000, 224.782, 100.000)
  2887. AddZone("Downtown Los Santos", 1391.050, -1026.330, -89.084, 1463.900, -926.999, 110.916)
  2888. AddZone("Redsands West", 1704.590, 2243.230, -89.084, 1777.390, 2342.830, 110.916)
  2889. AddZone("Little Mexico", 1758.900, -1722.260, -89.084, 1812.620, -1577.590, 110.916)
  2890. AddZone("Blackfield Intersection", 1375.600, 823.228, -89.084, 1457.390, 919.447, 110.916)
  2891. AddZone("Los Santos International", 1974.630, -2394.330, -39.084, 2089.000, -2256.590, 60.916)
  2892. AddZone("Beacon Hill", -399.633, -1075.520, -1.489, -319.033, -977.516, 198.511)
  2893. AddZone("Rodeo", 334.503, -1501.950, -89.084, 422.680, -1406.050, 110.916)
  2894. AddZone("Richman", 225.165, -1369.620, -89.084, 334.503, -1292.070, 110.916)
  2895. AddZone("Downtown Los Santos", 1724.760, -1250.900, -89.084, 1812.620, -1150.870, 110.916)
  2896. AddZone("The Strip", 2027.400, 1703.230, -89.084, 2137.400, 1783.230, 110.916)
  2897. AddZone("Downtown Los Santos", 1378.330, -1130.850, -89.084, 1463.900, -1026.330, 110.916)
  2898. AddZone("Blackfield Intersection", 1197.390, 1044.690, -89.084, 1277.050, 1163.390, 110.916)
  2899. AddZone("Conference Center", 1073.220, -1842.270, -89.084, 1323.900, -1804.210, 110.916)
  2900. AddZone("Montgomery", 1451.400, 347.457, -6.1, 1582.440, 420.802, 200.000)
  2901. AddZone("Foster Valley", -2270.040, -430.276, -1.2, -2178.690, -324.114, 200.000)
  2902. AddZone("Blackfield Chapel", 1325.600, 596.349, -89.084, 1375.600, 795.010, 110.916)
  2903. AddZone("Los Santos International", 2051.630, -2597.260, -39.084, 2152.450, -2394.330, 60.916)
  2904. AddZone("Mulholland", 1096.470, -910.170, -89.084, 1169.130, -768.027, 110.916)
  2905. AddZone("Yellow Bell Gol Course", 1457.460, 2723.230, -89.084, 1534.560, 2863.230, 110.916)
  2906. AddZone("The Strip", 2027.400, 1783.230, -89.084, 2162.390, 1863.230, 110.916)
  2907. AddZone("Jefferson", 2056.860, -1210.740, -89.084, 2185.330, -1126.320, 110.916)
  2908. AddZone("Mulholland", 952.604, -937.184, -89.084, 1096.470, -860.619, 110.916)
  2909. AddZone("Aldea Malvada", -1372.140, 2498.520, 0.000, -1277.590, 2615.350, 200.000)
  2910. AddZone("Las Colinas", 2126.860, -1126.320, -89.084, 2185.330, -934.489, 110.916)
  2911. AddZone("Las Colinas", 1994.330, -1100.820, -89.084, 2056.860, -920.815, 110.916)
  2912. AddZone("Richman", 647.557, -954.662, -89.084, 768.694, -860.619, 110.916)
  2913. AddZone("LVA Freight Depot", 1277.050, 1087.630, -89.084, 1375.600, 1203.280, 110.916)
  2914. AddZone("Julius Thruway North", 1377.390, 2433.230, -89.084, 1534.560, 2507.230, 110.916)
  2915. AddZone("Willowfield", 2201.820, -2095.000, -89.084, 2324.000, -1989.900, 110.916)
  2916. AddZone("Julius Thruway North", 1704.590, 2342.830, -89.084, 1848.400, 2433.230, 110.916)
  2917. AddZone("Temple", 1252.330, -1130.850, -89.084, 1378.330, -1026.330, 110.916)
  2918. AddZone("Little Mexico", 1701.900, -1842.270, -89.084, 1812.620, -1722.260, 110.916)
  2919. AddZone("Queens", -2411.220, 373.539, 0.000, -2253.540, 458.411, 200.000)
  2920. AddZone("Las Venturas Airport", 1515.810, 1586.400, -12.500, 1729.950, 1714.560, 87.500)
  2921. AddZone("Richman", 225.165, -1292.070, -89.084, 466.223, -1235.070, 110.916)
  2922. AddZone("Temple", 1252.330, -1026.330, -89.084, 1391.050, -926.999, 110.916)
  2923. AddZone("East Los Santos", 2266.260, -1494.030, -89.084, 2381.680, -1372.040, 110.916)
  2924. AddZone("Julius Thruway East", 2623.180, 943.235, -89.084, 2749.900, 1055.960, 110.916)
  2925. AddZone("Willowfield", 2541.700, -1941.400, -89.084, 2703.580, -1852.870, 110.916)
  2926. AddZone("Las Colinas", 2056.860, -1126.320, -89.084, 2126.860, -920.815, 110.916)
  2927. AddZone("Julius Thruway East", 2625.160, 2202.760, -89.084, 2685.160, 2442.550, 110.916)
  2928. AddZone("Rodeo", 225.165, -1501.950, -89.084, 334.503, -1369.620, 110.916)
  2929. AddZone("Las Brujas", -365.167, 2123.010, -3.0, -208.570, 2217.680, 200.000)
  2930. AddZone("Julius Thruway East", 2536.430, 2442.550, -89.084, 2685.160, 2542.550, 110.916)
  2931. AddZone("Rodeo", 334.503, -1406.050, -89.084, 466.223, -1292.070, 110.916)
  2932. AddZone("Vinewood", 647.557, -1227.280, -89.084, 787.461, -1118.280, 110.916)
  2933. AddZone("Rodeo", 422.680, -1684.650, -89.084, 558.099, -1570.200, 110.916)
  2934. AddZone("Julius Thruway North", 2498.210, 2542.550, -89.084, 2685.160, 2626.550, 110.916)
  2935. AddZone("Downtown Los Santos", 1724.760, -1430.870, -89.084, 1812.620, -1250.900, 110.916)
  2936. AddZone("Rodeo", 225.165, -1684.650, -89.084, 312.803, -1501.950, 110.916)
  2937. AddZone("Jefferson", 2056.860, -1449.670, -89.084, 2266.210, -1372.040, 110.916)
  2938. AddZone("Hampton Barns", 603.035, 264.312, 0.000, 761.994, 366.572, 200.000)
  2939. AddZone("Temple", 1096.470, -1130.840, -89.084, 1252.330, -1026.330, 110.916)
  2940. AddZone("Kincaid Bridge", -1087.930, 855.370, -89.084, -961.950, 986.281, 110.916)
  2941. AddZone("Verona Beach", 1046.150, -1722.260, -89.084, 1161.520, -1577.590, 110.916)
  2942. AddZone("Commerce", 1323.900, -1722.260, -89.084, 1440.900, -1577.590, 110.916)
  2943. AddZone("Mulholland", 1357.000, -926.999, -89.084, 1463.900, -768.027, 110.916)
  2944. AddZone("Rodeo", 466.223, -1570.200, -89.084, 558.099, -1385.070, 110.916)
  2945. AddZone("Mulholland", 911.802, -860.619, -89.084, 1096.470, -768.027, 110.916)
  2946. AddZone("Mulholland", 768.694, -954.662, -89.084, 952.604, -860.619, 110.916)
  2947. AddZone("Julius Thruway South", 2377.390, 788.894, -89.084, 2537.390, 897.901, 110.916)
  2948. AddZone("Idlewood", 1812.620, -1852.870, -89.084, 1971.660, -1742.310, 110.916)
  2949. AddZone("Ocean Docks", 2089.000, -2394.330, -89.084, 2201.820, -2235.840, 110.916)
  2950. AddZone("Commerce", 1370.850, -1577.590, -89.084, 1463.900, -1384.950, 110.916)
  2951. AddZone("Julius Thruway North", 2121.400, 2508.230, -89.084, 2237.400, 2663.170, 110.916)
  2952. AddZone("Temple", 1096.470, -1026.330, -89.084, 1252.330, -910.170, 110.916)
  2953. AddZone("Glen Park", 1812.620, -1449.670, -89.084, 1996.910, -1350.720, 110.916)
  2954. AddZone("Easter Bay Airport", -1242.980, -50.096, 0.000, -1213.910, 578.396, 200.000)
  2955. AddZone("Martin Bridge", -222.179, 293.324, 0.000, -122.126, 476.465, 200.000)
  2956. AddZone("The Strip", 2106.700, 1863.230, -89.084, 2162.390, 2202.760, 110.916)
  2957. AddZone("Willowfield", 2541.700, -2059.230, -89.084, 2703.580, -1941.400, 110.916)
  2958. AddZone("Marina", 807.922, -1577.590, -89.084, 926.922, -1416.250, 110.916)
  2959. AddZone("Las Venturas Airport", 1457.370, 1143.210, -89.084, 1777.400, 1203.280, 110.916)
  2960. AddZone("Idlewood", 1812.620, -1742.310, -89.084, 1951.660, -1602.310, 110.916)
  2961. AddZone("Esplanade East", -1580.010, 1025.980, -6.1, -1499.890, 1274.260, 200.000)
  2962. AddZone("Downtown Los Santos", 1370.850, -1384.950, -89.084, 1463.900, -1170.870, 110.916)
  2963. AddZone("The Mako Span", 1664.620, 401.750, 0.000, 1785.140, 567.203, 200.000)
  2964. AddZone("Rodeo", 312.803, -1684.650, -89.084, 422.680, -1501.950, 110.916)
  2965. AddZone("Pershing Square", 1440.900, -1722.260, -89.084, 1583.500, -1577.590, 110.916)
  2966. AddZone("Mulholland", 687.802, -860.619, -89.084, 911.802, -768.027, 110.916)
  2967. AddZone("Gant Bridge", -2741.070, 1490.470, -6.1, -2616.400, 1659.680, 200.000)
  2968. AddZone("Las Colinas", 2185.330, -1154.590, -89.084, 2281.450, -934.489, 110.916)
  2969. AddZone("Mulholland", 1169.130, -910.170, -89.084, 1318.130, -768.027, 110.916)
  2970. AddZone("Julius Thruway North", 1938.800, 2508.230, -89.084, 2121.400, 2624.230, 110.916)
  2971. AddZone("Commerce", 1667.960, -1577.590, -89.084, 1812.620, -1430.870, 110.916)
  2972. AddZone("Rodeo", 72.648, -1544.170, -89.084, 225.165, -1404.970, 110.916)
  2973. AddZone("Roca Escalante", 2536.430, 2202.760, -89.084, 2625.160, 2442.550, 110.916)
  2974. AddZone("Rodeo", 72.648, -1684.650, -89.084, 225.165, -1544.170, 110.916)
  2975. AddZone("Market", 952.663, -1310.210, -89.084, 1072.660, -1130.850, 110.916)
  2976. AddZone("Las Colinas", 2632.740, -1135.040, -89.084, 2747.740, -945.035, 110.916)
  2977. AddZone("Mulholland", 861.085, -674.885, -89.084, 1156.550, -600.896, 110.916)
  2978. AddZone("King's", -2253.540, 373.539, -9.1, -1993.280, 458.411, 200.000)
  2979. AddZone("Redsands East", 1848.400, 2342.830, -89.084, 2011.940, 2478.490, 110.916)
  2980. AddZone("Downtown", -1580.010, 744.267, -6.1, -1499.890, 1025.980, 200.000)
  2981. AddZone("Conference Center", 1046.150, -1804.210, -89.084, 1323.900, -1722.260, 110.916)
  2982. AddZone("Richman", 647.557, -1118.280, -89.084, 787.461, -954.662, 110.916)
  2983. AddZone("Ocean Flats", -2994.490, 277.411, -9.1, -2867.850, 458.411, 200.000)
  2984. AddZone("Greenglass College", 964.391, 930.890, -89.084, 1166.530, 1044.690, 110.916)
  2985. AddZone("Glen Park", 1812.620, -1100.820, -89.084, 1994.330, -973.380, 110.916)
  2986. AddZone("LVA Freight Depot", 1375.600, 919.447, -89.084, 1457.370, 1203.280, 110.916)
  2987. AddZone("Regular Tom", -405.770, 1712.860, -3.0, -276.719, 1892.750, 200.000)
  2988. AddZone("Verona Beach", 1161.520, -1722.260, -89.084, 1323.900, -1577.590, 110.916)
  2989. AddZone("East Los Santos", 2281.450, -1372.040, -89.084, 2381.680, -1135.040, 110.916)
  2990. AddZone("Caligula's Palace", 2137.400, 1703.230, -89.084, 2437.390, 1783.230, 110.916)
  2991. AddZone("Idlewood", 1951.660, -1742.310, -89.084, 2124.660, -1602.310, 110.916)
  2992. AddZone("Pilgrim", 2624.400, 1383.230, -89.084, 2685.160, 1783.230, 110.916)
  2993. AddZone("Idlewood", 2124.660, -1742.310, -89.084, 2222.560, -1494.030, 110.916)
  2994. AddZone("Queens", -2533.040, 458.411, 0.000, -2329.310, 578.396, 200.000)
  2995. AddZone("Downtown", -1871.720, 1176.420, -4.5, -1620.300, 1274.260, 200.000)
  2996. AddZone("Commerce", 1583.500, -1722.260, -89.084, 1758.900, -1577.590, 110.916)
  2997. AddZone("East Los Santos", 2381.680, -1454.350, -89.084, 2462.130, -1135.040, 110.916)
  2998. AddZone("Marina", 647.712, -1577.590, -89.084, 807.922, -1416.250, 110.916)
  2999. AddZone("Richman", 72.648, -1404.970, -89.084, 225.165, -1235.070, 110.916)
  3000. AddZone("Vinewood", 647.712, -1416.250, -89.084, 787.461, -1227.280, 110.916)
  3001. AddZone("East Los Santos", 2222.560, -1628.530, -89.084, 2421.030, -1494.030, 110.916)
  3002. AddZone("Rodeo", 558.099, -1684.650, -89.084, 647.522, -1384.930, 110.916)
  3003. AddZone("Easter Tunnel", -1709.710, -833.034, -1.5, -1446.010, -730.118, 200.000)
  3004. AddZone("Rodeo", 466.223, -1385.070, -89.084, 647.522, -1235.070, 110.916)
  3005. AddZone("Redsands East", 1817.390, 2202.760, -89.084, 2011.940, 2342.830, 110.916)
  3006. AddZone("The Clown's Pocket", 2162.390, 1783.230, -89.084, 2437.390, 1883.230, 110.916)
  3007. AddZone("Idlewood", 1971.660, -1852.870, -89.084, 2222.560, -1742.310, 110.916)
  3008. AddZone("Montgomery Intersection", 1546.650, 208.164, 0.000, 1745.830, 347.457, 200.000)
  3009. AddZone("Willowfield", 2089.000, -2235.840, -89.084, 2201.820, -1989.900, 110.916)
  3010. AddZone("Temple", 952.663, -1130.840, -89.084, 1096.470, -937.184, 110.916)
  3011. AddZone("Prickle Pine", 1848.400, 2553.490, -89.084, 1938.800, 2863.230, 110.916)
  3012. AddZone("Los Santos International", 1400.970, -2669.260, -39.084, 2189.820, -2597.260, 60.916)
  3013. AddZone("Garver Bridge", -1213.910, 950.022, -89.084, -1087.930, 1178.930, 110.916)
  3014. AddZone("Garver Bridge", -1339.890, 828.129, -89.084, -1213.910, 1057.040, 110.916)
  3015. AddZone("Kincaid Bridge", -1339.890, 599.218, -89.084, -1213.910, 828.129, 110.916)
  3016. AddZone("Kincaid Bridge", -1213.910, 721.111, -89.084, -1087.930, 950.022, 110.916)
  3017. AddZone("Verona Beach", 930.221, -2006.780, -89.084, 1073.220, -1804.210, 110.916)
  3018. AddZone("Verdant Bluffs", 1073.220, -2006.780, -89.084, 1249.620, -1842.270, 110.916)
  3019. AddZone("Vinewood", 787.461, -1130.840, -89.084, 952.604, -954.662, 110.916)
  3020. AddZone("Vinewood", 787.461, -1310.210, -89.084, 952.663, -1130.840, 110.916)
  3021. AddZone("Commerce", 1463.900, -1577.590, -89.084, 1667.960, -1430.870, 110.916)
  3022. AddZone("Market", 787.461, -1416.250, -89.084, 1072.660, -1310.210, 110.916)
  3023. AddZone("Rockshore West", 2377.390, 596.349, -89.084, 2537.390, 788.894, 110.916)
  3024. AddZone("Julius Thruway North", 2237.400, 2542.550, -89.084, 2498.210, 2663.170, 110.916)
  3025. AddZone("East Beach", 2632.830, -1668.130, -89.084, 2747.740, -1393.420, 110.916)
  3026. AddZone("Fallow Bridge", 434.341, 366.572, 0.000, 603.035, 555.680, 200.000)
  3027. AddZone("Willowfield", 2089.000, -1989.900, -89.084, 2324.000, -1852.870, 110.916)
  3028. AddZone("Chinatown", -2274.170, 578.396, -7.6, -2078.670, 744.170, 200.000)
  3029. AddZone("El Castillo del Diablo", -208.570, 2337.180, 0.000, 8.430, 2487.180, 200.000)
  3030. AddZone("Ocean Docks", 2324.000, -2145.100, -89.084, 2703.580, -2059.230, 110.916)
  3031. AddZone("Easter Bay Chemicals", -1132.820, -768.027, 0.000, -956.476, -578.118, 200.000)
  3032. AddZone("The Visage", 1817.390, 1703.230, -89.084, 2027.400, 1863.230, 110.916)
  3033. AddZone("Ocean Flats", -2994.490, -430.276, -1.2, -2831.890, -222.589, 200.000)
  3034. AddZone("Richman", 321.356, -860.619, -89.084, 687.802, -768.027, 110.916)
  3035. AddZone("Green Palms", 176.581, 1305.450, -3.0, 338.658, 1520.720, 200.000)
  3036. AddZone("Richman", 321.356, -768.027, -89.084, 700.794, -674.885, 110.916)
  3037. AddZone("Starfish Casino", 2162.390, 1883.230, -89.084, 2437.390, 2012.180, 110.916)
  3038. AddZone("East Beach", 2747.740, -1668.130, -89.084, 2959.350, -1498.620, 110.916)
  3039. AddZone("Jefferson", 2056.860, -1372.040, -89.084, 2281.450, -1210.740, 110.916)
  3040. AddZone("Downtown Los Santos", 1463.900, -1290.870, -89.084, 1724.760, -1150.870, 110.916)
  3041. AddZone("Downtown Los Santos", 1463.900, -1430.870, -89.084, 1724.760, -1290.870, 110.916)
  3042. AddZone("Garver Bridge", -1499.890, 696.442, -179.615, -1339.890, 925.353, 20.385)
  3043. AddZone("Julius Thruway South", 1457.390, 823.228, -89.084, 2377.390, 863.229, 110.916)
  3044. AddZone("East Los Santos", 2421.030, -1628.530, -89.084, 2632.830, -1454.350, 110.916)
  3045. AddZone("Greenglass College", 964.391, 1044.690, -89.084, 1197.390, 1203.220, 110.916)
  3046. AddZone("Las Colinas", 2747.740, -1120.040, -89.084, 2959.350, -945.035, 110.916)
  3047. AddZone("Mulholland", 737.573, -768.027, -89.084, 1142.290, -674.885, 110.916)
  3048. AddZone("Ocean Docks", 2201.820, -2730.880, -89.084, 2324.000, -2418.330, 110.916)
  3049. AddZone("East Los Santos", 2462.130, -1454.350, -89.084, 2581.730, -1135.040, 110.916)
  3050. AddZone("Ganton", 2222.560, -1722.330, -89.084, 2632.830, -1628.530, 110.916)
  3051. AddZone("Avispa Country Club", -2831.890, -430.276, -6.1, -2646.400, -222.589, 200.000)
  3052. AddZone("Willowfield", 1970.620, -2179.250, -89.084, 2089.000, -1852.870, 110.916)
  3053. AddZone("Esplanade North", -1982.320, 1274.260, -4.5, -1524.240, 1358.900, 200.000)
  3054. AddZone("The High Roller", 1817.390, 1283.230, -89.084, 2027.390, 1469.230, 110.916)
  3055. AddZone("Ocean Docks", 2201.820, -2418.330, -89.084, 2324.000, -2095.000, 110.916)
  3056. AddZone("Last Dime Motel", 1823.080, 596.349, -89.084, 1997.220, 823.228, 110.916)
  3057. AddZone("Bayside Marina", -2353.170, 2275.790, 0.000, -2153.170, 2475.790, 200.000)
  3058. AddZone("King's", -2329.310, 458.411, -7.6, -1993.280, 578.396, 200.000)
  3059. AddZone("El Corona", 1692.620, -2179.250, -89.084, 1812.620, -1842.270, 110.916)
  3060. AddZone("Blackfield Chapel", 1375.600, 596.349, -89.084, 1558.090, 823.228, 110.916)
  3061. AddZone("The Pink Swan", 1817.390, 1083.230, -89.084, 2027.390, 1283.230, 110.916)
  3062. AddZone("Julius Thruway West", 1197.390, 1163.390, -89.084, 1236.630, 2243.230, 110.916)
  3063. AddZone("Los Flores", 2581.730, -1393.420, -89.084, 2747.740, -1135.040, 110.916)
  3064. AddZone("The Visage", 1817.390, 1863.230, -89.084, 2106.700, 2011.830, 110.916)
  3065. AddZone("Prickle Pine", 1938.800, 2624.230, -89.084, 2121.400, 2861.550, 110.916)
  3066. AddZone("Verona Beach", 851.449, -1804.210, -89.084, 1046.150, -1577.590, 110.916)
  3067. AddZone("Robada Intersection", -1119.010, 1178.930, -89.084, -862.025, 1351.450, 110.916)
  3068. AddZone("Linden Side", 2749.900, 943.235, -89.084, 2923.390, 1198.990, 110.916)
  3069. AddZone("Ocean Docks", 2703.580, -2302.330, -89.084, 2959.350, -2126.900, 110.916)
  3070. AddZone("Willowfield", 2324.000, -2059.230, -89.084, 2541.700, -1852.870, 110.916)
  3071. AddZone("King's", -2411.220, 265.243, -9.1, -1993.280, 373.539, 200.000)
  3072. AddZone("Commerce", 1323.900, -1842.270, -89.084, 1701.900, -1722.260, 110.916)
  3073. AddZone("Mulholland", 1269.130, -768.027, -89.084, 1414.070, -452.425, 110.916)
  3074. AddZone("Marina", 647.712, -1804.210, -89.084, 851.449, -1577.590, 110.916)
  3075. AddZone("Battery Point", -2741.070, 1268.410, -4.5, -2533.040, 1490.470, 200.000)
  3076. AddZone("The Four Dragons Casino", 1817.390, 863.232, -89.084, 2027.390, 1083.230, 110.916)
  3077. AddZone("Blackfield", 964.391, 1203.220, -89.084, 1197.390, 1403.220, 110.916)
  3078. AddZone("Julius Thruway North", 1534.560, 2433.230, -89.084, 1848.400, 2583.230, 110.916)
  3079. AddZone("Yellow Bell Gol Course", 1117.400, 2723.230, -89.084, 1457.460, 2863.230, 110.916)
  3080. AddZone("Idlewood", 1812.620, -1602.310, -89.084, 2124.660, -1449.670, 110.916)
  3081. AddZone("Redsands West", 1297.470, 2142.860, -89.084, 1777.390, 2243.230, 110.916)
  3082. AddZone("Doherty", -2270.040, -324.114, -1.2, -1794.920, -222.589, 200.000)
  3083. AddZone("Hilltop Farm", 967.383, -450.390, -3.0, 1176.780, -217.900, 200.000)
  3084. AddZone("Las Barrancas", -926.130, 1398.730, -3.0, -719.234, 1634.690, 200.000)
  3085. AddZone("Pirates in Men's Pants", 1817.390, 1469.230, -89.084, 2027.400, 1703.230, 110.916)
  3086. AddZone("City Hall", -2867.850, 277.411, -9.1, -2593.440, 458.411, 200.000)
  3087. AddZone("Avispa Country Club", -2646.400, -355.493, 0.000, -2270.040, -222.589, 200.000)
  3088. AddZone("The Strip", 2027.400, 863.229, -89.084, 2087.390, 1703.230, 110.916)
  3089. AddZone("Hashbury", -2593.440, -222.589, -1.0, -2411.220, 54.722, 200.000)
  3090. AddZone("Los Santos International", 1852.000, -2394.330, -89.084, 2089.000, -2179.250, 110.916)
  3091. AddZone("Whitewood Estates", 1098.310, 1726.220, -89.084, 1197.390, 2243.230, 110.916)
  3092. AddZone("Sherman Reservoir", -789.737, 1659.680, -89.084, -599.505, 1929.410, 110.916)
  3093. AddZone("El Corona", 1812.620, -2179.250, -89.084, 1970.620, -1852.870, 110.916)
  3094. AddZone("Downtown", -1700.010, 744.267, -6.1, -1580.010, 1176.520, 200.000)
  3095. AddZone("Foster Valley", -2178.690, -1250.970, 0.000, -1794.920, -1115.580, 200.000)
  3096. AddZone("Las Payasadas", -354.332, 2580.360, 2.0, -133.625, 2816.820, 200.000)
  3097. AddZone("Valle Ocultado", -936.668, 2611.440, 2.0, -715.961, 2847.900, 200.000)
  3098. AddZone("Blackfield Intersection", 1166.530, 795.010, -89.084, 1375.600, 1044.690, 110.916)
  3099. AddZone("Ganton", 2222.560, -1852.870, -89.084, 2632.830, -1722.330, 110.916)
  3100. AddZone("Easter Bay Airport", -1213.910, -730.118, 0.000, -1132.820, -50.096, 200.000)
  3101. AddZone("Redsands East", 1817.390, 2011.830, -89.084, 2106.700, 2202.760, 110.916)
  3102. AddZone("Esplanade East", -1499.890, 578.396, -79.615, -1339.890, 1274.260, 20.385)
  3103. AddZone("Caligula's Palace", 2087.390, 1543.230, -89.084, 2437.390, 1703.230, 110.916)
  3104. AddZone("Royal Casino", 2087.390, 1383.230, -89.084, 2437.390, 1543.230, 110.916)
  3105. AddZone("Richman", 72.648, -1235.070, -89.084, 321.356, -1008.150, 110.916)
  3106. AddZone("Starfish Casino", 2437.390, 1783.230, -89.084, 2685.160, 2012.180, 110.916)
  3107. AddZone("Mulholland", 1281.130, -452.425, -89.084, 1641.130, -290.913, 110.916)
  3108. AddZone("Downtown", -1982.320, 744.170, -6.1, -1871.720, 1274.260, 200.000)
  3109. AddZone("Hankypanky Point", 2576.920, 62.158, 0.000, 2759.250, 385.503, 200.000)
  3110. AddZone("K.A.C.C. Military Fuels", 2498.210, 2626.550, -89.084, 2749.900, 2861.550, 110.916)
  3111. AddZone("Harry Gold Parkway", 1777.390, 863.232, -89.084, 1817.390, 2342.830, 110.916)
  3112. AddZone("Bayside Tunnel", -2290.190, 2548.290, -89.084, -1950.190, 2723.290, 110.916)
  3113. AddZone("Ocean Docks", 2324.000, -2302.330, -89.084, 2703.580, -2145.100, 110.916)
  3114. AddZone("Richman", 321.356, -1044.070, -89.084, 647.557, -860.619, 110.916)
  3115. AddZone("Randolph Industrial Estate", 1558.090, 596.349, -89.084, 1823.080, 823.235, 110.916)
  3116. AddZone("East Beach", 2632.830, -1852.870, -89.084, 2959.350, -1668.130, 110.916)
  3117. AddZone("Flint Water", -314.426, -753.874, -89.084, -106.339, -463.073, 110.916)
  3118. AddZone("Blueberry", 19.607, -404.136, 3.8, 349.607, -220.137, 200.000)
  3119. AddZone("Linden Station", 2749.900, 1198.990, -89.084, 2923.390, 1548.990, 110.916)
  3120. AddZone("Glen Park", 1812.620, -1350.720, -89.084, 2056.860, -1100.820, 110.916)
  3121. AddZone("Downtown", -1993.280, 265.243, -9.1, -1794.920, 578.396, 200.000)
  3122. AddZone("Redsands West", 1377.390, 2243.230, -89.084, 1704.590, 2433.230, 110.916)
  3123. AddZone("Richman", 321.356, -1235.070, -89.084, 647.522, -1044.070, 110.916)
  3124. AddZone("Gant Bridge", -2741.450, 1659.680, -6.1, -2616.400, 2175.150, 200.000)
  3125. AddZone("Lil' Probe Inn", -90.218, 1286.850, -3.0, 153.859, 1554.120, 200.000)
  3126. AddZone("Flint Intersection", -187.700, -1596.760, -89.084, 17.063, -1276.600, 110.916)
  3127. AddZone("Las Colinas", 2281.450, -1135.040, -89.084, 2632.740, -945.035, 110.916)
  3128. AddZone("Sobell Rail Yards", 2749.900, 1548.990, -89.084, 2923.390, 1937.250, 110.916)
  3129. AddZone("The Emerald Isle", 2011.940, 2202.760, -89.084, 2237.400, 2508.230, 110.916)
  3130. AddZone("El Castillo del Diablo", -208.570, 2123.010, -7.6, 114.033, 2337.180, 200.000)
  3131. AddZone("Santa Flora", -2741.070, 458.411, -7.6, -2533.040, 793.411, 200.000)
  3132. AddZone("Playa del Seville", 2703.580, -2126.900, -89.084, 2959.350, -1852.870, 110.916)
  3133. AddZone("Market", 926.922, -1577.590, -89.084, 1370.850, -1416.250, 110.916)
  3134. AddZone("Queens", -2593.440, 54.722, 0.000, -2411.220, 458.411, 200.000)
  3135. AddZone("Pilson Intersection", 1098.390, 2243.230, -89.084, 1377.390, 2507.230, 110.916)
  3136. AddZone("Spinybed", 2121.400, 2663.170, -89.084, 2498.210, 2861.550, 110.916)
  3137. AddZone("Pilgrim", 2437.390, 1383.230, -89.084, 2624.400, 1783.230, 110.916)
  3138. AddZone("Blackfield", 964.391, 1403.220, -89.084, 1197.390, 1726.220, 110.916)
  3139. AddZone("'The Big Ear'", -410.020, 1403.340, -3.0, -137.969, 1681.230, 200.000)
  3140. AddZone("Dillimore", 580.794, -674.885, -9.5, 861.085, -404.790, 200.000)
  3141. AddZone("El Quebrados", -1645.230, 2498.520, 0.000, -1372.140, 2777.850, 200.000)
  3142. AddZone("Esplanade North", -2533.040, 1358.900, -4.5, -1996.660, 1501.210, 200.000)
  3143. AddZone("Easter Bay Airport", -1499.890, -50.096, -1.0, -1242.980, 249.904, 200.000)
  3144. AddZone("Fisher's Lagoon", 1916.990, -233.323, -100.000, 2131.720, 13.800, 200.000)
  3145. AddZone("Mulholland", 1414.070, -768.027, -89.084, 1667.610, -452.425, 110.916)
  3146. AddZone("East Beach", 2747.740, -1498.620, -89.084, 2959.350, -1120.040, 110.916)
  3147. AddZone("San Andreas Sound", 2450.390, 385.503, -100.000, 2759.250, 562.349, 200.000)
  3148. AddZone("Shady Creeks", -2030.120, -2174.890, -6.1, -1820.640, -1771.660, 200.000)
  3149. AddZone("Market", 1072.660, -1416.250, -89.084, 1370.850, -1130.850, 110.916)
  3150. AddZone("Rockshore West", 1997.220, 596.349, -89.084, 2377.390, 823.228, 110.916)
  3151. AddZone("Prickle Pine", 1534.560, 2583.230, -89.084, 1848.400, 2863.230, 110.916)
  3152. AddZone("Easter Basin", -1794.920, -50.096, -1.04, -1499.890, 249.904, 200.000)
  3153. AddZone("Leafy Hollow", -1166.970, -1856.030, 0.000, -815.624, -1602.070, 200.000)
  3154. AddZone("LVA Freight Depot", 1457.390, 863.229, -89.084, 1777.400, 1143.210, 110.916)
  3155. AddZone("Prickle Pine", 1117.400, 2507.230, -89.084, 1534.560, 2723.230, 110.916)
  3156. AddZone("Blueberry", 104.534, -220.137, 2.3, 349.607, 152.236, 200.000)
  3157. AddZone("El Castillo del Diablo", -464.515, 2217.680, 0.000, -208.570, 2580.360, 200.000)
  3158. AddZone("Downtown", -2078.670, 578.396, -7.6, -1499.890, 744.267, 200.000)
  3159. AddZone("Rockshore East", 2537.390, 676.549, -89.084, 2902.350, 943.235, 110.916)
  3160. AddZone("San Fierro Bay", -2616.400, 1501.210, -3.0, -1996.660, 1659.680, 200.000)
  3161. AddZone("Paradiso", -2741.070, 793.411, -6.1, -2533.040, 1268.410, 200.000)
  3162. AddZone("The Camel's Toe", 2087.390, 1203.230, -89.084, 2640.400, 1383.230, 110.916)
  3163. AddZone("Old Venturas Strip", 2162.390, 2012.180, -89.084, 2685.160, 2202.760, 110.916)
  3164. AddZone("Juniper Hill", -2533.040, 578.396, -7.6, -2274.170, 968.369, 200.000)
  3165. AddZone("Juniper Hollow", -2533.040, 968.369, -6.1, -2274.170, 1358.900, 200.000)
  3166. AddZone("Roca Escalante", 2237.400, 2202.760, -89.084, 2536.430, 2542.550, 110.916)
  3167. AddZone("Julius Thruway East", 2685.160, 1055.960, -89.084, 2749.900, 2626.550, 110.916)
  3168. AddZone("Verona Beach", 647.712, -2173.290, -89.084, 930.221, -1804.210, 110.916)
  3169. AddZone("Foster Valley", -2178.690, -599.884, -1.2, -1794.920, -324.114, 200.000)
  3170. AddZone("Arco del Oeste", -901.129, 2221.860, 0.000, -592.090, 2571.970, 200.000)
  3171. AddZone("Fallen Tree", -792.254, -698.555, -5.3, -452.404, -380.043, 200.000)
  3172. AddZone("The Farm", -1209.670, -1317.100, 114.981, -908.161, -787.391, 251.981)
  3173. AddZone("The Sherman Dam", -968.772, 1929.410, -3.0, -481.126, 2155.260, 200.000)
  3174. AddZone("Esplanade North", -1996.660, 1358.900, -4.5, -1524.240, 1592.510, 200.000)
  3175. AddZone("Financial", -1871.720, 744.170, -6.1, -1701.300, 1176.420, 300.000)
  3176. AddZone("Garcia", -2411.220, -222.589, -1.14, -2173.040, 265.243, 200.000)
  3177. AddZone("Montgomery", 1119.510, 119.526, -3.0, 1451.400, 493.323, 200.000)
  3178. AddZone("Creek", 2749.900, 1937.250, -89.084, 2921.620, 2669.790, 110.916)
  3179. AddZone("Los Santos International", 1249.620, -2394.330, -89.084, 1852.000, -2179.250, 110.916)
  3180. AddZone("Santa Maria Beach", 72.648, -2173.290, -89.084, 342.648, -1684.650, 110.916)
  3181. AddZone("Mulholland Intersection", 1463.900, -1150.870, -89.084, 1812.620, -768.027, 110.916)
  3182. AddZone("Angel Pine", -2324.940, -2584.290, -6.1, -1964.220, -2212.110, 200.000)
  3183. AddZone("Verdant Meadows", 37.032, 2337.180, -3.0, 435.988, 2677.900, 200.000)
  3184. AddZone("Octane Springs", 338.658, 1228.510, 0.000, 664.308, 1655.050, 200.000)
  3185. AddZone("Come-A-Lot", 2087.390, 943.235, -89.084, 2623.180, 1203.230, 110.916)
  3186. AddZone("Redsands West", 1236.630, 1883.110, -89.084, 1777.390, 2142.860, 110.916)
  3187. AddZone("Santa Maria Beach", 342.648, -2173.290, -89.084, 647.712, -1684.650, 110.916)
  3188. AddZone("Verdant Bluffs", 1249.620, -2179.250, -89.084, 1692.620, -1842.270, 110.916)
  3189. AddZone("Las Venturas Airport", 1236.630, 1203.280, -89.084, 1457.370, 1883.110, 110.916)
  3190. AddZone("Flint Range", -594.191, -1648.550, 0.000, -187.700, -1276.600, 200.000)
  3191. AddZone("Verdant Bluffs", 930.221, -2488.420, -89.084, 1249.620, -2006.780, 110.916)
  3192. AddZone("Palomino Creek", 2160.220, -149.004, 0.000, 2576.920, 228.322, 200.000)
  3193. AddZone("Ocean Docks", 2373.770, -2697.090, -89.084, 2809.220, -2330.460, 110.916)
  3194. AddZone("Easter Bay Airport", -1213.910, -50.096, -4.5, -947.980, 578.396, 200.000)
  3195. AddZone("Whitewood Estates", 883.308, 1726.220, -89.084, 1098.310, 2507.230, 110.916)
  3196. AddZone("Calton Heights", -2274.170, 744.170, -6.1, -1982.320, 1358.900, 200.000)
  3197. AddZone("Easter Basin", -1794.920, 249.904, -9.1, -1242.980, 578.396, 200.000)
  3198. AddZone("Los Santos Inlet", -321.744, -2224.430, -89.084, 44.615, -1724.430, 110.916)
  3199. AddZone("Doherty", -2173.040, -222.589, -1.0, -1794.920, 265.243, 200.000)
  3200. AddZone("Mount Chiliad", -2178.690, -2189.910, -47.917, -2030.120, -1771.660, 576.083)
  3201. AddZone("Fort Carson", -376.233, 826.326, -3.0, 123.717, 1220.440, 200.000)
  3202. AddZone("Foster Valley", -2178.690, -1115.580, 0.000, -1794.920, -599.884, 200.000)
  3203. AddZone("Ocean Flats", -2994.490, -222.589, -1.0, -2593.440, 277.411, 200.000)
  3204. AddZone("Fern Ridge", 508.189, -139.259, 0.000, 1306.660, 119.526, 200.000)
  3205. AddZone("Bayside", -2741.070, 2175.150, 0.000, -2353.170, 2722.790, 200.000)
  3206. AddZone("Las Venturas Airport", 1457.370, 1203.280, -89.084, 1777.390, 1883.110, 110.916)
  3207. AddZone("Blueberry Acres", -319.676, -220.137, 0.000, 104.534, 293.324, 200.000)
  3208. AddZone("Palisades", -2994.490, 458.411, -6.1, -2741.070, 1339.610, 200.000)
  3209. AddZone("North Rock", 2285.370, -768.027, 0.000, 2770.590, -269.740, 200.000)
  3210. AddZone("Hunter Quarry", 337.244, 710.840, -115.239, 860.554, 1031.710, 203.761)
  3211. AddZone("Los Santos International", 1382.730, -2730.880, -89.084, 2201.820, -2394.330, 110.916)
  3212. AddZone("Missionary Hill", -2994.490, -811.276, 0.000, -2178.690, -430.276, 200.000)
  3213. AddZone("San Fierro Bay", -2616.400, 1659.680, -3.0, -1996.660, 2175.150, 200.000)
  3214. AddZone("Restricted Area", -91.586, 1655.050, -50.000, 421.234, 2123.010, 250.000)
  3215. AddZone("Mount Chiliad", -2997.470, -1115.580, -47.917, -2178.690, -971.913, 576.083)
  3216. AddZone("Mount Chiliad", -2178.690, -1771.660, -47.917, -1936.120, -1250.970, 576.083)
  3217. AddZone("Easter Bay Airport", -1794.920, -730.118, -3.0, -1213.910, -50.096, 200.000)
  3218. AddZone("The Panopticon", -947.980, -304.320, -1.1, -319.676, 327.071, 200.000)
  3219. AddZone("Shady Creeks", -1820.640, -2643.680, -8.0, -1226.780, -1771.660, 200.000)
  3220. AddZone("Back o Beyond", -1166.970, -2641.190, 0.000, -321.744, -1856.030, 200.000)
  3221. AddZone("Mount Chiliad", -2994.490, -2189.910, -47.917, -2178.690, -1115.580, 576.083)
  3222. AddZone("Tierra Robada", -1213.910, 596.349, -242.990, -480.539, 1659.680, 900.000)
  3223. AddZone("Flint County", -1213.910, -2892.970, -242.990, 44.615, -768.027, 900.000)
  3224. AddZone("Whetstone", -2997.470, -2892.970, -242.990, -1213.910, -1115.580, 900.000)
  3225. AddZone("Bone County", -480.539, 596.349, -242.990, 869.461, 2993.870, 900.000)
  3226. AddZone("Tierra Robada", -2997.470, 1659.680, -242.990, -480.539, 2993.870, 900.000)
  3227. AddZone("San Fierro", -2997.470, -1115.580, -242.990, -1213.910, 1659.680, 900.000)
  3228. AddZone("Las Venturas", 869.461, 596.349, -242.990, 2997.060, 2993.870, 900.000)
  3229. AddZone("Red County", -1213.910, -768.027, -242.990, 2997.060, 596.349, 900.000)
  3230. AddZone("Los Santos", 44.615, -2892.970, -242.990, 2997.060, -768.027, 900.000)
  3231. }
  3232. calculateZone(posX, posY, posZ) {
  3233. if ( bInitZaC == 0 )
  3234. {
  3235. initZonesAndCities()
  3236. bInitZaC := 1
  3237. }
  3238. Loop % nZone-1
  3239. {
  3240. if (posX >= zone%A_Index%_x1) && (posY >= zone%A_Index%_y1) && (posZ >= zone%A_Index%_z1) && (posX <= zone%A_Index%_x2) && (posY <= zone%A_Index%_y2) && (posZ <= zone%A_Index%_z2)
  3241. {
  3242. ErrorLevel := ERROR_OK
  3243. return zone%A_Index%_name
  3244. }
  3245. }
  3246. ErrorLevel := ERROR_ZONE_NOT_FOUND
  3247. return "Unbekannt"
  3248. }
  3249. calculateCity(posX, posY, posZ) {
  3250. if ( bInitZaC == 0 )
  3251. {
  3252. initZonesAndCities()
  3253. bInitZaC := 1
  3254. }
  3255. smallestCity := "Unbekannt"
  3256. currentCitySize := 0
  3257. smallestCitySize := 0
  3258. Loop % nCity-1
  3259. {
  3260. if (posX >= city%A_Index%_x1) && (posY >= city%A_Index%_y1) && (posZ >= city%A_Index%_z1) && (posX <= city%A_Index%_x2) && (posY <= city%A_Index%_y2) && (posZ <= city%A_Index%_z2)
  3261. {
  3262. currentCitySize := ((city%A_Index%_x2 - city%A_Index%_x1) * (city%A_Index%_y2 - city%A_Index%_y1) * (city%A_Index%_z2 - city%A_Index%_z1))
  3263. if (smallestCity == "Unbekannt") || (currentCitySize < smallestCitySize)
  3264. {
  3265. smallestCity := city%A_Index%_name
  3266. smallestCitySize := currentCitySize
  3267. }
  3268. }
  3269. }
  3270. if(smallestCity == "Unbekannt") {
  3271. ErrorLevel := ERROR_CITY_NOT_FOUND
  3272. } else {
  3273. ErrorLevel := ERROR_OK
  3274. }
  3275. return smallestCity
  3276. }
  3277. AddZone(sName, x1, y1, z1, x2, y2, z2) {
  3278. global
  3279. zone%nZone%_name := sName
  3280. zone%nZone%_x1 := x1
  3281. zone%nZone%_y1 := y1
  3282. zone%nZone%_z1 := z1
  3283. zone%nZone%_x2 := x2
  3284. zone%nZone%_y2 := y2
  3285. zone%nZone%_z2 := z2
  3286. nZone := nZone + 1
  3287. }
  3288. AddCity(sName, x1, y1, z1, x2, y2, z2) {
  3289. global
  3290. city%nCity%_name := sName
  3291. city%nCity%_x1 := x1
  3292. city%nCity%_y1 := y1
  3293. city%nCity%_z1 := z1
  3294. city%nCity%_x2 := x2
  3295. city%nCity%_y2 := y2
  3296. city%nCity%_z2 := z2
  3297. nCity := nCity + 1
  3298. }
  3299. IsPlayerInRangeOfPoint(_posX, _posY, _posZ, _posRadius)
  3300. {
  3301. GetPlayerPos(posX, posY, posZ)
  3302. X := posX -_posX
  3303. Y := posY -_posY
  3304. Z := posZ -_posZ
  3305. if(((X < _posRadius) && (X > -_posRadius)) && ((Y < _posRadius) && (Y > -_posRadius)) && ((Z < _posRadius) && (Z > -_posRadius)))
  3306. return TRUE
  3307. return FALSE
  3308. }
  3309. IsPlayerInRangeOfPoint2D(_posX, _posY, _posRadius)
  3310. {
  3311. GetPlayerPos(posX, posY, posZ)
  3312. X := posX - _posX
  3313. Y := posY - _posY
  3314. if(((X < _posRadius) && (X > -_posRadius)) && ((Y < _posRadius) && (Y > -_posRadius)))
  3315. return TRUE
  3316. return FALSE
  3317. }
  3318. getPlayerZone()
  3319. {
  3320. aktPos := getCoordinates()
  3321. return calculateZone(aktPos[1], aktPos[2], aktPos[3])
  3322. }
  3323. getPlayerCity()
  3324. {
  3325. aktPos := getCoordinates()
  3326. return calculateCity(aktPos[1], aktPos[2], aktPos[3])
  3327. }
  3328. checkHandles() {
  3329. if(iRefreshHandles+500>A_TickCount)
  3330. return true
  3331. iRefreshHandles:=A_TickCount
  3332. if(!refreshGTA() || !refreshSAMP() || !refreshMemory()) {
  3333. return false
  3334. } else {
  3335. return true
  3336. }
  3337. return true
  3338. }
  3339. refreshGTA() {
  3340. newPID := getPID("GTA:SA:MP")
  3341. if(!newPID) {
  3342. if(hGTA) {
  3343. virtualFreeEx(hGTA, pMemory, 0, 0x8000)
  3344. closeProcess(hGTA)
  3345. hGTA := 0x0
  3346. }
  3347. dwGTAPID := 0
  3348. hGTA := 0x0
  3349. dwSAMP := 0x0
  3350. pMemory := 0x0
  3351. return false
  3352. }
  3353. if(!hGTA || (dwGTAPID != newPID)) {
  3354. hGTA := openProcess(newPID)
  3355. if(ErrorLevel) {
  3356. dwGTAPID := 0
  3357. hGTA := 0x0
  3358. dwSAMP := 0x0
  3359. pMemory := 0x0
  3360. return false
  3361. }
  3362. dwGTAPID := newPID
  3363. dwSAMP := 0x0
  3364. pMemory := 0x0
  3365. return true
  3366. }
  3367. return true
  3368. }
  3369. refreshSAMP() {
  3370. if(dwSAMP)
  3371. return true
  3372. dwSAMP := getModuleBaseAddress("samp.dll", hGTA)
  3373. if(!dwSAMP)
  3374. return false
  3375. return true
  3376. }
  3377. refreshMemory() {
  3378. if(!pMemory) {
  3379. pMemory := virtualAllocEx(hGTA, 4096, 0x1000 | 0x2000, 0x40)
  3380. if(ErrorLevel) {
  3381. pMemory := 0x0
  3382. return false
  3383. }
  3384. pParam1 := pMemory
  3385. pParam2 := pMemory + 1024
  3386. pParam3 := pMemory + 2048
  3387. pInjectFunc := pMemory + 3072
  3388. }
  3389. return true
  3390. }
  3391. getPID(szWindow) {
  3392. local dwPID := 0
  3393. WinGet, dwPID, PID, %szWindow%
  3394. return dwPID
  3395. }
  3396. openProcess(dwPID, dwRights = 0x1F0FFF) {
  3397. hProcess := DllCall("OpenProcess"
  3398. , "UInt", dwRights
  3399. , "int", 0
  3400. , "UInt", dwPID
  3401. , "Uint")
  3402. if(hProcess == 0) {
  3403. ErrorLevel := ERROR_OPEN_PROCESS
  3404. return 0
  3405. }
  3406. ErrorLevel := ERROR_OK
  3407. return hProcess
  3408. }
  3409. closeProcess(hProcess) {
  3410. if(hProcess == 0) {
  3411. ErrorLevel := ERROR_INVALID_HANDLE
  3412. return 0
  3413. }
  3414. dwRet := DllCall( "CloseHandle"
  3415. , "Uint", hProcess
  3416. , "UInt")
  3417. ErrorLevel := ERROR_OK
  3418. }
  3419. getModuleBaseAddress(sModule, hProcess) {
  3420. if(!sModule) {
  3421. ErrorLevel := ERROR_MODULE_NOT_FOUND
  3422. return 0
  3423. }
  3424. if(!hProcess) {
  3425. ErrorLevel := ERROR_INVALID_HANDLE
  3426. return 0
  3427. }
  3428. dwSize = 1024*4
  3429. VarSetCapacity(hMods, dwSize)
  3430. VarSetCapacity(cbNeeded, 4)
  3431. dwRet := DllCall( "Psapi.dll\EnumProcessModules"
  3432. , "UInt", hProcess
  3433. , "UInt", &hMods
  3434. , "UInt", dwSize
  3435. , "UInt*", cbNeeded
  3436. , "UInt")
  3437. if(dwRet == 0) {
  3438. ErrorLevel := ERROR_ENUM_PROCESS_MODULES
  3439. return 0
  3440. }
  3441. dwMods := cbNeeded / 4
  3442. i := 0
  3443. VarSetCapacity(hModule, 4)
  3444. VarSetCapacity(sCurModule, 260)
  3445. while(i < dwMods) {
  3446. hModule := NumGet(hMods, i*4)
  3447. DllCall("Psapi.dll\GetModuleFileNameEx"
  3448. , "UInt", hProcess
  3449. , "UInt", hModule
  3450. , "Str", sCurModule
  3451. , "UInt", 260)
  3452. SplitPath, sCurModule, sFilename
  3453. if(sModule == sFilename) {
  3454. ErrorLevel := ERROR_OK
  3455. return hModule
  3456. }
  3457. i := i + 1
  3458. }
  3459. ErrorLevel := ERROR_MODULE_NOT_FOUND
  3460. return 0
  3461. }
  3462. readString(hProcess, dwAddress, dwLen) {
  3463. if(!hProcess) {
  3464. ErrorLevel := ERROR_INVALID_HANDLE
  3465. return 0
  3466. }
  3467. VarSetCapacity(sRead, dwLen)
  3468. dwRet := DllCall( "ReadProcessMemory"
  3469. , "UInt", hProcess
  3470. , "UInt", dwAddress
  3471. , "Str", sRead
  3472. , "UInt", dwLen
  3473. , "UInt*", 0
  3474. , "UInt")
  3475. if(dwRet == 0) {
  3476. ErrorLevel := ERROR_READ_MEMORY
  3477. return 0
  3478. }
  3479. ErrorLevel := ERROR_OK
  3480. if A_IsUnicode
  3481. return __ansiToUnicode(sRead)
  3482. return sRead
  3483. }
  3484. readFloat(hProcess, dwAddress) {
  3485. if(!hProcess) {
  3486. ErrorLevel := ERROR_INVALID_HANDLE
  3487. return 0
  3488. }
  3489. VarSetCapacity(dwRead, 4)
  3490. dwRet := DllCall( "ReadProcessMemory"
  3491. , "UInt", hProcess
  3492. , "UInt", dwAddress
  3493. , "Str", dwRead
  3494. , "UInt", 4
  3495. , "UInt*", 0
  3496. , "UInt")
  3497. if(dwRet == 0) {
  3498. ErrorLevel := ERROR_READ_MEMORY
  3499. return 0
  3500. }
  3501. ErrorLevel := ERROR_OK
  3502. return NumGet(dwRead, 0, "Float")
  3503. }
  3504. readDWORD(hProcess, dwAddress) {
  3505. if(!hProcess) {
  3506. ErrorLevel := ERROR_INVALID_HANDLE
  3507. return 0
  3508. }
  3509. VarSetCapacity(dwRead, 4)
  3510. dwRet := DllCall( "ReadProcessMemory"
  3511. , "UInt", hProcess
  3512. , "UInt", dwAddress
  3513. , "Str", dwRead
  3514. , "UInt", 4
  3515. , "UInt*", 0)
  3516. if(dwRet == 0) {
  3517. ErrorLevel := ERROR_READ_MEMORY
  3518. return 0
  3519. }
  3520. ErrorLevel := ERROR_OK
  3521. return NumGet(dwRead, 0, "UInt")
  3522. }
  3523. readMem(hProcess, dwAddress, dwLen=4, type="UInt") {
  3524. if(!hProcess) {
  3525. ErrorLevel := ERROR_INVALID_HANDLE
  3526. return 0
  3527. }
  3528. VarSetCapacity(dwRead, dwLen)
  3529. dwRet := DllCall( "ReadProcessMemory"
  3530. , "UInt", hProcess
  3531. , "UInt", dwAddress
  3532. , "Str", dwRead
  3533. , "UInt", dwLen
  3534. , "UInt*", 0)
  3535. if(dwRet == 0) {
  3536. ErrorLevel := ERROR_READ_MEMORY
  3537. return 0
  3538. }
  3539. ErrorLevel := ERROR_OK
  3540. return NumGet(dwRead, 0, type)
  3541. }
  3542. writeString(hProcess, dwAddress, wString) {
  3543. if(!hProcess) {
  3544. ErrorLevel := ERROR_INVALID_HANDLE
  3545. return false
  3546. }
  3547. sString := wString
  3548. if A_IsUnicode
  3549. sString := __unicodeToAnsi(wString)
  3550. dwRet := DllCall( "WriteProcessMemory"
  3551. , "UInt", hProcess
  3552. , "UInt", dwAddress
  3553. , "Str", sString
  3554. , "UInt", StrLen(wString) + 1
  3555. , "UInt", 0
  3556. , "UInt")
  3557. if(dwRet == 0) {
  3558. ErrorLEvel := ERROR_WRITE_MEMORY
  3559. return false
  3560. }
  3561. ErrorLevel := ERROR_OK
  3562. return true
  3563. }
  3564. writeRaw(hProcess, dwAddress, pBuffer, dwLen) {
  3565. if(!hProcess) {
  3566. ErrorLevel := ERROR_INVALID_HANDLE
  3567. return false
  3568. }
  3569. dwRet := DllCall( "WriteProcessMemory"
  3570. , "UInt", hProcess
  3571. , "UInt", dwAddress
  3572. , "UInt", pBuffer
  3573. , "UInt", dwLen
  3574. , "UInt", 0
  3575. , "UInt")
  3576. if(dwRet == 0) {
  3577. ErrorLEvel := ERROR_WRITE_MEMORY
  3578. return false
  3579. }
  3580. ErrorLevel := ERROR_OK
  3581. return true
  3582. }
  3583. callWithParams(hProcess, dwFunc, aParams, bCleanupStack = true) {
  3584. if(!hProcess) {
  3585. ErrorLevel := ERROR_INVALID_HANDLE
  3586. return false
  3587. }
  3588. validParams := 0
  3589. i := aParams.MaxIndex()
  3590. dwLen := i * 5 + 5 + 1
  3591. if(bCleanupStack)
  3592. dwLen += 3
  3593. VarSetCapacity(injectData, i * 5 + 5 + 3 + 1, 0)
  3594. i_ := 1
  3595. while(i > 0) {
  3596. if(aParams[i][1] != "") {
  3597. dwMemAddress := 0x0
  3598. if(aParams[i][1] == "p") {
  3599. dwMemAddress := aParams[i][2]
  3600. } else if(aParams[i][1] == "s") {
  3601. if(i_>3)
  3602. return false
  3603. dwMemAddress := pParam%i_%
  3604. writeString(hProcess, dwMemAddress, aParams[i][2])
  3605. if(ErrorLevel)
  3606. return false
  3607. i_ += 1
  3608. } else if(aParams[i][1] == "i") {
  3609. dwMemAddress := aParams[i][2]
  3610. } else {
  3611. return false
  3612. }
  3613. NumPut(0x68, injectData, validParams * 5, "UChar")
  3614. NumPut(dwMemAddress, injectData, validParams * 5 + 1, "UInt")
  3615. validParams += 1
  3616. }
  3617. i -= 1
  3618. }
  3619. offset := dwFunc - ( pInjectFunc + validParams * 5 + 5 )
  3620. NumPut(0xE8, injectData, validParams * 5, "UChar")
  3621. NumPut(offset, injectData, validParams * 5 + 1, "Int")
  3622. if(bCleanupStack) {
  3623. NumPut(0xC483, injectData, validParams * 5 + 5, "UShort")
  3624. NumPut(validParams*4, injectData, validParams * 5 + 7, "UChar")
  3625. NumPut(0xC3, injectData, validParams * 5 + 8, "UChar")
  3626. } else {
  3627. NumPut(0xC3, injectData, validParams * 5 + 5, "UChar")
  3628. }
  3629. writeRaw(hGTA, pInjectFunc, &injectData, dwLen)
  3630. if(ErrorLevel)
  3631. return false
  3632. hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
  3633. if(ErrorLevel)
  3634. return false
  3635. waitForSingleObject(hThread, 0xFFFFFFFF)
  3636. closeProcess(hThread)
  3637. return true
  3638. }
  3639. virtualAllocEx(hProcess, dwSize, flAllocationType, flProtect) {
  3640. if(!hProcess) {
  3641. ErrorLevel := ERROR_INVALID_HANDLE
  3642. return 0
  3643. }
  3644. dwRet := DllCall( "VirtualAllocEx"
  3645. , "UInt", hProcess
  3646. , "UInt", 0
  3647. , "UInt", dwSize
  3648. , "UInt", flAllocationType
  3649. , "UInt", flProtect
  3650. , "UInt")
  3651. if(dwRet == 0) {
  3652. ErrorLEvel := ERROR_ALLOC_MEMORY
  3653. return 0
  3654. }
  3655. ErrorLevel := ERROR_OK
  3656. return dwRet
  3657. }
  3658. virtualFreeEx(hProcess, lpAddress, dwSize, dwFreeType) {
  3659. if(!hProcess) {
  3660. ErrorLevel := ERROR_INVALID_HANDLE
  3661. return 0
  3662. }
  3663. dwRet := DllCall( "VirtualFreeEx"
  3664. , "UInt", hProcess
  3665. , "UInt", lpAddress
  3666. , "UInt", dwSize
  3667. , "UInt", dwFreeType
  3668. , "UInt")
  3669. if(dwRet == 0) {
  3670. ErrorLEvel := ERROR_FREE_MEMORY
  3671. return 0
  3672. }
  3673. ErrorLevel := ERROR_OK
  3674. return dwRet
  3675. }
  3676. createRemoteThread(hProcess, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags, lpThreadId) {
  3677. if(!hProcess) {
  3678. ErrorLevel := ERROR_INVALID_HANDLE
  3679. return 0
  3680. }
  3681. dwRet := DllCall( "CreateRemoteThread"
  3682. , "UInt", hProcess
  3683. , "UInt", lpThreadAttributes
  3684. , "UInt", dwStackSize
  3685. , "UInt", lpStartAddress
  3686. , "UInt", lpParameter
  3687. , "UInt", dwCreationFlags
  3688. , "UInt", lpThreadId
  3689. , "UInt")
  3690. if(dwRet == 0) {
  3691. ErrorLEvel := ERROR_ALLOC_MEMORY
  3692. return 0
  3693. }
  3694. ErrorLevel := ERROR_OK
  3695. return dwRet
  3696. }
  3697. waitForSingleObject(hThread, dwMilliseconds) {
  3698. if(!hThread) {
  3699. ErrorLevel := ERROR_INVALID_HANDLE
  3700. return 0
  3701. }
  3702. dwRet := DllCall( "WaitForSingleObject"
  3703. , "UInt", hThread
  3704. , "UInt", dwMilliseconds
  3705. , "UInt")
  3706. if(dwRet == 0xFFFFFFFF) {
  3707. ErrorLEvel := ERROR_WAIT_FOR_OBJECT
  3708. return 0
  3709. }
  3710. ErrorLevel := ERROR_OK
  3711. return dwRet
  3712. }
  3713. __ansiToUnicode(sString, nLen = 0) {
  3714. If !nLen
  3715. {
  3716. nLen := DllCall("MultiByteToWideChar"
  3717. , "Uint", 0
  3718. , "Uint", 0
  3719. , "Uint", &sString
  3720. , "int", -1
  3721. , "Uint", 0
  3722. , "int", 0)
  3723. }
  3724. VarSetCapacity(wString, nLen * 2)
  3725. DllCall("MultiByteToWideChar"
  3726. , "Uint", 0
  3727. , "Uint", 0
  3728. , "Uint", &sString
  3729. , "int", -1
  3730. , "Uint", &wString
  3731. , "int", nLen)
  3732. return wString
  3733. }
  3734. __unicodeToAnsi(wString, nLen = 0) {
  3735. pString := wString + 1 > 65536 ? wString : &wString
  3736. If !nLen
  3737. {
  3738. nLen := DllCall("WideCharToMultiByte"
  3739. , "Uint", 0
  3740. , "Uint", 0
  3741. , "Uint", pString
  3742. , "int", -1
  3743. , "Uint", 0
  3744. , "int", 0
  3745. , "Uint", 0
  3746. , "Uint", 0)
  3747. }
  3748. VarSetCapacity(sString, nLen)
  3749. DllCall("WideCharToMultiByte"
  3750. , "Uint", 0
  3751. , "Uint", 0
  3752. , "Uint", pString
  3753. , "int", -1
  3754. , "str", sString
  3755. , "int", nLen
  3756. , "Uint", 0
  3757. , "Uint", 0)
  3758. return sString
  3759. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement