Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; <COMPILER: v1.1.16.05>
- #SingleInstance, Force
- #UseHook, On
- #If WinActive("GTA:SA:MP") and (isInChat() == 0)
- #Persistent
- #NoTrayIcon
- #NoEnv
- version := "2.2"
- lastupdate := "07.05.15, 17:35 Uhr"
- server := "http://lyd-roleplay.de"
- Url := "lyd-roleplay.de"
- verfile := "lyd.txt"
- serverstatus :=
- SetTimer, UpdateBarTimer, 40
- SetTimer, DownloadBarTimer, 40
- SetTimer, KillCounter, 100
- RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
- if(ErrorLevel = 0){
- serverstatus := "Online"
- } else {
- RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
- if(ErrorLevel = 0){
- serverstatus := "Online"
- } else {
- RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
- if(ErrorLevel = 0 && serverstatus != "Online"){
- serverstatus := "Online"
- } else {
- RunWait,%ComSpec% /c ping %Url% -n 1 -w 10,,Hide
- if(ErrorLevel = 0){
- serverstatus := "Online"
- } else {
- serverstatus := "Offline"
- }
- }
- }
- }
- IfNotExist, %a_MyDocuments%\LYD-Keybinder\
- {
- FileCreateDir, %A_MyDocuments%\LYD-Keybinder
- }
- IfNotExist, %a_MyDocuments%\LYD-Keybinder\images\
- {
- FileCreateDir, %A_MyDocuments%\LYD-Keybinder\images\
- }
- IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\1.png
- {
- if(serverstatus == "Offline")
- {
- MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
- ExitApp
- }
- Urldownloadtofile,%server%/keybinder/images/1.png, %a_MyDocuments%\LYD-Keybinder\images\1.png
- }
- IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\2.png
- {
- if(serverstatus == "Offline")
- {
- MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
- ExitApp
- }
- Urldownloadtofile,%server%/keybinder/images/2.png, %a_MyDocuments%\LYD-Keybinder\images\2.png
- }
- IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\3.png
- {
- if(serverstatus == "Offline")
- {
- MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
- ExitApp
- }
- Urldownloadtofile,%server%/keybinder/images/3.png, %a_MyDocuments%\LYD-Keybinder\images\3.png
- }
- IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\4.png
- { if(serverstatus == "Offline")
- {
- MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
- ExitApp
- }
- Urldownloadtofile,%server%/keybinder/images/4.png, %a_MyDocuments%\LYD-Keybinder\images\4.png
- }
- IfNotExist,%a_MyDocuments%\LYD-Keybinder\images\5.png
- {
- if(serverstatus == "Offline")
- {
- MsgBox,64,Server Offline, Der Server ist offline! Download der Daten nicht möglich.
- ExitApp
- }
- Urldownloadtofile,%server%/keybinder/images/5.png, %a_MyDocuments%\LYD-Keybinder\images\5.png
- }
- IfNotExist, %a_MyDocuments%\LYD-Keybinder\
- {
- FileCreateDir, %A_MyDocuments%\LYD-Keybinder
- }
- Iniread, Kills, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
- If (Kills = "" or Kills = "ERROR")
- {
- Kills := 0
- IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
- }
- Iniread, Key1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
- If (Key1 = "" or Key1 = "ERROR")
- {
- Key1 :=
- IniWrite, %Key1%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
- }
- Iniread, Key2, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
- If (Key2 = "" or Key2 = "ERROR")
- {
- Key2 :=
- IniWrite, %Key2%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
- }
- Iniread, Key3, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
- If (Key3 = "" or Key3 = "ERROR")
- {
- Key3 :=
- IniWrite, %Key3%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
- }
- Iniread, Key4, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
- If (Key4 = "" or Key4 = "ERROR")
- {
- Key4 :=
- IniWrite, %Key4%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
- }
- Iniread, Key5, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
- If (Key5 = "" or Key5 = "ERROR")
- {
- Key5 :=
- IniWrite, %Key5%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
- }
- Iniread, Key6, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
- If (Key6 = "" or Key6 = "ERROR")
- {
- Key6 :=
- IniWrite, %Key6%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
- }
- Iniread, Key7, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
- If (Key7 = "" or Key7 = "ERROR")
- {
- Key7 :=
- IniWrite, %Key7%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
- }
- Iniread, Key8, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
- If (Key8 = "" or Key8 = "ERROR")
- {
- Key8 :=
- IniWrite, %Key8%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
- }
- Iniread, Key9, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
- If (Key9 = "" or Key9 = "ERROR")
- {
- Key9 :=
- IniWrite, %Key9%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
- }
- Iniread, Key10, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
- If (Key10 = "" or Key10 = "ERROR")
- {
- Key10 :=
- IniWrite, %Key10%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
- }
- Iniread, Key11, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
- If (Key11 = "" or Key11 = "ERROR")
- {
- Key11 :=
- IniWrite, %Key11%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
- }
- Iniread, Key12, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
- If (Key12 = "" or Key12 = "ERROR")
- {
- Key12 :=
- IniWrite, %Key12%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
- }
- Iniread, Key13, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
- If (Key13 = "" or Key13 = "ERROR")
- {
- Key13 :=
- IniWrite, %Key13%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
- }
- Iniread, Key14, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
- If (Key14 = "" or Key14 = "ERROR")
- {
- Key14 :=
- IniWrite, %Key14%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
- }
- Iniread, Key15, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
- If (Key15 = "" or Key15 = "ERROR")
- {
- Key15 :=
- IniWrite, %Key15%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
- }
- Iniread, Key16, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
- If (Key16 = "" or Key16 = "ERROR")
- {
- Key16 :=
- IniWrite, %Key16%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
- }
- Iniread, Key17, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
- If (Key17 = "" or Key17 = "ERROR")
- {
- Key17 :=
- IniWrite, %Key17%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
- }
- Iniread, Key18, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
- If (Key18 = "" or Key18 = "ERROR")
- {
- Key18 :=
- IniWrite, %Key18%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
- }
- Iniread, Key19, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
- If (Key19 = "" or Key19 = "ERROR")
- {
- Key19 :=
- IniWrite, %Key19%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
- }
- Iniread, Key20, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
- If (Key20 = "" or Key20 = "ERROR")
- {
- Key20 :=
- IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
- }
- Iniread, Key21, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
- If (Key21 = "" or Key21 = "ERROR")
- {
- Key21 :=
- IniWrite, %Key21%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
- }
- Iniread, Key22, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
- If (Key22 = "" or Key22 = "ERROR")
- {
- Key22 :=
- IniWrite, %Key22%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
- }
- Iniread, Key23, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
- If (Key23 = "" or Key23 = "ERROR")
- {
- Key23 :=
- IniWrite, %Key23%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
- }
- Iniread, Key24, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
- If (Key24 = "" or Key24 = "ERROR")
- {
- Key24 :=
- IniWrite, %Key24%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
- }
- Iniread, Key25, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
- If (Key25 = "" or Key25 = "ERROR")
- {
- Key25 :=
- IniWrite, %Key25%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
- }
- Iniread, Key26, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
- If (Key26 = "" or Key26 = "ERROR")
- {
- Key26 :=
- IniWrite, %Key26%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
- }
- Iniread, Key27, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
- If (Key27 = "" or Key27 = "ERROR")
- {
- Key27 :=
- IniWrite, %Key27%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
- }
- Iniread, Key28, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
- If (Key28 = "" or Key28 = "ERROR")
- {
- Key28 :=
- IniWrite, %Key28%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
- }
- Iniread, Key29, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
- If (Key29 = "" or Key29 = "ERROR")
- {
- Key29 :=
- IniWrite, %Key29%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
- }
- Iniread, Key30, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
- If (Key30 = "" or Key30 = "ERROR")
- {
- Key30 :=
- IniWrite, %Key30%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
- }
- Iniread, Key31, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
- If (Key31 = "" or Key31 = "ERROR")
- {
- Key31 :=
- IniWrite, %Key31%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
- }
- Iniread, Key32, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
- If (Key32 = "" or Key32 = "ERROR")
- {
- Key32 :=
- IniWrite, %Key32%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
- }
- Iniread, Key33, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
- If (Key33 = "" or Key33 = "ERROR")
- {
- Key33 :=
- IniWrite, %Key33%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
- }
- Iniread, Key34, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
- If (Key34 = "" or Key34 = "ERROR")
- {
- Key34 :=
- IniWrite, %Key34%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
- }
- Iniread, Key35, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
- If (Key35 = "" or Key35 = "ERROR")
- {
- Key35 :=
- IniWrite, %Key35%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
- }
- Iniread, Key36, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
- If (Key36 = "" or Key36 = "ERROR")
- {
- Key36 :=
- IniWrite, %Key36%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
- }
- Iniread, Key37, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
- If (Key37 = "" or Key37 = "ERROR")
- {
- Key37 :=
- IniWrite, %Key37%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
- }
- Iniread, Key38, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
- If (Key38 = "" or Key38 = "ERROR")
- {
- Key38 :=
- IniWrite, %Key38%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
- }
- Iniread, Key39, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
- If (Key39 = "" or Key39 = "ERROR")
- {
- Key39 :=
- IniWrite, %Key39%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
- }
- Iniread, Key40, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
- If (Key40 = "" or Key40 = "ERROR")
- {
- Key40 :=
- IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
- }
- Iniread, KillCounterText, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
- If (KillCounterText = "ERROR")
- {
- KillCounterText :=
- IniWrite, %KillCounterText%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
- }
- Iniread, Key1Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
- If (Key1Text = "ERROR")
- {
- Key1Text :=
- IniWrite, %Key1Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
- }
- Iniread, Key2Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
- If (Key2Text = "ERROR")
- {
- Key2Text :=
- IniWrite, %Key2Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
- }
- Iniread, Key3Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
- If (Key3Text = "ERROR")
- {
- Key3Text :=
- IniWrite, %Key3Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
- }
- Iniread, Key4Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
- If ( Key4Text = "ERROR")
- {
- Key4Text :=
- IniWrite, %Key4Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
- }
- Iniread, Key5Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
- If (Key5Text = "ERROR")
- {
- Key5Text :=
- IniWrite, %Key5Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
- }
- Iniread, Key6Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
- If (Key6Text = "ERROR")
- {
- Key6Text :=
- IniWrite, %Key6Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
- }
- Iniread, Key7Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
- If (Key7Text = "ERROR")
- {
- Key7Text :=
- IniWrite, %Key7Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
- }
- Iniread, Key8Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
- If (Key8Text = "ERROR")
- {
- Key8Text :=
- IniWrite, %Key8Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
- }
- Iniread, Key9Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
- If (Key9Text = "ERROR")
- {
- Key9Text :=
- IniWrite, %Key9Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
- }
- Iniread, Key10Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
- If (Key10Text = "ERROR")
- {
- Key10Text :=
- IniWrite, %Key10Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
- }
- Iniread, Key11Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
- If (Key11Text = "ERROR")
- {
- Key11Text :=
- IniWrite, %Key11Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
- }
- Iniread, Key12Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
- If (Key12Text = "ERROR")
- {
- Key12Text :=
- IniWrite, %Key12Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
- }
- Iniread, Key13Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
- If (Key13Text = "ERROR")
- {
- Key13Text :=
- IniWrite, %Key13Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
- }
- Iniread, Key14Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
- If (Key14Text = "ERROR")
- {
- Key14Text :=
- IniWrite, %Key14Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
- }
- Iniread, Key15Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
- If (Key15Text = "ERROR")
- {
- Key15Text :=
- IniWrite, %Key15Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
- }
- Iniread, Key16Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
- If (Key16Text = "ERROR")
- {
- Key16Text :=
- IniWrite, %Key16Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
- }
- Iniread, Key17Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
- If (Key17Text = "ERROR")
- {
- Key17Text :=
- IniWrite, %Key17Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
- }
- Iniread, Key18Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
- If (Key18Text = "ERROR")
- {
- Key18Text :=
- IniWrite, %Key18Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
- }
- Iniread, Key19Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
- If (Key19Text = "ERROR")
- {
- Key19Text :=
- IniWrite, %Key19Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
- }
- Iniread, Key20Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
- If (Key20Text = "ERROR")
- {
- Key20Text :=
- IniWrite, %Key20Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
- }
- Iniread, Key21Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
- If (Key21Text = "ERROR")
- {
- Key21Text :=
- IniWrite, %Key21Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
- }
- Iniread, Key22Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
- If (Key22Text = "ERROR")
- {
- Key22Text :=
- IniWrite, %Key22Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
- }
- Iniread, Key23Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
- If (Key23Text = "ERROR")
- {
- Key23Text :=
- IniWrite, %Key23Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
- }
- Iniread, Key24Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
- If (Key24Text = "ERROR")
- {
- Key24Text :=
- IniWrite, %Key24Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
- }
- Iniread, Key25Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
- If (Key25Text = "ERROR")
- {
- Key25Text :=
- IniWrite, %Key25Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
- }
- Iniread, Key26Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
- If (Key26Text = "ERROR")
- {
- Key26Text :=
- IniWrite, %Key26Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
- }
- Iniread, Key27Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
- If (Key27Text = "ERROR")
- {
- Key27Text :=
- IniWrite, %Key27Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
- }
- Iniread, Key28Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
- If (Key28Text = "ERROR")
- {
- Key28Text :=
- IniWrite, %Key28Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
- }
- Iniread, Key29Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
- If (Key29Text = "ERROR")
- {
- Key29Text :=
- IniWrite, %Key29Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
- }
- Iniread, Key30Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
- If (Key30Text = "ERROR")
- {
- Key30Text :=
- IniWrite, %Key30Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
- }
- Iniread, Key31Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
- If (Key31Text = "ERROR")
- {
- Key31Text :=
- IniWrite, %Key31Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
- }
- Iniread, Key32Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
- If (Key32Text = "ERROR")
- {
- Key32Text :=
- IniWrite, %Key32Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
- }
- Iniread, Key33Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
- If (Key33Text = "ERROR")
- {
- Key33Text :=
- IniWrite, %Key33Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
- }
- Iniread, Key34Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
- If (Key34Text = "ERROR")
- {
- Key34Text :=
- IniWrite, %Key34Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
- }
- Iniread, Key35Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
- If (Key35Text = "ERROR")
- {
- Key35Text :=
- IniWrite, %Key35Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
- }
- Iniread, Key36Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
- If (Key36Text = "ERROR")
- {
- Key36Text :=
- IniWrite, %Key36Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
- }
- Iniread, Key37Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
- If (Key37Text = "ERROR")
- {
- Key37Text :=
- IniWrite, %Key37Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
- }
- Iniread, Key38Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
- If (Key38Text = "ERROR")
- {
- Key38Text :=
- IniWrite, %Key38Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
- }
- Iniread, Key39Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
- If (Key39Text = "ERROR")
- {
- Key39Text :=
- IniWrite, %Key39Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
- }
- Iniread, Key40Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
- If (Key40Text = "ERROR")
- {
- Key40Text :=
- IniWrite, %Key40Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
- }
- Iniread, ToggleKey, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
- If (ToggleKey = "" or ToggleKey = "ERROR")
- {
- ToggleKey := F12
- IniWrite, %ToggleKey%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
- }
- Iniread, KillCounterToggle, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterToggle
- Iniread, Key1Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Status
- Iniread, Key2Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Status
- Iniread, Key3Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Status
- Iniread, Key4Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Status
- Iniread, Key5Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Status
- Iniread, Key6Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Status
- Iniread, Key7Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Status
- Iniread, Key8Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Status
- Iniread, Key9Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Status
- Iniread, Key10Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Status
- Iniread, Key11Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Status
- Iniread, Key12Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Status
- Iniread, Key13Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Status
- Iniread, Key14Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Status
- Iniread, Key15Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Status
- Iniread, Key16Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Status
- Iniread, Key17Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Status
- Iniread, Key18Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Status
- Iniread, Key19Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Status
- Iniread, Key20Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Status
- Iniread, Key21Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Status
- Iniread, Key22Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Status
- Iniread, Key23Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Status
- Iniread, Key24Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Status
- Iniread, Key25Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Status
- Iniread, Key26Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Status
- Iniread, Key27Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Status
- Iniread, Key28Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Status
- Iniread, Key29Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Status
- Iniread, Key30Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Status
- Iniread, Key31Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Status
- Iniread, Key32Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Status
- Iniread, Key33Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Status
- Iniread, Key34Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Status
- Iniread, Key35Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Status
- Iniread, Key36Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Status
- Iniread, Key37Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Status
- Iniread, Key38Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Status
- Iniread, Key39Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Status
- Iniread, Key40Status, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Status
- Iniread, Key1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
- Iniread, Key2, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
- Iniread, Key3, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
- Iniread, Key4, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
- Iniread, Key5, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
- Iniread, Key6, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
- Iniread, Key7, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
- Iniread, Key8, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
- Iniread, Key9, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
- Iniread, Key10, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
- Iniread, Key11, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
- Iniread, Key12, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
- Iniread, Key13, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
- Iniread, Key14, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
- Iniread, Key15, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
- Iniread, Key16, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
- Iniread, Key17, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
- Iniread, Key18, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
- Iniread, Key19, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
- Iniread, Key20, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
- Iniread, Key21, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
- Iniread, Key22, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
- Iniread, Key23, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
- Iniread, Key24, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
- Iniread, Key25, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
- Iniread, Key26, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
- Iniread, Key27, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
- Iniread, Key28, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
- Iniread, Key29, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
- Iniread, Key30, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
- Iniread, Key31, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
- Iniread, Key32, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
- Iniread, Key33, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
- Iniread, Key34, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
- Iniread, Key35, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
- Iniread, Key36, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
- Iniread, Key37, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
- Iniread, Key38, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
- Iniread, Key39, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
- Iniread, Key40, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
- Iniread, Key1Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
- Iniread, Key2Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
- Iniread, Key3Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
- Iniread, Key4Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
- Iniread, Key5Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
- Iniread, Key6Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
- Iniread, Key7Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
- Iniread, Key8Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
- Iniread, Key9Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
- Iniread, Key10Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
- Iniread, Key11Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
- Iniread, Key12Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
- Iniread, Key13Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
- Iniread, Key14Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
- Iniread, Key15Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
- Iniread, Key16Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
- Iniread, Key17Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
- Iniread, Key18Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
- Iniread, Key19Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
- Iniread, Key20Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
- Iniread, Key21Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
- Iniread, Key22Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
- Iniread, Key23Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
- Iniread, Key24Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
- Iniread, Key25Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
- Iniread, Key26Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
- Iniread, Key27Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
- Iniread, Key28Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
- Iniread, Key29Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
- Iniread, Key30Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
- Iniread, Key31Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
- Iniread, Key32Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
- Iniread, Key33Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
- Iniread, Key34Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
- Iniread, Key35Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
- Iniread, Key36Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
- Iniread, Key37Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
- Iniread, Key38Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
- Iniread, Key39Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
- Iniread, Key40Text, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
- Iniread, Key1Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Enter
- Iniread, Key2Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Enter
- Iniread, Key3Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Enter
- Iniread, Key4Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Enter
- Iniread, Key5Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Enter
- Iniread, Key6Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Enter
- Iniread, Key7Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Enter
- Iniread, Key8Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Enter
- Iniread, Key9Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Enter
- Iniread, Key10Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Enter
- Iniread, Key11Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Enter
- Iniread, Key12Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Enter
- Iniread, Key13Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Enter
- Iniread, Key14Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Enter
- Iniread, Key15Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Enter
- Iniread, Key16Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Enter
- Iniread, Key17Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Enter
- Iniread, Key18Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Enter
- Iniread, Key19Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Enter
- Iniread, Key20Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Enter
- Iniread, Key21Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Enter
- Iniread, Key22Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Enter
- Iniread, Key23Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Enter
- Iniread, Key24Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Enter
- Iniread, Key25Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Enter
- Iniread, Key26Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Enter
- Iniread, Key27Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Enter
- Iniread, Key28Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Enter
- Iniread, Key29Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Enter
- Iniread, Key30Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Enter
- Iniread, Key31Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Enter
- Iniread, Key32Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Enter
- Iniread, Key33Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Enter
- Iniread, Key34Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Enter
- Iniread, Key35Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Enter
- Iniread, Key36Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Enter
- Iniread, Key37Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Enter
- Iniread, Key38Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Enter
- Iniread, Key39Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Enter
- Iniread, Key40Enter, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Enter
- Iniread, ToggleKey, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
- Iniread, NoVersionWarn, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, NoVersionWarn
- global ERROR_OK := 0
- global ERROR_PROCESS_NOT_FOUND := 1
- global ERROR_OPEN_PROCESS := 2
- global ERROR_INVALID_HANDLE := 3
- global ERROR_MODULE_NOT_FOUND := 4
- global ERROR_ENUM_PROCESS_MODULES := 5
- global ERROR_ZONE_NOT_FOUND := 6
- global ERROR_CITY_NOT_FOUND := 7
- global ERROR_READ_MEMORY := 8
- global ERROR_WRITE_MEMORY := 9
- global ERROR_ALLOC_MEMORY := 10
- global ERROR_FREE_MEMORY := 11
- global ERROR_WAIT_FOR_OBJECT := 12
- global ERROR_CREATE_THREAD := 13
- global ADDR_ZONECODE := 0xA49AD4
- global ADDR_POSITION_X := 0xB6F2E4
- global ADDR_POSITION_Y := 0xB6F2E8
- global ADDR_POSITION_Z := 0xB6F2EC
- global ADDR_CPED_PTR := 0xB6F5F0
- global ADDR_CPED_HPOFF := 0x540
- global ADDR_CPED_ARMOROFF := 0x548
- global ADDR_VEHICLE_PTR := 0xBA18FC
- global ADDR_VEHICLE_HPOFF := 0x4C0
- global ADDR_CPED_MONEY := 0x0B7CE54
- global ADDR_CPED_INTID := 0xA4ACE8
- global ADDR_VEHICLE_DOORSTATE := 0x4F8
- global ADDR_VEHICLE_ENGINESTATE := 0x428
- global ADDR_VEHICLE_LIGHTSTATE := 0x584
- global ADDR_VEHICLE_MODEL := 0x22
- global ADDR_VEHICLE_TYPE := 0x590
- global ADDR_VEHICLE_DRIVER := 0x460
- global oAirplaneModels := [417, 425, 447, 460, 469, 476, 487, 488, 497, 511, 512, 513, 519, 520, 548, 553, 563, 577, 592, 593]
- global oBikeModels := [481,509,510]
- 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"]
- global ADDR_SAMP_INCHAT_PTR := 0x21a10c
- global ADDR_SAMP_INCHAT_PTR_OFF := 0x55
- global ADDR_SAMP_USERNAME := 0x219A6F
- global ADDR_SAMP_CHATMSG_PTR := 0x21a0e4
- global ADDR_SAMP_SHOWDLG_PTR := 0x21a0b8
- global FUNC_SAMP_SENDCMD := 0x65c60
- global FUNC_SAMP_SENDSAY := 0x57f0
- global FUNC_SAMP_ADDTOCHATWND := 0x64520
- global FUNC_SAMP_SHOWGAMETEXT := 0x9c2c0
- global FUNC_SAMP_PLAYAUDIOSTR := 0x62da0
- global FUNC_SAMP_STOPAUDIOSTR := 0x629a0
- global FUNC_SAMP_SHOWDIALOG := 0x6B9C0
- global FUNC_UPDATESCOREBOARD := 0x8a10
- global SAMP_INFO_OFFSET := 0x21a0f8
- global SAMP_PPOOLS_OFFSET := 0x3D9
- global SAMP_PPOOL_PLAYER_OFFSET := 0x14
- global SAMP_SLOCALPLAYERID_OFFSET := 0x4
- global SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET := 0x1A
- global SAMP_SZLOCALPLAYERNAME_OFFSET := 0xA
- global SAMP_PSZLOCALPLAYERNAME_OFFSET := 0xA
- global SAMP_PREMOTEPLAYER_OFFSET := 0x2E
- global SAMP_ISTRLENNAME___OFFSET := 0x24
- global SAMP_SZPLAYERNAME_OFFSET := 0x14
- global SAMP_PSZPLAYERNAME_OFFSET := 0x14
- global SAMP_ILOCALPLAYERPING_OFFSET := 0x26
- global SAMP_ILOCALPLAYERSCORE_OFFSET := 0x2A
- global SAMP_IPING_OFFSET := 0xC
- global SAMP_ISCORE_OFFSET := 0x4
- global SAMP_ISNPC_OFFSET := 0x0
- global SAMP_PLAYER_MAX := 1004
- global SIZE_SAMP_CHATMSG := 0xFC
- global hGTA := 0x0
- global dwGTAPID := 0x0
- global dwSAMP := 0x0
- global pMemory := 0x0
- global pParam1 := 0x0
- global pParam2 := 0x0
- global pParam3 := 0x0
- global pInjectFunc := 0x0
- global nZone := 1
- global nCity := 1
- global bInitZaC := 0
- global iRefreshScoreboard := 0
- global oScoreboardData := ""
- global iRefreshHandles := 0
- global iUpdateTick := 2500
- Gui, Add, Picture, x-8 y-1 w1150 h70 , %a_MyDocuments%\LYD-Keybinder\images\1.png
- Gui, Font, S14 Cwhite Bold, Calibri
- Gui, Add, Text, x25 y19 w220 h30 BackgroundTrans, Live Your Dream
- Gui, Font, S12 Cwhite Bold, Calibri
- Gui, Add, Text, x730 y23 w90 h30 gKillCounterGui BackgroundTrans, Kill Counter
- Gui, Add, Text, x835 y23 w70 h30 gVariablen BackgroundTrans, Variablen
- Gui, Add, Text, x925 y23 w30 h30 gHelp BackgroundTrans, Hilfe
- Gui, Add, Picture, x-8 y69 w1140 h570 , %a_MyDocuments%\LYD-Keybinder\images\3.png
- Gui, Add, Picture, x12 y99 w1090 h420 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, Add, Picture, x12 y529 w1090 h110 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, Add, Picture, x980 y19 w113 h27 gGotoforum, %a_MyDocuments%\LYD-Keybinder\images\5.png
- Gui, Font, S12 CWHITE Bold, Calibri
- Gui, Add, Text, x20 y105 w20 h20 BackgroundTrans, An
- Gui, Add, Text, x50 y105 w50 h20 BackgroundTrans, Taste
- Gui, Add, Text, x180 y105 w50 h20 BackgroundTrans, Text
- Gui, Add, Text, x502 y105 w50 h20 BackgroundTrans, Enter
- Gui, Add, Text, x580 y105 w20 h20 BackgroundTrans, An
- Gui, Add, Text, x620 y105 w50 h20 BackgroundTrans, Taste
- Gui, Add, Text, x750 y105 w50 h20 BackgroundTrans, Text
- Gui, Add, Text, x1060 y105 w50 h20 BackgroundTrans, Enter
- Gui, Font, S8 CBLACK,
- Gui, Font, S10 CBLUE Bold,
- Gui, Add, Hotkey, x40 y440 w120 h20 BackgroundTrans vToggleKey, %ToggleKey%
- Gui, Font, S12 Cwhite Bold, Calibri
- Gui, Add, Text, x170 y440 w230 h20 BackgroundTrans , Taste zum An/Aus schalten
- Gui, Font, S10 CBLACK Bold,
- Gui, Add, Button, x40 y470 w120 h30 BackgroundTrans gSave, Speichern
- Gui, Add, CheckBox, x22 y132 w14 h14 BackgroundTrans gKey1Status vKey1Status Checked%Key1Status%,
- Gui, Add, CheckBox, x22 y162 w14 h14 BackgroundTrans gKey2Status vKey2Status Checked%Key2Status%,
- Gui, Add, CheckBox, x22 y192 w14 h14 BackgroundTrans gKey3Status vKey3Status Checked%Key3Status%,
- Gui, Add, CheckBox, x22 y222 w14 h14 BackgroundTrans gKey4Status vKey4Status Checked%Key4Status%,
- Gui, Add, CheckBox, x22 y252 w14 h14 BackgroundTrans gKey5Status vKey5Status Checked%Key5Status%,
- Gui, Add, CheckBox, x22 y282 w14 h14 BackgroundTrans gKey6Status vKey6Status Checked%Key6Status%,
- Gui, Add, CheckBox, x22 y312 w14 h14 BackgroundTrans gKey7Status vKey7Status Checked%Key7Status%,
- Gui, Add, CheckBox, x22 y342 w14 h14 BackgroundTrans gKey8Status vKey8Status Checked%Key8Status%,
- Gui, Add, CheckBox, x22 y372 w14 h14 BackgroundTrans gKey9Status vKey9Status Checked%Key9Status%,
- Gui, Add, CheckBox, x22 y402 w14 h14 BackgroundTrans gKey10Status vKey10Status Checked%Key10Status%,
- Gui, Add, CheckBox, x580 y132 w14 h14 BackgroundTrans gKey11Status vKey11Status Checked%Key11Status%,
- Gui, Add, CheckBox, x580 y162 w14 h14 BackgroundTrans gKey12Status vKey12Status Checked%Key12Status%,
- Gui, Add, CheckBox, x580 y192 w14 h14 BackgroundTrans gKey13Status vKey13Status Checked%Key13Status%,
- Gui, Add, CheckBox, x580 y222 w14 h14 BackgroundTrans gKey14Status vKey14Status Checked%Key14Status%,
- Gui, Add, CheckBox, x580 y252 w14 h14 BackgroundTrans gKey15Status vKey15Status Checked%Key15Status%,
- Gui, Add, CheckBox, x580 y282 w14 h14 BackgroundTrans gKey16Status vKey16Status Checked%Key16Status%,
- Gui, Add, CheckBox, x580 y312 w14 h14 BackgroundTrans gKey17Status vKey17Status Checked%Key17Status%,
- Gui, Add, CheckBox, x580 y342 w14 h14 BackgroundTrans gKey18Status vKey18Status Checked%Key18Status%,
- Gui, Add, CheckBox, x580 y372 w14 h14 BackgroundTrans gKey19Status vKey19Status Checked%Key19Status%,
- Gui, Add, CheckBox, x580 y402 w14 h14 BackgroundTrans gKey20Status vKey20Status Checked%Key20Status%,
- Gui, Add, Hotkey, x40 y129 w120 h20 BackgroundTrans vKey1, %Key1%
- Gui, Add, Hotkey, x40 y159 w120 h20 BackgroundTrans vKey2, %Key2%
- Gui, Add, Hotkey, x40 y189 w120 h20 BackgroundTrans vKey3, %Key3%
- Gui, Add, Hotkey, x40 y219 w120 h20 BackgroundTrans vKey4, %Key4%
- Gui, Add, Hotkey, x40 y249 w120 h20 BackgroundTrans vKey5, %Key5%
- Gui, Add, Hotkey, x40 y279 w120 h20 BackgroundTrans vKey6, %Key6%
- Gui, Add, Hotkey, x40 y309 w120 h20 BackgroundTrans vKey7, %Key7%
- Gui, Add, Hotkey, x40 y339 w120 h20 BackgroundTrans vKey8, %Key8%
- Gui, Add, Hotkey, x40 y369 w120 h20 BackgroundTrans vKey9, %Key9%
- Gui, Add, Hotkey, x40 y399 w120 h20 BackgroundTrans vKey10, %Key10%
- Gui, Add, Hotkey, x610 y129 w120 h20 BackgroundTrans vKey11, %Key11%
- Gui, Add, Hotkey, x610 y159 w120 h20 BackgroundTrans vKey12, %Key12%
- Gui, Add, Hotkey, x610 y189 w120 h20 BackgroundTrans vKey13, %Key13%
- Gui, Add, Hotkey, x610 y219 w120 h20 BackgroundTrans vKey14, %Key14%
- Gui, Add, Hotkey, x610 y249 w120 h20 BackgroundTrans vKey15, %Key15%
- Gui, Add, Hotkey, x610 y279 w120 h20 BackgroundTrans vKey16, %Key16%
- Gui, Add, Hotkey, x610 y309 w120 h20 BackgroundTrans vKey17, %Key17%
- Gui, Add, Hotkey, x610 y339 w120 h20 BackgroundTrans vKey18, %Key18%
- Gui, Add, Hotkey, x610 y369 w120 h20 BackgroundTrans vKey19, %Key19%
- Gui, Add, Hotkey, x610 y399 w120 h20 BackgroundTrans vKey20, %Key20%
- Gui, Add, Edit, x170 y129 w330 h20 BackgroundTrans vKey1Text, %Key1Text%
- Gui, Add, Edit, x170 y159 w330 h20 BackgroundTrans vKey2Text, %Key2Text%
- Gui, Add, Edit, x170 y189 w330 h20 BackgroundTrans vKey3Text, %Key3Text%
- Gui, Add, Edit, x170 y219 w330 h20 BackgroundTrans vKey4Text, %Key4Text%
- Gui, Add, Edit, x170 y249 w330 h20 BackgroundTrans vKey5Text, %Key5Text%
- Gui, Add, Edit, x170 y279 w330 h20 BackgroundTrans vKey6Text, %Key6Text%
- Gui, Add, Edit, x170 y309 w330 h20 BackgroundTrans vKey7Text, %Key7Text%
- Gui, Add, Edit, x170 y339 w330 h20 BackgroundTrans vKey8Text, %Key8Text%
- Gui, Add, Edit, x170 y369 w330 h20 BackgroundTrans vKey9Text, %Key9Text%
- Gui, Add, Edit, x170 y399 w330 h20 BackgroundTrans vKey10Text, %Key10Text%
- Gui, Add, Edit, x740 y129 w330 h20 BackgroundTrans vKey11Text, %Key11Text%
- Gui, Add, Edit, x740 y159 w330 h20 BackgroundTrans vKey12Text, %Key12Text%
- Gui, Add, Edit, x740 y189 w330 h20 BackgroundTrans vKey13Text, %Key13Text%
- Gui, Add, Edit, x740 y219 w330 h20 BackgroundTrans vKey14Text, %Key14Text%
- Gui, Add, Edit, x740 y249 w330 h20 BackgroundTrans vKey15Text, %Key15Text%
- Gui, Add, Edit, x740 y279 w330 h20 BackgroundTrans vKey16Text, %Key16Text%
- Gui, Add, Edit, x740 y309 w330 h20 BackgroundTrans vKey17Text, %Key17Text%
- Gui, Add, Edit, x740 y339 w330 h20 BackgroundTrans vKey18Text, %Key18Text%
- Gui, Add, Edit, x740 y369 w330 h20 BackgroundTrans vKey19Text, %Key19Text%
- Gui, Add, Edit, x740 y399 w330 h20 BackgroundTrans vKey20Text, %Key20Text%
- Gui, Add, CheckBox, x510 y132 w14 h14 BackgroundTrans gKey1Enter vKey1Enter Checked%Key1Enter%,
- Gui, Add, CheckBox, x510 y162 w14 h14 BackgroundTrans gKey2Enter vKey2Enter Checked%Key2Enter%,
- Gui, Add, CheckBox, x510 y192 w14 h14 BackgroundTrans gKey3Enter vKey3Enter Checked%Key3Enter%,
- Gui, Add, CheckBox, x510 y222 w14 h14 BackgroundTrans gKey4Enter vKey4Enter Checked%Key4Enter%,
- Gui, Add, CheckBox, x510 y252 w14 h14 BackgroundTrans gKey5Enter vKey5Enter Checked%Key5Enter%,
- Gui, Add, CheckBox, x510 y282 w14 h14 BackgroundTrans gKey6Enter vKey6Enter Checked%Key6Enter%,
- Gui, Add, CheckBox, x510 y312 w14 h14 BackgroundTrans gKey7Enter vKey7Enter Checked%Key7Enter%,
- Gui, Add, CheckBox, x510 y342 w14 h14 BackgroundTrans gKey8Enter vKey8Enter Checked%Key8Enter%,
- Gui, Add, CheckBox, x510 y372 w14 h14 BackgroundTrans gKey9Enter vKey9Enter Checked%Key9Enter%,
- Gui, Add, CheckBox, x510 y402 w14 h14 BackgroundTrans gKey10Enter vKey10Enter Checked%Key10Enter%,
- Gui, Add, CheckBox, x1080 y132 w14 h14 BackgroundTrans gKey11Enter vKey11Enter Checked%Key11Enter%,
- Gui, Add, CheckBox, x1080 y162 w14 h14 BackgroundTrans gKey12Enter vKey12Enter Checked%Key12Enter%,
- Gui, Add, CheckBox, x1080 y192 w14 h14 BackgroundTrans gKey13Enter vKey13Enter Checked%Key13Enter%,
- Gui, Add, CheckBox, x1080 y222 w14 h14 BackgroundTrans gKey14Enter vKey14Enter Checked%Key14Enter%,
- Gui, Add, CheckBox, x1080 y252 w14 h14 BackgroundTrans gKey15Enter vKey15Enter Checked%Key15Enter%,
- Gui, Add, CheckBox, x1080 y282 w14 h14 BackgroundTrans gKey16Enter vKey16Enter Checked%Key16Enter%,
- Gui, Add, CheckBox, x1080 y312 w14 h14 BackgroundTrans gKey17Enter vKey17Enter Checked%Key17Enter%,
- Gui, Add, CheckBox, x1080 y342 w14 h14 BackgroundTrans gKey18Enter vKey18Enter Checked%Key18Enter%,
- Gui, Add, CheckBox, x1080 y372 w14 h14 BackgroundTrans gKey19Enter vKey19Enter Checked%Key19Enter%,
- Gui, Add, CheckBox, x1080 y402 w14 h14 BackgroundTrans gKey20Enter vKey20Enter Checked%Key20Enter%,
- Gui, Font, S12 CWHITE Bold, Calibri
- Gui, Add, Text, x22 y539 w220 h30 BackgroundTrans gURLKlick, www.lyd-roleplay.de
- Gui, Add, Text, x490 y539 w170 h20 BackgroundTrans gInfo, Update Server: %serverstatus%
- Gui, Add, Text, x955 y539 w470 h120 BackgroundTrans gInfo, Version %version% by Julian
- Gui, Show, xCenter x311 y87 h565 w1115, [LyD] Keybinder %version%
- Hotkey, ~%Key1%, Hotkey1
- Hotkey, ~%Key2%, Hotkey2
- Hotkey, ~%Key3%, Hotkey3
- Hotkey, ~%Key4%, Hotkey4
- Hotkey, ~%Key5%, Hotkey5
- Hotkey, ~%Key6%, Hotkey6
- Hotkey, ~%Key7%, Hotkey7
- Hotkey, ~%Key8%, Hotkey8
- Hotkey, ~%Key9%, Hotkey9
- Hotkey, ~%Key10%, Hotkey10
- Hotkey, ~%Key11%, Hotkey11
- Hotkey, ~%Key12%, Hotkey12
- Hotkey, ~%Key13%, Hotkey13
- Hotkey, ~%Key14%, Hotkey14
- Hotkey, ~%Key15%, Hotkey15
- Hotkey, ~%Key16%, Hotkey16
- Hotkey, ~%Key17%, Hotkey17
- Hotkey, ~%Key18%, Hotkey18
- Hotkey, ~%Key19%, Hotkey19
- Hotkey, ~%Key20%, Hotkey20
- FileDelete, %a_MyDocuments%\LYD-Keybinder\update.bat
- if(serverstatus == "Online")
- {
- UrlDownloadToFile,%server%/keybinder/%verfile%, %verfile%
- FileReadLine , newver , %verfile% , 1
- FileReadLine , neuurl , %verfile% , 2
- FileDelete, %verfile%
- if ((version < newver) && (newver != "<!DOCTYPE html>") && (newver != "<html>")) {
- newververfügbar := 1
- SoundPlay *-1
- Gui, 10:+AlwaysOnTop
- Gui, 10:Add, Picture, x-8 y-1 w870 h360 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, 10:Add, Picture, x-8 y-1 w640 h40 , %a_MyDocuments%\LYD-Keybinder\images\1.png
- Gui, 10:Font, S14 CWHITE Bold, Calibri
- Gui, 10:Add, Text, x52 y9 w220 h20 +BackgroundTrans, Es ist ein Update verfügbar!
- Gui, 10:Font, S12 CWHITE Bold, Calibri
- Gui, 10:Add, Text, x22 y59 w200 h20 +BackgroundTrans, Aktuelle Version: %version%
- Gui, 10:Add, Text, x22 y89 w200 h20 +BackgroundTrans, Neue Version: %newver%
- Gui, 10:Font, S12 CWHITE Bold, Calibri
- Gui, 10:Add, Text, x11 y139 w300 h20 +BackgroundTrans, Möchtest du dieses Update herunterladen?
- Gui, 10:Font, S10 CWHITE Bold, Calibri
- Gui, 10:Add, Button, x12 y179 w90 h30 gUpdateYes, Ja
- Gui, 10:Add, Button, x222 y179 w90 h30 gUpdateNo, Nein
- Gui, 10:Show, x311 y150 h218 w326, Update
- }
- }
- Hotkey, ~%ToggleKey%, ToggleHotKey
- Suspend , Off
- return
- GuiClose:
- ExitApp
- return
- UpdateYes:
- if(!A_IsAdmin) {
- MsgBox, 64,Fehler, Zum Update den Keybinder als Administrator ausführen!
- ExitApp
- } else {
- Gui, Hide
- Gui, 10:Hide
- Gui, 3:+AlwaysOnTop
- Gui, 3:Font, S8 CRED Bold, Verdana
- Gui, 3:Add, Picture, x-8 y-1 w550 h30 , %a_MyDocuments%\LYD-Keybinder\images\1.png
- Gui, 3:Add, Picture, x-8 y29 w670 h370 , %a_MyDocuments%\LYD-Keybinder\images\3.png
- Gui, 3:Add, Picture, x12 y39 w480 h140 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, 3:Add, Picture, x12 y189 w480 h20 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, 3:Font, S14 CWHITE Bold, Calibri
- Gui, 3:Add, Text, x177 y-1 w150 h20 +BackgroundTrans, Keybinder Updater
- Gui, 3:Font, S12 CWHITE Bold, Calibri
- Gui, 3:Add, Text, x147 y49 w210 h20 +BackgroundTrans, Update wird heruntergeladen
- Gui, 3:Add, Progress, vUpdateBar -Smooth 0x8 x117 y89 w270 h30
- Gui, 3:Add, Button, x202 y139 w100 h30 gUpdateCancel, Abbrechen
- Gui, 3:Font, S12 CWHITE Bold, Calibri
- Gui, 3:Add, Text, x22 y189 w150 h20 +BackgroundTrans, www.lyd-roleplay.de
- Gui, 3:Add, Text, x402 y189 w150 h20 +BackgroundTrans, By Julian %version%
- Gui, 3:Show, x127 y87 h210 w503, Updater
- Urldownloadtofile,%neuurl%, LYD-Keybinder %newver%.exe
- BatchFile=
- (
- Ping 127.0.0.1
- Del update.bat
- cd "%A_ScriptFullPath%"
- Del "%A_ScriptName%"
- "LYD-Keybinder %newver%"
- )
- FileDelete, %a_MyDocuments%\LYD-Keybinder\update.bat
- FileAppend,%BatchFile%, %a_MyDocuments%\LYD-Keybinder\update.bat
- Sleep, 2000
- Run, %a_MyDocuments%\LYD-Keybinder\update.bat,,hide
- Exitapp
- }
- return
- UpdateNo:
- Gui, 10:Destroy
- return
- URLKlick:
- IfNotEqual, FirstTimeA7, No
- {
- Gui, 7:+AlwaysOnTop
- Gui, 7:Add, Picture, x-8 y-1 w570 h280 , %a_MyDocuments%\SAPD-Keybinder\images\3.png
- Gui, 7:Add, Picture, x-8 y-1 w570 h40 , %a_MyDocuments%\SAPD-Keybinder\images\1.png
- Gui, 7:Add, Picture, x12 y49 w190 h160 , %a_MyDocuments%\SAPD-Keybinder\images\4.png
- Gui, 7:Font, S14 CWHITE Bold, Calibri
- Gui, 7:Add, Text, x12 y9 w130 h20 +BackgroundTrans, Ziel auswählen:
- Gui, 7:Font, S14 CWHITE Bold, Calibri
- Gui, 7:Add, Text, x32 y59 w100 h20 +BackgroundTrans gZumForum, Zum Forum
- Gui, 7:Add, Text, x32 y119 w100 h20 +BackgroundTrans gZumUCP, Zum UCP
- Gui, 7:Add, Text, x32 y89 w80 h20 +BackgroundTrans gZumShop, Zum Shop
- Gui, 7:Add, Text, x32 y179 w200 h20 +Lowercase +BackgroundTrans gTS, Teamspeak starten
- Gui, 7:Add, Text, x32 y149 w150 h20 +BackgroundTrans gSAMPStart, SA:MP starten
- Gui, 7:Show, x678 y269 h221 w214, Dienste
- FirstTimeA7 = No
- }
- Gui, 7:Show
- Return
- ZumForum:
- run, https://www.lyd-roleplay.de/forum
- return
- ZumUCP:
- run, http://ucp.lyd-roleplay.de
- return
- ZumShop:
- run, https://www.lyd-roleplay.de/shop
- return
- TS:
- run, ts3server://teamspeak.lyd-roleplay.de?port=9987
- return
- SAMPStart:
- run, samp://server.lyd-roleplay.de:7777
- return
- Info:
- 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
- return
- VersionWarnWeiter:
- Gui, 8:Hide
- return
- VersionWarnNoWarn:
- Gui, 8:Hide
- IniWrite, 1, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, NoVersionWarn
- return
- VersionWarnDownload:
- Gui, 8:Hide
- if(!A_IsAdmin)
- {
- MsgBox, 64,Fehler, Zum Download den Keybinder als Administrator ausführen!
- ExitApp
- }
- MsgBox, 0, Download, SAMP 0.3z R2 wird heruntergeladen und anschließend ausgeführt, 5
- Urldownloadtofile, http://dl.gta-sa-mp.de/samp/sa-mp-0.3z-R2-install.exe, sa-mp-0.3z-R2-install.exe
- IfWinExist, GTA:SA:MP
- WinClose
- IfWinExist, SA-MP 0.3
- WinClose
- Run, sa-mp-0.3z-R2-install.exe
- ExitApp
- return
- Gotoforum:
- run, https://www.lyd-roleplay.de/forum
- return
- Variablen:
- 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")
- return
- Help:
- 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")
- return
- KillCounterGui:
- IfNotEqual, FirstTimeA, No
- {
- Gui, 9:Add, Picture, x-8 y-1 w720 h420 , %a_MyDocuments%\LYD-Keybinder\images\3.png
- Gui, 9:Add, Picture, x12 y49 w450 h200 , %a_MyDocuments%\LYD-Keybinder\images\4.png
- Gui, 9:Add, Picture, x-8 y-1 w710 h40 , %a_MyDocuments%\LYD-Keybinder\images\1.png
- Gui, 9:Font, S10 CBLACK Bold, Calibri
- Gui, 9:Add, Edit, x92 y109 w360 h20 vKillCounterText gKillCounterTextS, %KillCounterText%
- Gui, 9:Font, S12 CWHITE Bold, Calibri
- Gui, 9:Add, Text, x22 y9 w90 h20 +BackgroundTrans, Kill Counter
- Gui, 9:Add, Text, x22 y79 w180 h30 +BackgroundTrans, Kills insgesammt: %Kills%
- Gui, 9:Add, Text, x22 y109 w60 h20 +BackgroundTrans , Kill Text:
- Gui, 9:Font, S10 CWHITE Bold, Calibri
- Gui, 9:Add, Text, x22 y159 w460 h20 +BackgroundTrans, Du kannst im Textfeld {Kills} benutzen`, um die Anzahl deiner Kills auszugeben.
- Gui, 9:Add, Text, x22 y179 w300 h20 +BackgroundTrans, Beispiel: /ic Snack`, Nr. {Kills}
- Gui, 9:Add, Button, x352 y209 w100 h20 gResetKillCounter, Zurücksetzen
- Gui, 9:Font, S12 CWHITE Bold, Calibri
- Gui, 9:Add, CheckBox, x22 y62 w14 h14 +BackgroundTrans vKillCounterToggle gKillCounterToggleS Checked%KillCounterToggle%
- Gui, 9:Add, Text, x42 y59 w90 h20 +BackgroundTrans, Aktivieren
- Gui, 9: +AlwaysOnTop
- Gui, 9:Show, x127 xCenter y87 h262 w473, Kill Counter
- FirstTimeA = No
- }
- Gui, 9:Show
- return
- KillCounterToggleS:
- GuiControlGet, KillCounterToggle, 9:,KillCounterToggle
- IniWrite, %KillCounterToggle%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterToggle
- return
- KillCounterTextS:
- GuiControlGet, KillCounterText, 9:,KillCounterText
- IniWrite, %KillCounterText%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, KillCounterText
- return
- SaveKillCounter:
- Gui, 9:Hide
- return
- ResetKillCounter:
- Kills := 0
- IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
- Reload
- return
- CustomMsgBox(Title,Message,Font="",FontOptions="",WindowColor="333333")
- {
- Gui,66:Destroy
- Gui,66:Color,%WindowColor%
- Gui,66:Font,%FontOptions%,%Font%
- Gui,66:Add,Text,,%Message%
- Gui,66:Font
- GuiControlGet,Text,66:Pos,Static1
- Gui,66:Add,Button,% "Default y+10 w75 g66OK xp+" (TextW / 2) - 38 ,OK
- Gui,66:-MinimizeBox
- Gui,66:-MaximizeBox
- SoundPlay,*-1
- Gui,66:Show,,%Title%
- Gui,66:+LastFound
- WinWaitClose
- Gui,66:Destroy
- return
- 66OK:
- Gui,66:Destroy
- return
- }
- DownloadBarTimer:
- GuiControl, 3:, UpdateBar, 1
- Return
- UpdateBarTimer:
- GuiControl, 4:, DownloadBar, 1
- Return
- UpdateCancel:
- Filedelete,update.bat
- ExitApp
- Return
- Key1Status:
- Key1Status := !Key1Status
- return
- Key2Status:
- Key2Status := !Key2Status
- return
- Key3Status:
- Key3Status := !Key3Status
- return
- Key4Status:
- Key4Status := !Key4Status
- return
- Key5Status:
- Key5Status := !Key5Status
- return
- Key6Status:
- Key6Status := !Key6Status
- return
- Key7Status:
- Key7Status := !Key7Status
- return
- Key8Status:
- Key8Status := !Key8Status
- return
- Key9Status:
- Key9Status := !Key9Status
- return
- Key10Status:
- Key10Status := !Key10Status
- return
- Key11Status:
- Key11Status := !Key11Status
- return
- Key12Status:
- Key12Status := !Key12Status
- return
- Key13Status:
- Key13Status := !Key13Status
- return
- Key14Status:
- Key14Status := !Key14Status
- return
- Key15Status:
- Key15Status := !Key15Status
- return
- Key16Status:
- Key16Status := !Key16Status
- return
- Key17Status:
- Key17Status := !Key17Status
- return
- Key18Status:
- Key18Status := !Key18Status
- return
- Key19Status:
- Key19Status := !Key19Status
- return
- Key20Status:
- Key20Status := !Key20Status
- return
- Key21Status:
- Key21Status := !Key21Status
- return
- Key22Status:
- Key22Status := !Key22Status
- return
- Key23Status:
- Key23Status := !Key23Status
- return
- Key24Status:
- Key24Status := !Key24Status
- return
- Key25Status:
- Key25Status := !Key25Status
- return
- Key26Status:
- Key26Status := !Key26Status
- return
- Key27Status:
- Key27Status := !Key27Status
- return
- Key28Status:
- Key28Status := !Key28Status
- return
- Key29Status:
- Key29Status := !Key29Status
- return
- Key30Status:
- Key30Status := !Key30Status
- return
- Key31Status:
- Key31Status := !Key31Status
- return
- Key32Status:
- Key32Status := !Key32Status
- return
- Key33Status:
- Key33Status := !Key33Status
- return
- Key34Status:
- Key34Status := !Key34Status
- return
- Key35Status:
- Key35Status := !Key35Status
- return
- Key36Status:
- Key36Status := !Key36Status
- return
- Key37Status:
- Key37Status := !Key37Status
- return
- Key38Status:
- Key38Status := !Key38Status
- return
- Key39Status:
- Key39Status := !Key39Status
- return
- Key40Status:
- Key40Status := !Key40Status
- return
- Key1Enter:
- Key1Enter := !Key1Enter
- return
- Key2Enter:
- Key2Enter := !Key2Enter
- return
- Key3Enter:
- Key3Enter := !Key3Enter
- return
- Key4Enter:
- Key4Enter := !Key4Enter
- return
- Key5Enter:
- Key5Enter := !Key5Enter
- return
- Key6Enter:
- Key6Enter := !Key6Enter
- return
- Key7Enter:
- Key7Enter := !Key7Enter
- return
- Key8Enter:
- Key8Enter := !Key8Enter
- return
- Key9Enter:
- Key9Enter := !Key9Enter
- return
- Key10Enter:
- Key10Enter := !Key10Enter
- return
- Key11Enter:
- Key11Enter := !Key11Enter
- return
- Key12Enter:
- Key12Enter := !Key12Enter
- return
- Key13Enter:
- Key13Enter := !Key13Enter
- return
- Key14Enter:
- Key14Enter := !Key14Enter
- return
- Key15Enter:
- Key15Enter := !Key15Enter
- return
- Key16Enter:
- Key16Enter := !Key16Enter
- return
- Key17Enter:
- Key17Enter := !Key17Enter
- return
- Key18Enter:
- Key18Enter := !Key18Enter
- return
- Key19Enter:
- Key19Enter := !Key19Enter
- return
- Key20Enter:
- Key20Enter := !Key20Enter
- return
- Key21Enter:
- Key21Enter := !Key21Enter
- return
- Key22Enter:
- Key22Enter := !Key22Enter
- return
- Key23Enter:
- Key23Enter := !Key23Enter
- return
- Key24Enter:
- Key24Enter := !Key24Enter
- return
- Key25Enter:
- Key25Enter := !Key25Enter
- return
- Key26Enter:
- Key26Enter := !Key26Enter
- return
- Key27Enter:
- Key27Enter := !Key27Enter
- return
- Key28Enter:
- Key28Enter := !Key28Enter
- return
- Key29Enter:
- Key29Enter := !Key29Enter
- return
- Key30Enter:
- Key20Enter := !Key20Enter
- return
- Key31Enter:
- Key31Enter := !Key31Enter
- return
- Key32Enter:
- Key32Enter := !Key32Enter
- return
- Key33Enter:
- Key33Enter := !Key33Enter
- return
- Key34Enter:
- Key34Enter := !Key34Enter
- return
- Key35Enter:
- Key35Enter := !Key35Enter
- return
- Key36Enter:
- Key36Enter := !Key36Enter
- return
- Key37Enter:
- Key37Enter := !Key37Enter
- return
- Key38Enter:
- Key38Enter := !Key38Enter
- return
- Key39Enter:
- Key39Enter := !Key39Enter
- return
- Key40Enter:
- Key40Enter := !Key40Enter
- return
- Save:
- GuiControlGet, Key1Status
- IniWrite, %Key1Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Status
- GuiControlGet, Key2Status
- IniWrite, %Key2Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Status
- GuiControlGet, Key3Status
- IniWrite, %Key3Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Status
- GuiControlGet, Key4Status
- IniWrite, %Key4Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Status
- GuiControlGet, Key5Status
- IniWrite, %Key5Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Status
- GuiControlGet, Key6Status
- IniWrite, %Key6Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Status
- GuiControlGet, Key7Status
- IniWrite, %Key7Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Status
- GuiControlGet, Key8Status
- IniWrite, %Key8Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Status
- GuiControlGet, Key9Status
- IniWrite, %Key9Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Status
- GuiControlGet, Key10Status
- IniWrite, %Key10Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Status
- GuiControlGet, Key11Status
- IniWrite, %Key11Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Status
- GuiControlGet, Key12Status
- IniWrite, %Key12Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Status
- GuiControlGet, Key13Status
- IniWrite, %Key13Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Status
- GuiControlGet, Key14Status
- IniWrite, %Key14Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Status
- GuiControlGet, Key15Status
- IniWrite, %Key15Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Status
- GuiControlGet, Key16Status
- IniWrite, %Key16Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Status
- GuiControlGet, Key17Status
- IniWrite, %Key17Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Status
- GuiControlGet, Key18Status
- IniWrite, %Key18Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Status
- GuiControlGet, Key19Status
- IniWrite, %Key19Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Status
- GuiControlGet, Key20Status
- IniWrite, %Key20Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Status
- GuiControlGet, Key1
- IniWrite, %Key1%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1
- GuiControlGet, Key2
- IniWrite, %Key2%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2
- GuiControlGet, Key3
- IniWrite, %Key3%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3
- GuiControlGet, Key4
- IniWrite, %Key4%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4
- GuiControlGet, Key5
- IniWrite, %Key5%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5
- GuiControlGet, Key6
- IniWrite, %Key6%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6
- GuiControlGet, Key7
- IniWrite, %Key7%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7
- GuiControlGet, Key8
- IniWrite, %Key8%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8
- GuiControlGet, Key9
- IniWrite, %Key9%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9
- GuiControlGet, Key10
- IniWrite, %Key10%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10
- GuiControlGet, Key11
- IniWrite, %Key11%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11
- GuiControlGet, Key12
- IniWrite, %Key12%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12
- GuiControlGet, Key13
- IniWrite, %Key13%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13
- GuiControlGet, Key14
- IniWrite, %Key14%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14
- GuiControlGet, Key15
- IniWrite, %Key15%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15
- GuiControlGet, Key16
- IniWrite, %Key16%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16
- GuiControlGet, Key17
- IniWrite, %Key17%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17
- GuiControlGet, Key18
- IniWrite, %Key18%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18
- GuiControlGet, Key19
- IniWrite, %Key19%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19
- GuiControlGet, Key20
- IniWrite, %Key20%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20
- GuiControlGet, Key1Text
- IniWrite, %Key1Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Text
- GuiControlGet, Key2Text
- IniWrite, %Key2Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Text
- GuiControlGet, Key3Text
- IniWrite, %Key3Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Text
- GuiControlGet, Key4Text
- IniWrite, %Key4Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Text
- GuiControlGet, Key5Text
- IniWrite, %Key5Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Text
- GuiControlGet, Key6Text
- IniWrite, %Key6Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Text
- GuiControlGet, Key7Text
- IniWrite, %Key7Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Text
- GuiControlGet, Key8Text
- IniWrite, %Key8Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Text
- GuiControlGet, Key9Text
- IniWrite, %Key9Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Text
- GuiControlGet, Key10Text
- IniWrite, %Key10Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Text
- GuiControlGet, Key11Text
- IniWrite, %Key11Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Text
- GuiControlGet, Key12Text
- IniWrite, %Key12Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Text
- GuiControlGet, Key13Text
- IniWrite, %Key13Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Text
- GuiControlGet, Key14Text
- IniWrite, %Key14Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Text
- GuiControlGet, Key15Text
- IniWrite, %Key15Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Text
- GuiControlGet, Key16Text
- IniWrite, %Key16Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Text
- GuiControlGet, Key17Text
- IniWrite, %Key17Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Text
- GuiControlGet, Key18Text
- IniWrite, %Key18Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Text
- GuiControlGet, Key19Text
- IniWrite, %Key19Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Text
- GuiControlGet, Key20Text
- IniWrite, %Key20Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Text
- GuiControlGet, Key1Enter
- IniWrite, %Key1Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key1Enter
- GuiControlGet, Key2Enter
- IniWrite, %Key2Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key2Enter
- GuiControlGet, Key3Enter
- IniWrite, %Key3Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key3Enter
- GuiControlGet, Key4Enter
- IniWrite, %Key4Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key4Enter
- GuiControlGet, Key5Enter
- IniWrite, %Key5Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key5Enter
- GuiControlGet, Key6Enter
- IniWrite, %Key6Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key6Enter
- GuiControlGet, Key7Enter
- IniWrite, %Key7Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key7Enter
- GuiControlGet, Key8Enter
- IniWrite, %Key8Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key8Enter
- GuiControlGet, Key9Enter
- IniWrite, %Key9Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key9Enter
- GuiControlGet, Key10Enter
- IniWrite, %Key10Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key10Enter
- GuiControlGet, Key11Enter
- IniWrite, %Key11Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key11Enter
- GuiControlGet, Key12Enter
- IniWrite, %Key12Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key12Enter
- GuiControlGet, Key13Enter
- IniWrite, %Key13Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key13Enter
- GuiControlGet, Key14Enter
- IniWrite, %Key14Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key14Enter
- GuiControlGet, Key15Enter
- IniWrite, %Key15Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key15Enter
- GuiControlGet, Key16Enter
- IniWrite, %Key16Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key16Enter
- GuiControlGet, Key17Enter
- IniWrite, %Key17Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key17Enter
- GuiControlGet, Key18Enter
- IniWrite, %Key18Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key18Enter
- GuiControlGet, Key19Enter
- IniWrite, %Key19Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key19Enter
- GuiControlGet, Key20Enter
- IniWrite, %Key20Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key20Enter
- GuiControlGet, ToggleKey
- IniWrite, %ToggleKey%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, ToggleKey
- Reload
- return
- Save2:
- GuiControlGet, Key21Status, 2:,Key21Status
- IniWrite, %Key21Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Status
- GuiControlGet, Key22Status, 2:,Key22Status
- IniWrite, %Key22Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Status
- GuiControlGet, Key23Status, 2:,Key23Status
- IniWrite, %Key23Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Status
- GuiControlGet, Key24Status, 2:,Key24Status
- IniWrite, %Key24Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Status
- GuiControlGet, Key25Status, 2:,Key25Status
- IniWrite, %Key25Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Status
- GuiControlGet, Key26Status, 2:,Key26Status
- IniWrite, %Key26Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Status
- GuiControlGet, Key27Status, 2:,Key27Status
- IniWrite, %Key27Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Status
- GuiControlGet, Key28Status, 2:,Key28Status
- IniWrite, %Key28Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Status
- GuiControlGet, Key29Status, 2:,Key29Status
- IniWrite, %Key29Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Status
- GuiControlGet, Key30Status, 2:,Key30Status
- IniWrite, %Key30Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Status
- GuiControlGet, Key31Status, 2:,Key31Status
- IniWrite, %Key31Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Status
- GuiControlGet, Key32Status, 2:,Key32Status
- IniWrite, %Key32Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Status
- GuiControlGet, Key33Status, 2:,Key33Status
- IniWrite, %Key33Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Status
- GuiControlGet, Key34Status, 2:,Key34Status
- IniWrite, %Key34Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Status
- GuiControlGet, Key35Status, 2:,Key35Status
- IniWrite, %Key35Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Status
- GuiControlGet, Key36Status, 2:,Key36Status
- IniWrite, %Key36Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Status
- GuiControlGet, Key37Status, 2:,Key37Status
- IniWrite, %Key37Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Status
- GuiControlGet, Key38Status, 2:,Key38Status
- IniWrite, %Key38Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Status
- GuiControlGet, Key39Status, 2:,Key39Status
- IniWrite, %Key39Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Status
- GuiControlGet, Key40Status, 2:,Key40Status
- IniWrite, %Key40Status%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Status
- GuiControlGet, Key21, 2:,Key21
- IniWrite, %Key21%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21
- GuiControlGet, Key22, 2:,Key22
- IniWrite, %Key22%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22
- GuiControlGet, Key23, 2:,Key23
- IniWrite, %Key23%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23
- GuiControlGet, Key24, 2:,Key24
- IniWrite, %Key24%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24
- GuiControlGet, Key25, 2:,Key25
- IniWrite, %Key25%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25
- GuiControlGet, Key26, 2:,Key26
- IniWrite, %Key26%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26
- GuiControlGet, Key27, 2:,Key27
- IniWrite, %Key27%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27
- GuiControlGet, Key28, 2:,Key28
- IniWrite, %Key28%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28
- GuiControlGet, Key29, 2:,Key29
- IniWrite, %Key29%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29
- GuiControlGet, Key30, 2:,Key30
- IniWrite, %Key30%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30
- GuiControlGet, Key31, 2:,Key31
- IniWrite, %Key31%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31
- GuiControlGet, Key32, 2:,Key32
- IniWrite, %Key32%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32
- GuiControlGet, Key33, 2:,Key33
- IniWrite, %Key33%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33
- GuiControlGet, Key34, 2:,Key34
- IniWrite, %Key34%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34
- GuiControlGet, Key35, 2:,Key35
- IniWrite, %Key35%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35
- GuiControlGet, Key36, 2:,Key36
- IniWrite, %Key36%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36
- GuiControlGet, Key37, 2:,Key37
- IniWrite, %Key37%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37
- GuiControlGet, Key38, 2:,Key38
- IniWrite, %Key38%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38
- GuiControlGet, Key39, 2:,Key39
- IniWrite, %Key39%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39
- GuiControlGet, Key40, 2:,Key40
- IniWrite, %Key40%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40
- GuiControlGet, Key21Text, 2:,Key21Text
- IniWrite, %Key21Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Text
- GuiControlGet, Key22Text, 2:,Key22Text
- IniWrite, %Key22Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Text
- GuiControlGet, Key23Text, 2:,Key23Text
- IniWrite, %Key23Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Text
- GuiControlGet, Key24Text, 2:,Key24Text
- IniWrite, %Key24Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Text
- GuiControlGet, Key25Text, 2:,Key25Text
- IniWrite, %Key25Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Text
- GuiControlGet, Key26Text, 2:,Key26Text
- IniWrite, %Key26Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Text
- GuiControlGet, Key27Text, 2:,Key27Text
- IniWrite, %Key27Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Text
- GuiControlGet, Key28Text, 2:,Key28Text
- IniWrite, %Key28Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Text
- GuiControlGet, Key29Text, 2:,Key29Text
- IniWrite, %Key29Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Text
- GuiControlGet, Key30Text, 2:,Key30Text
- IniWrite, %Key30Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Text
- GuiControlGet, Key31Text, 2:,Key31Text
- IniWrite, %Key31Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Text
- GuiControlGet, Key32Text, 2:,Key32Text
- IniWrite, %Key32Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Text
- GuiControlGet, Key33Text, 2:,Key33Text
- IniWrite, %Key33Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Text
- GuiControlGet, Key34Text, 2:,Key34Text
- IniWrite, %Key34Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Text
- GuiControlGet, Key35Text, 2:,Key35Text
- IniWrite, %Key35Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Text
- GuiControlGet, Key36Text, 2:,Key36Text
- IniWrite, %Key36Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Text
- GuiControlGet, Key37Text, 2:,Key37Text
- IniWrite, %Key37Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Text
- GuiControlGet, Key38Text, 2:,Key38Text
- IniWrite, %Key38Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Text
- GuiControlGet, Key39Text, 2:,Key39Text
- IniWrite, %Key39Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Text
- GuiControlGet, Key40Text, 2:,Key40Text
- IniWrite, %Key40Text%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Text
- GuiControlGet, Key21Enter, 2:,Key21Enter
- IniWrite, %Key21Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key21Enter
- GuiControlGet, Key22Enter, 2:,Key22Enter
- IniWrite, %Key22Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key22Enter
- GuiControlGet, Key23Enter, 2:,Key23Enter
- IniWrite, %Key23Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key23Enter
- GuiControlGet, Key24Enter, 2:,Key24Enter
- IniWrite, %Key24Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key24Enter
- GuiControlGet, Key25Enter, 2:,Key25Enter
- IniWrite, %Key25Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key25Enter
- GuiControlGet, Key26Enter, 2:,Key26Enter
- IniWrite, %Key26Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key26Enter
- GuiControlGet, Key27Enter, 2:,Key27Enter
- IniWrite, %Key27Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key27Enter
- GuiControlGet, Key28Enter, 2:,Key28Enter
- IniWrite, %Key28Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key28Enter
- GuiControlGet, Key29Enter, 2:,Key29Enter
- IniWrite, %Key29Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key29Enter
- GuiControlGet, Key30Enter, 2:,Key30Enter
- IniWrite, %Key30Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key30Enter
- GuiControlGet, Key31Enter, 2:,Key31Enter
- IniWrite, %Key31Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key31Enter
- GuiControlGet, Key32Enter, 2:,Key32Enter
- IniWrite, %Key32Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key32Enter
- GuiControlGet, Key33Enter, 2:,Key33Enter
- IniWrite, %Key33Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key33Enter
- GuiControlGet, Key34Enter, 2:,Key34Enter
- IniWrite, %Key34Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key34Enter
- GuiControlGet, Key35Enter, 2:,Key35Enter
- IniWrite, %Key35Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key35Enter
- GuiControlGet, Key36Enter, 2:,Key36Enter
- IniWrite, %Key36Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key36Enter
- GuiControlGet, Key37Enter, 2:,Key37Enter
- IniWrite, %Key37Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key37Enter
- GuiControlGet, Key38Enter, 2:,Key38Enter
- IniWrite, %Key38Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key38Enter
- GuiControlGet, Key39Enter, 2:,Key39Enter
- IniWrite, %Key39Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key39Enter
- GuiControlGet, Key40Enter, 2:,Key34Enter
- IniWrite, %Key40Enter%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Key40Enter
- Reload
- return
- Hotkey1:
- If(Key1Status = 0)
- return
- If(Key1Enter = 1) {
- GuiControlGet, Key1Text
- sendKeybind(Key1Text)
- }
- else {
- GuiControlGet, Key1Text
- SendChatNoAPI(Key1Text)
- }
- return
- Hotkey2:
- If(Key2Status = 0)
- return
- If(Key2Enter = 1) {
- GuiControlGet, Key2Text
- sendKeybind(Key2Text)
- }
- else {
- GuiControlGet, Key2Text
- SendChatNoAPI(Key2Text)
- }
- return
- Hotkey3:
- If(Key3Status = 0)
- return
- If(Key3Enter = 1) {
- GuiControlGet, Key3Text
- sendKeybind(Key3Text)
- }
- else {
- GuiControlGet, Key3Text
- SendChatNoAPI(Key3Text)
- }
- return
- Hotkey4:
- If(Key4Status = 0)
- return
- If(Key4Enter = 1) {
- GuiControlGet, Key4Text
- sendKeybind(Key4Text)
- }
- else {
- GuiControlGet, Key4Text
- SendChatNoAPI(Key4Text)
- }
- return
- Hotkey5:
- If(Key5Status = 0)
- return
- If(Key5Enter = 1) {
- GuiControlGet, Key5Text
- sendKeybind(Key5Text)
- }
- else {
- GuiControlGet, Key5Text
- SendChatNoAPI(Key5Text)
- }
- return
- Hotkey6:
- If(Key6Status = 0)
- return
- If(Key6Enter = 1) {
- GuiControlGet, Key6Text
- sendKeybind(Key6Text)
- }
- else {
- GuiControlGet, Key6Text
- SendChatNoAPI(Key6Text)
- }
- return
- Hotkey7:
- If(Key7Status = 0)
- return
- If(Key7Enter = 1) {
- GuiControlGet, Key7Text
- sendKeybind(Key7Text)
- }
- else {
- GuiControlGet, Key7Text
- SendChatNoAPI(Key7Text)
- }
- return
- Hotkey8:
- If(Key8Status = 0)
- return
- If(Key8Enter = 1) {
- GuiControlGet, Key8Text
- sendKeybind(Key8Text)
- }
- else {
- GuiControlGet, Key8Text
- SendChatNoAPI(Key8Text)
- }
- return
- Hotkey9:
- If(Key9Status = 0)
- return
- If(Key9Enter = 1) {
- GuiControlGet, Key9Text
- sendKeybind(Key9Text)
- }
- else {
- GuiControlGet, Key9Text
- SendChatNoAPI(Key9Text)
- }
- return
- Hotkey10:
- If(Key10Status = 0)
- return
- If(Key10Enter = 1) {
- GuiControlGet, Key10Text
- sendKeybind(Key10Text)
- }
- else {
- GuiControlGet, Key10Text
- SendChatNoAPI(Key10Text)
- }
- return
- Hotkey11:
- If(Key11Status = 0)
- return
- If(Key11Enter = 1) {
- GuiControlGet, Key11Text
- sendKeybind(Key11Text)
- }
- else {
- GuiControlGet, Key11Text
- SendChatNoAPI(Key11Text)
- }
- return
- Hotkey12:
- If(Key12Status = 0)
- return
- If(Key12Enter = 1) {
- GuiControlGet, Key12Text
- sendKeybind(Key12Text)
- }
- else {
- GuiControlGet, Key12Text
- SendChatNoAPI(Key12Text)
- }
- return
- Hotkey13:
- If(Key13Status = 0)
- return
- If(Key13Enter = 1) {
- GuiControlGet, Key13ext
- sendKeybind(Key13Text)
- }
- else {
- GuiControlGet, Key13Text
- SendChatNoAPI(Key13Text)
- }
- return
- Hotkey14:
- If(Key14Status = 0)
- return
- If(Key14Enter = 1) {
- GuiControlGet, Key14Text
- sendKeybind(Key14Text)
- }
- else {
- GuiControlGet, Key14Text
- SendChatNoAPI(Key14Text)
- }
- return
- Hotkey15:
- If(Key15Status = 0)
- return
- If(Key15Enter = 1) {
- GuiControlGet, Key15Text
- sendKeybind(Key15Text)
- }
- else {
- GuiControlGet, Key15Text
- SendChatNoAPI(Key15Text)
- }
- return
- Hotkey16:
- If(Key16Status = 0)
- return
- If(Key16Enter = 1) {
- GuiControlGet, Key16Text
- sendKeybind(Key16Text)
- }
- else {
- GuiControlGet, Key16Text
- SendChatNoAPI(Key16Text)
- }
- return
- Hotkey17:
- If(Key17Status = 0)
- return
- If(Key17Enter = 1) {
- GuiControlGet, Key17Text
- sendKeybind(Key17Text)
- }
- else {
- GuiControlGet, Key17Text
- SendChatNoAPI(Key17Text)
- }
- return
- Hotkey18:
- If(Key18Status = 0)
- return
- If(Key18Enter = 1) {
- GuiControlGet, Key18Text
- sendKeybind(Key18Text)
- }
- else {
- GuiControlGet, Key18Text
- SendChatNoAPI(Key18Text)
- }
- return
- Hotkey19:
- If(Key19Status = 0)
- return
- If(Key19Enter = 1) {
- GuiControlGet, Key19Text
- sendKeybind(Key19Text)
- }
- else {
- GuiControlGet, Key19Text
- SendChatNoAPI(Key19Text)
- }
- return
- Hotkey20:
- If(Key20Status = 0)
- return
- If(Key20Enter = 1) {
- GuiControlGet, Key20Text
- sendKeybind(Key20Text)
- }
- else {
- GuiControlGet, Key20Text
- SendChatNoAPI(Key1Text)
- }
- return
- ToggleHotKey:
- suspend
- if ( A_IsSuspended )
- {
- ShowGameText("~b~] LyD ] ~r~Keybinder ~g~Aus", 2500, 3)
- }
- if ( !A_IsSuspended )
- {
- ShowGameText("~b~] LyD ] ~r~Keybinder ~g~An", 2500, 3)
- }
- return
- KillCounter:
- if(KillCounterToggle == 1) {
- GetChatLine(1, chat)
- 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")) {
- Kills++
- IniWrite, %Kills%, %a_MyDocuments%\LYD-Keybinder\settings.ini, LYD-Keybinder, Kills
- StringReplace, KillCounterTextIG, KillCounterText, {Kills}, %Kills%, All
- if(KillCounterTextIG != "" && KillCounterTextIG != " ") {
- sendKeybind(KillCounterTextIG)
- Sleep, 100
- }
- }
- }
- return
- replaceVariables(msg) {
- Username := getUsername()
- getPlayerIdByName(getUsername())
- PlayerId := getPlayerIdByName(getUsername())
- PlayerScore := getPlayerScoreById(getPlayerIdByName(getUsername()))
- PlayerPing := getPlayerPingById(getPlayerIdByName(getUsername()))
- PlayerHealth := getPlayerHealth()
- PlayerArmor := getPlayerArmor()
- PlayerMoney := getPlayerMoney()
- PlayerZone := getPlayerZone()
- PlayerCity := getPlayerCity()
- space := " "
- FormatTime,h,,HH
- FormatTime,m,,mm
- StringReplace, msg, msg, {Space}, %space%, All
- StringReplace, msg, msg, {Username}, %Username%, All
- StringReplace, msg, msg, {PlayerId}, %PlayerId% , All
- StringReplace, msg, msg, {PlayerScore}, %PlayerScore%, All
- StringReplace, msg, msg, {PlayerPing}, %PlayerPing%, All
- StringReplace, msg, msg, {PlayerHealth}, %PlayerHealth%, All
- StringReplace, msg, msg, {PlayerArmor}, %PlayerArmor%, All
- StringReplace, msg, msg, {PlayerMoney}, %PlayerMoney%, All
- StringReplace, msg, msg, {PlayerZone}, %PlayerZone%, All
- StringReplace, msg, msg, {PlayerCity}, %PlayerCity%, All
- StringReplace, msg, msg, {Time}, %h%:%m%, All
- return msg
- }
- sendKeybind(KeyText) {
- KeyText := replaceVariables(KeyText)
- if (InStr(KeyText,"&&")) {
- Loop, parse, KeyText, "&&",
- {
- msg = %A_LoopField%
- if(msg != "" && msg != " ") {
- IfInString, msg, {Return}
- {
- StringReplace, msg, msg, {Return}, , All
- SendChat( msg )
- } else {
- msg := replaceVariables(msg)
- SendInput, t%msg%
- }
- }
- }
- } else {
- SendChat( KeyText )
- }
- return
- }
- SendChatNoAPI(KeyText) {
- KeyText := replaceVariables(KeyText)
- if (InStr(KeyText,"&&")) {
- Loop, parse, KeyText, "&&",
- {
- msg = %A_LoopField%
- if(msg != "" && msg != " ") {
- IfInString, msg, {Return}
- {
- StringReplace, msg, msg, {Return}, , All
- SendChat( msg )
- } else {
- msg := replaceVariables(msg)
- SendInput, t%msg%
- }
- }
- }
- } else {
- msg := replaceVariables(KeyText)
- SendInput, t%msg%
- }
- return
- }
- isInChat() {
- if(!checkHandles())
- return -1
- dwPtr := dwSAMP + ADDR_SAMP_INCHAT_PTR
- dwAddress := readDWORD(hGTA, dwPtr) + ADDR_SAMP_INCHAT_PTR_OFF
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- dwInChat := readDWORD(hGTA, dwAddress)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- if(dwInChat > 0) {
- return true
- } else {
- return false
- }
- }
- getUsername() {
- if(!checkHandles())
- return ""
- dwAddress := dwSAMP + ADDR_SAMP_USERNAME
- sUsername := readString(hGTA, dwAddress, 25)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return ""
- }
- ErrorLevel := ERROR_OK
- return sUsername
- }
- getId() {
- s:=getUsername()
- return getPlayerIdByName(s)
- }
- SendChat(wText) {
- wText := "" wText
- if(!checkHandles())
- return false
- dwFunc:=0
- if(SubStr(wText, 1, 1) == "/") {
- dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
- } else {
- dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
- }
- callWithParams(hGTA, dwFunc, [["s", wText]], false)
- ErrorLevel := ERROR_OK
- return true
- }
- addChatMessage(wText) {
- wText := "" wText
- if(!checkHandles())
- return false
- dwFunc := dwSAMP + FUNC_SAMP_ADDTOCHATWND
- dwChatInfo := readDWORD(hGTA, dwSAMP + ADDR_SAMP_CHATMSG_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return false
- }
- callWithParams(hGTA, dwFunc, [["p", dwChatInfo], ["s", wText]], true)
- ErrorLevel := ERROR_OK
- return true
- }
- showGameText(wText, dwTime, dwSize) {
- wText := "" wText
- dwTime += 0
- dwTime := Floor(dwTime)
- dwSize += 0
- dwSize := Floor(dwSize)
- if(!checkHandles())
- return false
- dwFunc := dwSAMP + FUNC_SAMP_SHOWGAMETEXT
- callWithParams(hGTA, dwFunc, [["s", wText], ["i", dwTime], ["i", dwSize]], false)
- ErrorLevel := ERROR_OK
- return true
- }
- showDialog(dwStyle, wCaption, wInfo, wButton1 ) {
- dwStyle += 0
- dwStyle := Floor(dwStyle)
- wCaption := "" wCaption
- wInfo := "" wInfo
- wButton1 := "" wButton1
- if(!checkHandles())
- return false
- dwFunc := dwSAMP + FUNC_SAMP_SHOWDIALOG
- dwAddress := readDWORD(hGTA, dwSAMP + ADDR_SAMP_SHOWDLG_PTR)
- if(ErrorLevel || dwAddress==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return false
- }
- writeString(hGTA, pParam1, wCaption)
- if(ErrorLevel)
- return false
- writeString(hGTA, pParam2, wInfo)
- if(ErrorLevel)
- return false
- writeString(hGTA, pParam3, wButton1)
- if(ErrorLevel)
- return false
- dwLen := 5 + 7*5 + 5 + 1
- VarSetCapacity(injectData, dwLen, 0)
- NumPut(0xB9, injectData, 0, "UChar")
- NumPut(dwAddress, injectData, 1, "UInt")
- NumPut(0x68, injectData, 5, "UChar")
- NumPut(0, injectData, 6, "UInt")
- NumPut(0x68, injectData, 10, "UChar")
- NumPut(pParam1+StrLen(wCaption), injectData, 11, "UInt")
- NumPut(0x68, injectData, 15, "UChar")
- NumPut(pParam3, injectData, 16, "UInt")
- NumPut(0x68, injectData, 20, "UChar")
- NumPut(pParam2, injectData, 21, "UInt")
- NumPut(0x68, injectData, 25, "UChar")
- NumPut(pParam1, injectData, 26, "UInt")
- NumPut(0x68, injectData, 30, "UChar")
- NumPut(dwStyle, injectData, 31, "UInt")
- NumPut(0x68, injectData, 35, "UChar")
- NumPut(1, injectData, 36, "UInt")
- NumPut(0xE8, injectData, 40, "UChar")
- offset := dwFunc - (pInjectFunc + 45)
- NumPut(offset, injectData, 41, "Int")
- NumPut(0xC3, injectData, 45, "UChar")
- writeRaw(hGTA, pInjectFunc, &injectData, dwLen)
- if(ErrorLevel)
- return false
- hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
- if(ErrorLevel)
- return false
- waitForSingleObject(hThread, 0xFFFFFFFF)
- closeProcess(hThread)
- return true
- }
- playAudioStream(wUrl) {
- wUrl := "" wUrl
- if(!checkHandles())
- return false
- dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
- patchRadio()
- callWithParams(hGTA, dwFunc, [["s", wUrl], ["i", 0], ["i", 0], ["i", 0], ["i", 0], ["i", 0]], false)
- unPatchRadio()
- ErrorLevel := ERROR_OK
- return true
- }
- stopAudioStream() {
- if(!checkHandles())
- return false
- dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
- patchRadio()
- callWithParams(hGTA, dwFunc, [["i", 1]], false)
- unPatchRadio()
- ErrorLevel := ERROR_OK
- return true
- }
- patchRadio()
- {
- if(!checkHandles())
- return false
- VarSetCapacity(nop, 4, 0)
- NumPut(0x90909090,nop,0,"UInt")
- dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
- writeRaw(hGTA, dwFunc, &nop, 4)
- writeRaw(hGTA, dwFunc+4, &nop, 1)
- dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
- writeRaw(hGTA, dwFunc, &nop, 4)
- writeRaw(hGTA, dwFunc+4, &nop, 1)
- return true
- }
- unPatchRadio()
- {
- if(!checkHandles())
- return false
- VarSetCapacity(old, 4, 0)
- dwFunc := dwSAMP + FUNC_SAMP_PLAYAUDIOSTR
- NumPut(0x74003980,old,0,"UInt")
- writeRaw(hGTA, dwFunc, &old, 4)
- NumPut(0x39,old,0,"UChar")
- writeRaw(hGTA, dwFunc+4, &old, 1)
- dwFunc := dwSAMP + FUNC_SAMP_STOPAUDIOSTR
- NumPut(0x74003980,old,0,"UInt")
- writeRaw(hGTA, dwFunc, &old, 4)
- NumPut(0x09,old,0,"UChar")
- writeRaw(hGTA, dwFunc+4, &old, 1)
- return true
- }
- blockChatInput() {
- if(!checkHandles())
- return false
- VarSetCapacity(nop, 2, 0)
- dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
- NumPut(0x04C2,nop,0,"Short")
- writeRaw(hGTA, dwFunc, &nop, 2)
- dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
- writeRaw(hGTA, dwFunc, &nop, 2)
- return true
- }
- unBlockChatInput() {
- if(!checkHandles())
- return false
- VarSetCapacity(nop, 2, 0)
- dwFunc := dwSAMP + FUNC_SAMP_SENDSAY
- NumPut(0xA164,nop,0,"Short")
- writeRaw(hGTA, dwFunc, &nop, 2)
- dwFunc := dwSAMP + FUNC_SAMP_SENDCMD
- writeRaw(hGTA, dwFunc, &nop, 2)
- return true
- }
- getPlayerNameById(dwId) {
- dwId += 0
- dwId := Floor(dwId)
- if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
- return ""
- if(iRefreshScoreboard+iUpdateTick > A_TickCount)
- {
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].NAME
- return ""
- }
- if(!updateOScoreboardData())
- return ""
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].NAME
- return ""
- }
- getPlayerIdByName(wName) {
- wName := "" wName
- if(StrLen(wName) < 1 || StrLen(wName) > 24)
- return -1
- if(iRefreshScoreboard+iUpdateTick > A_TickCount)
- {
- For i, o in oScoreboardData
- {
- if(InStr(o.NAME,wName)==1)
- return i
- }
- return -1
- }
- if(!updateOScoreboardData())
- return -1
- For i, o in oScoreboardData
- {
- if(InStr(o.NAME,wName)==1)
- return i
- }
- return -1
- }
- getPlayerScoreById(dwId) {
- dwId += 0
- dwId := Floor(dwId)
- if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
- return ""
- if(iRefreshScoreboard+iUpdateTick > A_TickCount)
- {
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].SCORE
- return ""
- }
- if(!updateOScoreboardData(1))
- return ""
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].SCORE
- return ""
- }
- getPlayerPingById(dwId) {
- dwId += 0
- dwId := Floor(dwId)
- if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
- return -1
- if(iRefreshScoreboard+iUpdateTick > A_TickCount)
- {
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].PING
- return -1
- }
- if(!updateOScoreboardData(1))
- return -1
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].PING
- return -1
- }
- isNPCById(dwId) {
- dwId += 0
- dwId := Floor(dwId)
- if(dwId < 0 || dwId >= SAMP_PLAYER_MAX)
- return -1
- if(iRefreshScoreboard+iUpdateTick > A_TickCount)
- {
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].ISNPC
- return -1
- }
- if(!updateOScoreboardData())
- return -1
- if(oScoreboardData[dwId])
- return oScoreboardData[dwId].ISNPC
- return -1
- }
- updateScoreboardDataEx() {
- if(!checkHandles())
- return false
- dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
- if(ErrorLevel || dwAddress==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return false
- }
- dwFunc := dwSAMP + FUNC_UPDATESCOREBOARD
- VarSetCapacity(injectData, 11, 0)
- NumPut(0xB9, injectData, 0, "UChar")
- NumPut(dwAddress, injectData, 1, "UInt")
- NumPut(0xE8, injectData, 5, "UChar")
- offset := dwFunc - (pInjectFunc + 10)
- NumPut(offset, injectData, 6, "Int")
- NumPut(0xC3, injectData, 10, "UChar")
- writeRaw(hGTA, pInjectFunc, &injectData, 11)
- if(ErrorLevel)
- return false
- hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
- if(ErrorLevel)
- return false
- waitForSingleObject(hThread, 0xFFFFFFFF)
- closeProcess(hThread)
- return true
- }
- updateOScoreboardData(ex=0) {
- if(!checkHandles())
- return 0
- oScoreboardData := []
- if(ex && iRefreshScoreboard+5000 < A_TickCount)
- {
- if(!updateScoreboardDataEx())
- return 0
- }
- iRefreshScoreboard := A_TickCount
- dwAddress := readDWORD(hGTA, dwSAMP + SAMP_INFO_OFFSET)
- if(ErrorLevel || dwAddress==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwAddress := readDWORD(hGTA, dwAddress + SAMP_PPOOLS_OFFSET)
- if(ErrorLevel || dwAddress==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwPlayers := readDWORD(hGTA, dwAddress + SAMP_PPOOL_PLAYER_OFFSET)
- if(ErrorLevel || dwPlayers==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- wID := readMem(hGTA, dwPlayers + SAMP_SLOCALPLAYERID_OFFSET, 2, "Short")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwPing := readMem(hGTA, dwPlayers + SAMP_ILOCALPLAYERPING_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwScore := readMem(hGTA, dwPlayers + SAMP_ILOCALPLAYERSCORE_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwTemp := readMem(hGTA, dwPlayers + SAMP_ISTRLEN_LOCALPLAYERNAME_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- sUsername := ""
- if(dwTemp <= 0xf) {
- sUsername := readString(hGTA, dwPlayers + SAMP_SZLOCALPLAYERNAME_OFFSET, 16)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- }
- else {
- dwAddress := readDWORD(hGTA, dwPlayers + SAMP_PSZLOCALPLAYERNAME_OFFSET)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- sUsername := readString(hGTA, dwAddress, 25)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- }
- oScoreboardData[wID] := Object("NAME", sUsername, "ID", wID, "PING", dwPing, "SCORE", dwScore, "ISNPC", 0)
- Loop, % SAMP_PLAYER_MAX
- {
- i := A_Index-1
- dwRemoteplayer := readDWORD(hGTA, dwPlayers+SAMP_PREMOTEPLAYER_OFFSET+i*4)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- if(dwRemoteplayer==0)
- continue
- dwPing := readMem(hGTA, dwRemoteplayer + SAMP_IPING_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwScore := readMem(hGTA, dwRemoteplayer + SAMP_ISCORE_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwIsNPC := readMem(hGTA, dwRemoteplayer + SAMP_ISNPC_OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- dwTemp := readMem(hGTA, dwRemoteplayer + SAMP_ISTRLENNAME___OFFSET, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- sUsername := ""
- if(dwTemp <= 0xf)
- {
- sUsername := readString(hGTA, dwRemoteplayer+SAMP_SZPLAYERNAME_OFFSET, 16)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- }
- else {
- dwAddress := readDWORD(hGTA, dwRemoteplayer + SAMP_PSZPLAYERNAME_OFFSET)
- if(ErrorLevel || dwAddress==0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- sUsername := readString(hGTA, dwAddress, 25)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- }
- o := Object("NAME", sUsername, "ID", i, "PING", dwPing, "SCORE", dwScore, "ISNPC", dwIsNPC)
- oScoreboardData[i] := o
- }
- ErrorLevel := ERROR_OK
- return 1
- }
- GetChatLine(Line, ByRef Output, timestamp=0, color=0){
- chatindex := 0
- FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- loop, Parse, file, `n, `r
- {
- if(A_LoopField)
- chatindex := A_Index
- }
- loop, Parse, file, `n, `r
- {
- if(A_Index = chatindex - line){
- output := A_LoopField
- break
- }
- }
- file := ""
- if(!timestamp)
- output := RegExReplace(output, "U)^\[\d{2}:\d{2}:\d{2}\]")
- if(!color)
- output := RegExReplace(output, "Ui)\{[a-f0-9]{6}\}")
- return
- }
- getPlayerHealth() {
- if(!checkHandles())
- return -1
- dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- dwAddr := dwCPedPtr + ADDR_CPED_HPOFF
- fHealth := readFloat(hGTA, dwAddr)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return Round(fHealth)
- }
- getPlayerArmor() {
- if(!checkHandles())
- return -1
- dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- dwAddr := dwCPedPtr + ADDR_CPED_ARMOROFF
- fHealth := readFloat(hGTA, dwAddr)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return Round(fHealth)
- }
- getPlayerInteriorId() {
- if(!checkHandles())
- return -1
- iid := readMem(hGTA, ADDR_CPED_INTID, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return iid
- }
- getPlayerMoney() {
- if(!checkHandles())
- return ""
- money := readMem(hGTA, ADDR_CPED_MONEY, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return ""
- }
- ErrorLevel := ERROR_OK
- return money
- }
- getPlayerWanteds() {
- if(!checkHandles())
- return -1
- dwPtr := 0xB7CD9C
- dwPtr := readDWORD(hGTA, dwPtr)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- Wanteds := readDWORD(hGTA, dwPtr)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return Wanteds
- }
- isPlayerInAnyVehicle()
- {
- if(!checkHandles())
- return -1
- dwVehPtr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- return (dwVehPtr > 0)
- }
- isPlayerDriver() {
- if(!checkHandles())
- return -1
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- if(!dwAddr)
- return -1
- dwCPedPtr := readDWORD(hGTA, ADDR_CPED_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- dwVal := readDWORD(hGTA, dwAddr + ADDR_VEHICLE_DRIVER)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return (dwVal==dwCPedPtr)
- }
- getVehicleHealth() {
- if(!checkHandles())
- return -1
- dwVehPtr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- dwAddr := dwVehPtr + ADDR_VEHICLE_HPOFF
- fHealth := readFloat(hGTA, dwAddr)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return Round(fHealth)
- }
- getVehicleType() {
- if(!checkHandles())
- return 0
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- if(!dwAddr)
- return 0
- cVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_TYPE, 1, "Char")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- if(!cVal)
- {
- mid := getVehicleModelId()
- Loop % oAirplaneModels.MaxIndex()
- {
- if(oAirplaneModels[A_Index]==mid)
- return 5
- }
- return 1
- }
- else if(cVal==5)
- return 2
- else if(cVal==6)
- return 3
- else if(cVal==9)
- {
- mid := getVehicleModelId()
- Loop % oBikeModels.MaxIndex()
- {
- if(oBikeModels[A_Index]==mid)
- return 6
- }
- return 4
- }
- return 0
- }
- getVehicleModelId() {
- if(!checkHandles())
- return 0
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- if(!dwAddr)
- return 0
- sVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_MODEL, 2, "Short")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return sVal
- }
- getVehicleModelName() {
- id:=getVehicleModelId()
- if(id>400 && id <611)
- {
- return ovehicleNames[id-399]
- }
- return ""
- }
- getVehicleLightState() {
- if(!checkHandles())
- return -1
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- if(!dwAddr)
- return -1
- dwVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_LIGHTSTATE, 4, "Int")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return (dwVal>0)
- }
- getVehicleEngineState() {
- if(!checkHandles())
- return -1
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- if(!dwAddr)
- return -1
- cVal := readMem(hGTA, dwAddr + ADDR_VEHICLE_ENGINESTATE, 1, "Char")
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return (cVal==24 || cVal==56 || cVal==88 || cVal==120)
- }
- getVehicleLockState() {
- if(!checkHandles())
- return -1
- dwAddr := readDWORD(hGTA, ADDR_VEHICLE_PTR)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- if(!dwAddr)
- return -1
- dwVal := readDWORD(hGTA, dwAddr + ADDR_VEHICLE_DOORSTATE)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return -1
- }
- ErrorLevel := ERROR_OK
- return (dwVal==2)
- }
- getCoordinates() {
- if(!checkHandles())
- return ""
- fX := readFloat(hGTA, ADDR_POSITION_X)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return ""
- }
- fY := readFloat(hGTA, ADDR_POSITION_Y)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return ""
- }
- fZ := readFloat(hGTA, ADDR_POSITION_Z)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return ""
- }
- ErrorLevel := ERROR_OK
- return [fX, fY, fZ]
- }
- GetPlayerPos(ByRef fX,ByRef fY,ByRef fZ) {
- if(!checkHandles())
- return 0
- fX := readFloat(hGTA, ADDR_POSITION_X)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- fY := readFloat(hGTA, ADDR_POSITION_Y)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- fZ := readFloat(hGTA, ADDR_POSITION_Z)
- if(ErrorLevel) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- }
- initZonesAndCities() {
- AddCity("Las Venturas", 685.0, 476.093, -500.0, 3000.0, 3000.0, 500.0)
- AddCity("San Fierro", -3000.0, -742.306, -500.0, -1270.53, 1530.24, 500.0)
- AddCity("San Fierro", -1270.53, -402.481, -500.0, -1038.45, 832.495, 500.0)
- AddCity("San Fierro", -1038.45, -145.539, -500.0, -897.546, 376.632, 500.0)
- AddCity("Los Santos", 480.0, -3000.0, -500.0, 3000.0, -850.0, 500.0)
- AddCity("Los Santos", 80.0, -2101.61, -500.0, 1075.0, -1239.61, 500.0)
- AddCity("Tierra Robada", -1213.91, 596.349, -242.99, -480.539, 1659.68, 900.0)
- AddCity("Red County", -1213.91, -768.027, -242.99, 2997.06, 596.349, 900.0)
- AddCity("Flint County", -1213.91, -2892.97, -242.99, 44.6147, -768.027, 900.0)
- AddCity("Whetstone", -2997.47, -2892.97, -242.99, -1213.91, -1115.58, 900.0)
- AddZone("Avispa Country Club", -2667.810, -302.135, -28.831, -2646.400, -262.320, 71.169)
- AddZone("Easter Bay Airport", -1315.420, -405.388, 15.406, -1264.400, -209.543, 25.406)
- AddZone("Avispa Country Club", -2550.040, -355.493, 0.000, -2470.040, -318.493, 39.700)
- AddZone("Easter Bay Airport", -1490.330, -209.543, 15.406, -1264.400, -148.388, 25.406)
- AddZone("Garcia", -2395.140, -222.589, -5.3, -2354.090, -204.792, 200.000)
- AddZone("Shady Cabin", -1632.830, -2263.440, -3.0, -1601.330, -2231.790, 200.000)
- AddZone("East Los Santos", 2381.680, -1494.030, -89.084, 2421.030, -1454.350, 110.916)
- AddZone("LVA Freight Depot", 1236.630, 1163.410, -89.084, 1277.050, 1203.280, 110.916)
- AddZone("Blackfield Intersection", 1277.050, 1044.690, -89.084, 1315.350, 1087.630, 110.916)
- AddZone("Avispa Country Club", -2470.040, -355.493, 0.000, -2270.040, -318.493, 46.100)
- AddZone("Temple", 1252.330, -926.999, -89.084, 1357.000, -910.170, 110.916)
- AddZone("Unity Station", 1692.620, -1971.800, -20.492, 1812.620, -1932.800, 79.508)
- AddZone("LVA Freight Depot", 1315.350, 1044.690, -89.084, 1375.600, 1087.630, 110.916)
- AddZone("Los Flores", 2581.730, -1454.350, -89.084, 2632.830, -1393.420, 110.916)
- AddZone("Starfish Casino", 2437.390, 1858.100, -39.084, 2495.090, 1970.850, 60.916)
- AddZone("Easter Bay Chemicals", -1132.820, -787.391, 0.000, -956.476, -768.027, 200.000)
- AddZone("Downtown Los Santos", 1370.850, -1170.870, -89.084, 1463.900, -1130.850, 110.916)
- AddZone("Esplanade East", -1620.300, 1176.520, -4.5, -1580.010, 1274.260, 200.000)
- AddZone("Market Station", 787.461, -1410.930, -34.126, 866.009, -1310.210, 65.874)
- AddZone("Linden Station", 2811.250, 1229.590, -39.594, 2861.250, 1407.590, 60.406)
- AddZone("Montgomery Intersection", 1582.440, 347.457, 0.000, 1664.620, 401.750, 200.000)
- AddZone("Frederick Bridge", 2759.250, 296.501, 0.000, 2774.250, 594.757, 200.000)
- AddZone("Yellow Bell Station", 1377.480, 2600.430, -21.926, 1492.450, 2687.360, 78.074)
- AddZone("Downtown Los Santos", 1507.510, -1385.210, 110.916, 1582.550, -1325.310, 335.916)
- AddZone("Jefferson", 2185.330, -1210.740, -89.084, 2281.450, -1154.590, 110.916)
- AddZone("Mulholland", 1318.130, -910.170, -89.084, 1357.000, -768.027, 110.916)
- AddZone("Avispa Country Club", -2361.510, -417.199, 0.000, -2270.040, -355.493, 200.000)
- AddZone("Jefferson", 1996.910, -1449.670, -89.084, 2056.860, -1350.720, 110.916)
- AddZone("Julius Thruway West", 1236.630, 2142.860, -89.084, 1297.470, 2243.230, 110.916)
- AddZone("Jefferson", 2124.660, -1494.030, -89.084, 2266.210, -1449.670, 110.916)
- AddZone("Julius Thruway North", 1848.400, 2478.490, -89.084, 1938.800, 2553.490, 110.916)
- AddZone("Rodeo", 422.680, -1570.200, -89.084, 466.223, -1406.050, 110.916)
- AddZone("Cranberry Station", -2007.830, 56.306, 0.000, -1922.000, 224.782, 100.000)
- AddZone("Downtown Los Santos", 1391.050, -1026.330, -89.084, 1463.900, -926.999, 110.916)
- AddZone("Redsands West", 1704.590, 2243.230, -89.084, 1777.390, 2342.830, 110.916)
- AddZone("Little Mexico", 1758.900, -1722.260, -89.084, 1812.620, -1577.590, 110.916)
- AddZone("Blackfield Intersection", 1375.600, 823.228, -89.084, 1457.390, 919.447, 110.916)
- AddZone("Los Santos International", 1974.630, -2394.330, -39.084, 2089.000, -2256.590, 60.916)
- AddZone("Beacon Hill", -399.633, -1075.520, -1.489, -319.033, -977.516, 198.511)
- AddZone("Rodeo", 334.503, -1501.950, -89.084, 422.680, -1406.050, 110.916)
- AddZone("Richman", 225.165, -1369.620, -89.084, 334.503, -1292.070, 110.916)
- AddZone("Downtown Los Santos", 1724.760, -1250.900, -89.084, 1812.620, -1150.870, 110.916)
- AddZone("The Strip", 2027.400, 1703.230, -89.084, 2137.400, 1783.230, 110.916)
- AddZone("Downtown Los Santos", 1378.330, -1130.850, -89.084, 1463.900, -1026.330, 110.916)
- AddZone("Blackfield Intersection", 1197.390, 1044.690, -89.084, 1277.050, 1163.390, 110.916)
- AddZone("Conference Center", 1073.220, -1842.270, -89.084, 1323.900, -1804.210, 110.916)
- AddZone("Montgomery", 1451.400, 347.457, -6.1, 1582.440, 420.802, 200.000)
- AddZone("Foster Valley", -2270.040, -430.276, -1.2, -2178.690, -324.114, 200.000)
- AddZone("Blackfield Chapel", 1325.600, 596.349, -89.084, 1375.600, 795.010, 110.916)
- AddZone("Los Santos International", 2051.630, -2597.260, -39.084, 2152.450, -2394.330, 60.916)
- AddZone("Mulholland", 1096.470, -910.170, -89.084, 1169.130, -768.027, 110.916)
- AddZone("Yellow Bell Gol Course", 1457.460, 2723.230, -89.084, 1534.560, 2863.230, 110.916)
- AddZone("The Strip", 2027.400, 1783.230, -89.084, 2162.390, 1863.230, 110.916)
- AddZone("Jefferson", 2056.860, -1210.740, -89.084, 2185.330, -1126.320, 110.916)
- AddZone("Mulholland", 952.604, -937.184, -89.084, 1096.470, -860.619, 110.916)
- AddZone("Aldea Malvada", -1372.140, 2498.520, 0.000, -1277.590, 2615.350, 200.000)
- AddZone("Las Colinas", 2126.860, -1126.320, -89.084, 2185.330, -934.489, 110.916)
- AddZone("Las Colinas", 1994.330, -1100.820, -89.084, 2056.860, -920.815, 110.916)
- AddZone("Richman", 647.557, -954.662, -89.084, 768.694, -860.619, 110.916)
- AddZone("LVA Freight Depot", 1277.050, 1087.630, -89.084, 1375.600, 1203.280, 110.916)
- AddZone("Julius Thruway North", 1377.390, 2433.230, -89.084, 1534.560, 2507.230, 110.916)
- AddZone("Willowfield", 2201.820, -2095.000, -89.084, 2324.000, -1989.900, 110.916)
- AddZone("Julius Thruway North", 1704.590, 2342.830, -89.084, 1848.400, 2433.230, 110.916)
- AddZone("Temple", 1252.330, -1130.850, -89.084, 1378.330, -1026.330, 110.916)
- AddZone("Little Mexico", 1701.900, -1842.270, -89.084, 1812.620, -1722.260, 110.916)
- AddZone("Queens", -2411.220, 373.539, 0.000, -2253.540, 458.411, 200.000)
- AddZone("Las Venturas Airport", 1515.810, 1586.400, -12.500, 1729.950, 1714.560, 87.500)
- AddZone("Richman", 225.165, -1292.070, -89.084, 466.223, -1235.070, 110.916)
- AddZone("Temple", 1252.330, -1026.330, -89.084, 1391.050, -926.999, 110.916)
- AddZone("East Los Santos", 2266.260, -1494.030, -89.084, 2381.680, -1372.040, 110.916)
- AddZone("Julius Thruway East", 2623.180, 943.235, -89.084, 2749.900, 1055.960, 110.916)
- AddZone("Willowfield", 2541.700, -1941.400, -89.084, 2703.580, -1852.870, 110.916)
- AddZone("Las Colinas", 2056.860, -1126.320, -89.084, 2126.860, -920.815, 110.916)
- AddZone("Julius Thruway East", 2625.160, 2202.760, -89.084, 2685.160, 2442.550, 110.916)
- AddZone("Rodeo", 225.165, -1501.950, -89.084, 334.503, -1369.620, 110.916)
- AddZone("Las Brujas", -365.167, 2123.010, -3.0, -208.570, 2217.680, 200.000)
- AddZone("Julius Thruway East", 2536.430, 2442.550, -89.084, 2685.160, 2542.550, 110.916)
- AddZone("Rodeo", 334.503, -1406.050, -89.084, 466.223, -1292.070, 110.916)
- AddZone("Vinewood", 647.557, -1227.280, -89.084, 787.461, -1118.280, 110.916)
- AddZone("Rodeo", 422.680, -1684.650, -89.084, 558.099, -1570.200, 110.916)
- AddZone("Julius Thruway North", 2498.210, 2542.550, -89.084, 2685.160, 2626.550, 110.916)
- AddZone("Downtown Los Santos", 1724.760, -1430.870, -89.084, 1812.620, -1250.900, 110.916)
- AddZone("Rodeo", 225.165, -1684.650, -89.084, 312.803, -1501.950, 110.916)
- AddZone("Jefferson", 2056.860, -1449.670, -89.084, 2266.210, -1372.040, 110.916)
- AddZone("Hampton Barns", 603.035, 264.312, 0.000, 761.994, 366.572, 200.000)
- AddZone("Temple", 1096.470, -1130.840, -89.084, 1252.330, -1026.330, 110.916)
- AddZone("Kincaid Bridge", -1087.930, 855.370, -89.084, -961.950, 986.281, 110.916)
- AddZone("Verona Beach", 1046.150, -1722.260, -89.084, 1161.520, -1577.590, 110.916)
- AddZone("Commerce", 1323.900, -1722.260, -89.084, 1440.900, -1577.590, 110.916)
- AddZone("Mulholland", 1357.000, -926.999, -89.084, 1463.900, -768.027, 110.916)
- AddZone("Rodeo", 466.223, -1570.200, -89.084, 558.099, -1385.070, 110.916)
- AddZone("Mulholland", 911.802, -860.619, -89.084, 1096.470, -768.027, 110.916)
- AddZone("Mulholland", 768.694, -954.662, -89.084, 952.604, -860.619, 110.916)
- AddZone("Julius Thruway South", 2377.390, 788.894, -89.084, 2537.390, 897.901, 110.916)
- AddZone("Idlewood", 1812.620, -1852.870, -89.084, 1971.660, -1742.310, 110.916)
- AddZone("Ocean Docks", 2089.000, -2394.330, -89.084, 2201.820, -2235.840, 110.916)
- AddZone("Commerce", 1370.850, -1577.590, -89.084, 1463.900, -1384.950, 110.916)
- AddZone("Julius Thruway North", 2121.400, 2508.230, -89.084, 2237.400, 2663.170, 110.916)
- AddZone("Temple", 1096.470, -1026.330, -89.084, 1252.330, -910.170, 110.916)
- AddZone("Glen Park", 1812.620, -1449.670, -89.084, 1996.910, -1350.720, 110.916)
- AddZone("Easter Bay Airport", -1242.980, -50.096, 0.000, -1213.910, 578.396, 200.000)
- AddZone("Martin Bridge", -222.179, 293.324, 0.000, -122.126, 476.465, 200.000)
- AddZone("The Strip", 2106.700, 1863.230, -89.084, 2162.390, 2202.760, 110.916)
- AddZone("Willowfield", 2541.700, -2059.230, -89.084, 2703.580, -1941.400, 110.916)
- AddZone("Marina", 807.922, -1577.590, -89.084, 926.922, -1416.250, 110.916)
- AddZone("Las Venturas Airport", 1457.370, 1143.210, -89.084, 1777.400, 1203.280, 110.916)
- AddZone("Idlewood", 1812.620, -1742.310, -89.084, 1951.660, -1602.310, 110.916)
- AddZone("Esplanade East", -1580.010, 1025.980, -6.1, -1499.890, 1274.260, 200.000)
- AddZone("Downtown Los Santos", 1370.850, -1384.950, -89.084, 1463.900, -1170.870, 110.916)
- AddZone("The Mako Span", 1664.620, 401.750, 0.000, 1785.140, 567.203, 200.000)
- AddZone("Rodeo", 312.803, -1684.650, -89.084, 422.680, -1501.950, 110.916)
- AddZone("Pershing Square", 1440.900, -1722.260, -89.084, 1583.500, -1577.590, 110.916)
- AddZone("Mulholland", 687.802, -860.619, -89.084, 911.802, -768.027, 110.916)
- AddZone("Gant Bridge", -2741.070, 1490.470, -6.1, -2616.400, 1659.680, 200.000)
- AddZone("Las Colinas", 2185.330, -1154.590, -89.084, 2281.450, -934.489, 110.916)
- AddZone("Mulholland", 1169.130, -910.170, -89.084, 1318.130, -768.027, 110.916)
- AddZone("Julius Thruway North", 1938.800, 2508.230, -89.084, 2121.400, 2624.230, 110.916)
- AddZone("Commerce", 1667.960, -1577.590, -89.084, 1812.620, -1430.870, 110.916)
- AddZone("Rodeo", 72.648, -1544.170, -89.084, 225.165, -1404.970, 110.916)
- AddZone("Roca Escalante", 2536.430, 2202.760, -89.084, 2625.160, 2442.550, 110.916)
- AddZone("Rodeo", 72.648, -1684.650, -89.084, 225.165, -1544.170, 110.916)
- AddZone("Market", 952.663, -1310.210, -89.084, 1072.660, -1130.850, 110.916)
- AddZone("Las Colinas", 2632.740, -1135.040, -89.084, 2747.740, -945.035, 110.916)
- AddZone("Mulholland", 861.085, -674.885, -89.084, 1156.550, -600.896, 110.916)
- AddZone("King's", -2253.540, 373.539, -9.1, -1993.280, 458.411, 200.000)
- AddZone("Redsands East", 1848.400, 2342.830, -89.084, 2011.940, 2478.490, 110.916)
- AddZone("Downtown", -1580.010, 744.267, -6.1, -1499.890, 1025.980, 200.000)
- AddZone("Conference Center", 1046.150, -1804.210, -89.084, 1323.900, -1722.260, 110.916)
- AddZone("Richman", 647.557, -1118.280, -89.084, 787.461, -954.662, 110.916)
- AddZone("Ocean Flats", -2994.490, 277.411, -9.1, -2867.850, 458.411, 200.000)
- AddZone("Greenglass College", 964.391, 930.890, -89.084, 1166.530, 1044.690, 110.916)
- AddZone("Glen Park", 1812.620, -1100.820, -89.084, 1994.330, -973.380, 110.916)
- AddZone("LVA Freight Depot", 1375.600, 919.447, -89.084, 1457.370, 1203.280, 110.916)
- AddZone("Regular Tom", -405.770, 1712.860, -3.0, -276.719, 1892.750, 200.000)
- AddZone("Verona Beach", 1161.520, -1722.260, -89.084, 1323.900, -1577.590, 110.916)
- AddZone("East Los Santos", 2281.450, -1372.040, -89.084, 2381.680, -1135.040, 110.916)
- AddZone("Caligula's Palace", 2137.400, 1703.230, -89.084, 2437.390, 1783.230, 110.916)
- AddZone("Idlewood", 1951.660, -1742.310, -89.084, 2124.660, -1602.310, 110.916)
- AddZone("Pilgrim", 2624.400, 1383.230, -89.084, 2685.160, 1783.230, 110.916)
- AddZone("Idlewood", 2124.660, -1742.310, -89.084, 2222.560, -1494.030, 110.916)
- AddZone("Queens", -2533.040, 458.411, 0.000, -2329.310, 578.396, 200.000)
- AddZone("Downtown", -1871.720, 1176.420, -4.5, -1620.300, 1274.260, 200.000)
- AddZone("Commerce", 1583.500, -1722.260, -89.084, 1758.900, -1577.590, 110.916)
- AddZone("East Los Santos", 2381.680, -1454.350, -89.084, 2462.130, -1135.040, 110.916)
- AddZone("Marina", 647.712, -1577.590, -89.084, 807.922, -1416.250, 110.916)
- AddZone("Richman", 72.648, -1404.970, -89.084, 225.165, -1235.070, 110.916)
- AddZone("Vinewood", 647.712, -1416.250, -89.084, 787.461, -1227.280, 110.916)
- AddZone("East Los Santos", 2222.560, -1628.530, -89.084, 2421.030, -1494.030, 110.916)
- AddZone("Rodeo", 558.099, -1684.650, -89.084, 647.522, -1384.930, 110.916)
- AddZone("Easter Tunnel", -1709.710, -833.034, -1.5, -1446.010, -730.118, 200.000)
- AddZone("Rodeo", 466.223, -1385.070, -89.084, 647.522, -1235.070, 110.916)
- AddZone("Redsands East", 1817.390, 2202.760, -89.084, 2011.940, 2342.830, 110.916)
- AddZone("The Clown's Pocket", 2162.390, 1783.230, -89.084, 2437.390, 1883.230, 110.916)
- AddZone("Idlewood", 1971.660, -1852.870, -89.084, 2222.560, -1742.310, 110.916)
- AddZone("Montgomery Intersection", 1546.650, 208.164, 0.000, 1745.830, 347.457, 200.000)
- AddZone("Willowfield", 2089.000, -2235.840, -89.084, 2201.820, -1989.900, 110.916)
- AddZone("Temple", 952.663, -1130.840, -89.084, 1096.470, -937.184, 110.916)
- AddZone("Prickle Pine", 1848.400, 2553.490, -89.084, 1938.800, 2863.230, 110.916)
- AddZone("Los Santos International", 1400.970, -2669.260, -39.084, 2189.820, -2597.260, 60.916)
- AddZone("Garver Bridge", -1213.910, 950.022, -89.084, -1087.930, 1178.930, 110.916)
- AddZone("Garver Bridge", -1339.890, 828.129, -89.084, -1213.910, 1057.040, 110.916)
- AddZone("Kincaid Bridge", -1339.890, 599.218, -89.084, -1213.910, 828.129, 110.916)
- AddZone("Kincaid Bridge", -1213.910, 721.111, -89.084, -1087.930, 950.022, 110.916)
- AddZone("Verona Beach", 930.221, -2006.780, -89.084, 1073.220, -1804.210, 110.916)
- AddZone("Verdant Bluffs", 1073.220, -2006.780, -89.084, 1249.620, -1842.270, 110.916)
- AddZone("Vinewood", 787.461, -1130.840, -89.084, 952.604, -954.662, 110.916)
- AddZone("Vinewood", 787.461, -1310.210, -89.084, 952.663, -1130.840, 110.916)
- AddZone("Commerce", 1463.900, -1577.590, -89.084, 1667.960, -1430.870, 110.916)
- AddZone("Market", 787.461, -1416.250, -89.084, 1072.660, -1310.210, 110.916)
- AddZone("Rockshore West", 2377.390, 596.349, -89.084, 2537.390, 788.894, 110.916)
- AddZone("Julius Thruway North", 2237.400, 2542.550, -89.084, 2498.210, 2663.170, 110.916)
- AddZone("East Beach", 2632.830, -1668.130, -89.084, 2747.740, -1393.420, 110.916)
- AddZone("Fallow Bridge", 434.341, 366.572, 0.000, 603.035, 555.680, 200.000)
- AddZone("Willowfield", 2089.000, -1989.900, -89.084, 2324.000, -1852.870, 110.916)
- AddZone("Chinatown", -2274.170, 578.396, -7.6, -2078.670, 744.170, 200.000)
- AddZone("El Castillo del Diablo", -208.570, 2337.180, 0.000, 8.430, 2487.180, 200.000)
- AddZone("Ocean Docks", 2324.000, -2145.100, -89.084, 2703.580, -2059.230, 110.916)
- AddZone("Easter Bay Chemicals", -1132.820, -768.027, 0.000, -956.476, -578.118, 200.000)
- AddZone("The Visage", 1817.390, 1703.230, -89.084, 2027.400, 1863.230, 110.916)
- AddZone("Ocean Flats", -2994.490, -430.276, -1.2, -2831.890, -222.589, 200.000)
- AddZone("Richman", 321.356, -860.619, -89.084, 687.802, -768.027, 110.916)
- AddZone("Green Palms", 176.581, 1305.450, -3.0, 338.658, 1520.720, 200.000)
- AddZone("Richman", 321.356, -768.027, -89.084, 700.794, -674.885, 110.916)
- AddZone("Starfish Casino", 2162.390, 1883.230, -89.084, 2437.390, 2012.180, 110.916)
- AddZone("East Beach", 2747.740, -1668.130, -89.084, 2959.350, -1498.620, 110.916)
- AddZone("Jefferson", 2056.860, -1372.040, -89.084, 2281.450, -1210.740, 110.916)
- AddZone("Downtown Los Santos", 1463.900, -1290.870, -89.084, 1724.760, -1150.870, 110.916)
- AddZone("Downtown Los Santos", 1463.900, -1430.870, -89.084, 1724.760, -1290.870, 110.916)
- AddZone("Garver Bridge", -1499.890, 696.442, -179.615, -1339.890, 925.353, 20.385)
- AddZone("Julius Thruway South", 1457.390, 823.228, -89.084, 2377.390, 863.229, 110.916)
- AddZone("East Los Santos", 2421.030, -1628.530, -89.084, 2632.830, -1454.350, 110.916)
- AddZone("Greenglass College", 964.391, 1044.690, -89.084, 1197.390, 1203.220, 110.916)
- AddZone("Las Colinas", 2747.740, -1120.040, -89.084, 2959.350, -945.035, 110.916)
- AddZone("Mulholland", 737.573, -768.027, -89.084, 1142.290, -674.885, 110.916)
- AddZone("Ocean Docks", 2201.820, -2730.880, -89.084, 2324.000, -2418.330, 110.916)
- AddZone("East Los Santos", 2462.130, -1454.350, -89.084, 2581.730, -1135.040, 110.916)
- AddZone("Ganton", 2222.560, -1722.330, -89.084, 2632.830, -1628.530, 110.916)
- AddZone("Avispa Country Club", -2831.890, -430.276, -6.1, -2646.400, -222.589, 200.000)
- AddZone("Willowfield", 1970.620, -2179.250, -89.084, 2089.000, -1852.870, 110.916)
- AddZone("Esplanade North", -1982.320, 1274.260, -4.5, -1524.240, 1358.900, 200.000)
- AddZone("The High Roller", 1817.390, 1283.230, -89.084, 2027.390, 1469.230, 110.916)
- AddZone("Ocean Docks", 2201.820, -2418.330, -89.084, 2324.000, -2095.000, 110.916)
- AddZone("Last Dime Motel", 1823.080, 596.349, -89.084, 1997.220, 823.228, 110.916)
- AddZone("Bayside Marina", -2353.170, 2275.790, 0.000, -2153.170, 2475.790, 200.000)
- AddZone("King's", -2329.310, 458.411, -7.6, -1993.280, 578.396, 200.000)
- AddZone("El Corona", 1692.620, -2179.250, -89.084, 1812.620, -1842.270, 110.916)
- AddZone("Blackfield Chapel", 1375.600, 596.349, -89.084, 1558.090, 823.228, 110.916)
- AddZone("The Pink Swan", 1817.390, 1083.230, -89.084, 2027.390, 1283.230, 110.916)
- AddZone("Julius Thruway West", 1197.390, 1163.390, -89.084, 1236.630, 2243.230, 110.916)
- AddZone("Los Flores", 2581.730, -1393.420, -89.084, 2747.740, -1135.040, 110.916)
- AddZone("The Visage", 1817.390, 1863.230, -89.084, 2106.700, 2011.830, 110.916)
- AddZone("Prickle Pine", 1938.800, 2624.230, -89.084, 2121.400, 2861.550, 110.916)
- AddZone("Verona Beach", 851.449, -1804.210, -89.084, 1046.150, -1577.590, 110.916)
- AddZone("Robada Intersection", -1119.010, 1178.930, -89.084, -862.025, 1351.450, 110.916)
- AddZone("Linden Side", 2749.900, 943.235, -89.084, 2923.390, 1198.990, 110.916)
- AddZone("Ocean Docks", 2703.580, -2302.330, -89.084, 2959.350, -2126.900, 110.916)
- AddZone("Willowfield", 2324.000, -2059.230, -89.084, 2541.700, -1852.870, 110.916)
- AddZone("King's", -2411.220, 265.243, -9.1, -1993.280, 373.539, 200.000)
- AddZone("Commerce", 1323.900, -1842.270, -89.084, 1701.900, -1722.260, 110.916)
- AddZone("Mulholland", 1269.130, -768.027, -89.084, 1414.070, -452.425, 110.916)
- AddZone("Marina", 647.712, -1804.210, -89.084, 851.449, -1577.590, 110.916)
- AddZone("Battery Point", -2741.070, 1268.410, -4.5, -2533.040, 1490.470, 200.000)
- AddZone("The Four Dragons Casino", 1817.390, 863.232, -89.084, 2027.390, 1083.230, 110.916)
- AddZone("Blackfield", 964.391, 1203.220, -89.084, 1197.390, 1403.220, 110.916)
- AddZone("Julius Thruway North", 1534.560, 2433.230, -89.084, 1848.400, 2583.230, 110.916)
- AddZone("Yellow Bell Gol Course", 1117.400, 2723.230, -89.084, 1457.460, 2863.230, 110.916)
- AddZone("Idlewood", 1812.620, -1602.310, -89.084, 2124.660, -1449.670, 110.916)
- AddZone("Redsands West", 1297.470, 2142.860, -89.084, 1777.390, 2243.230, 110.916)
- AddZone("Doherty", -2270.040, -324.114, -1.2, -1794.920, -222.589, 200.000)
- AddZone("Hilltop Farm", 967.383, -450.390, -3.0, 1176.780, -217.900, 200.000)
- AddZone("Las Barrancas", -926.130, 1398.730, -3.0, -719.234, 1634.690, 200.000)
- AddZone("Pirates in Men's Pants", 1817.390, 1469.230, -89.084, 2027.400, 1703.230, 110.916)
- AddZone("City Hall", -2867.850, 277.411, -9.1, -2593.440, 458.411, 200.000)
- AddZone("Avispa Country Club", -2646.400, -355.493, 0.000, -2270.040, -222.589, 200.000)
- AddZone("The Strip", 2027.400, 863.229, -89.084, 2087.390, 1703.230, 110.916)
- AddZone("Hashbury", -2593.440, -222.589, -1.0, -2411.220, 54.722, 200.000)
- AddZone("Los Santos International", 1852.000, -2394.330, -89.084, 2089.000, -2179.250, 110.916)
- AddZone("Whitewood Estates", 1098.310, 1726.220, -89.084, 1197.390, 2243.230, 110.916)
- AddZone("Sherman Reservoir", -789.737, 1659.680, -89.084, -599.505, 1929.410, 110.916)
- AddZone("El Corona", 1812.620, -2179.250, -89.084, 1970.620, -1852.870, 110.916)
- AddZone("Downtown", -1700.010, 744.267, -6.1, -1580.010, 1176.520, 200.000)
- AddZone("Foster Valley", -2178.690, -1250.970, 0.000, -1794.920, -1115.580, 200.000)
- AddZone("Las Payasadas", -354.332, 2580.360, 2.0, -133.625, 2816.820, 200.000)
- AddZone("Valle Ocultado", -936.668, 2611.440, 2.0, -715.961, 2847.900, 200.000)
- AddZone("Blackfield Intersection", 1166.530, 795.010, -89.084, 1375.600, 1044.690, 110.916)
- AddZone("Ganton", 2222.560, -1852.870, -89.084, 2632.830, -1722.330, 110.916)
- AddZone("Easter Bay Airport", -1213.910, -730.118, 0.000, -1132.820, -50.096, 200.000)
- AddZone("Redsands East", 1817.390, 2011.830, -89.084, 2106.700, 2202.760, 110.916)
- AddZone("Esplanade East", -1499.890, 578.396, -79.615, -1339.890, 1274.260, 20.385)
- AddZone("Caligula's Palace", 2087.390, 1543.230, -89.084, 2437.390, 1703.230, 110.916)
- AddZone("Royal Casino", 2087.390, 1383.230, -89.084, 2437.390, 1543.230, 110.916)
- AddZone("Richman", 72.648, -1235.070, -89.084, 321.356, -1008.150, 110.916)
- AddZone("Starfish Casino", 2437.390, 1783.230, -89.084, 2685.160, 2012.180, 110.916)
- AddZone("Mulholland", 1281.130, -452.425, -89.084, 1641.130, -290.913, 110.916)
- AddZone("Downtown", -1982.320, 744.170, -6.1, -1871.720, 1274.260, 200.000)
- AddZone("Hankypanky Point", 2576.920, 62.158, 0.000, 2759.250, 385.503, 200.000)
- AddZone("K.A.C.C. Military Fuels", 2498.210, 2626.550, -89.084, 2749.900, 2861.550, 110.916)
- AddZone("Harry Gold Parkway", 1777.390, 863.232, -89.084, 1817.390, 2342.830, 110.916)
- AddZone("Bayside Tunnel", -2290.190, 2548.290, -89.084, -1950.190, 2723.290, 110.916)
- AddZone("Ocean Docks", 2324.000, -2302.330, -89.084, 2703.580, -2145.100, 110.916)
- AddZone("Richman", 321.356, -1044.070, -89.084, 647.557, -860.619, 110.916)
- AddZone("Randolph Industrial Estate", 1558.090, 596.349, -89.084, 1823.080, 823.235, 110.916)
- AddZone("East Beach", 2632.830, -1852.870, -89.084, 2959.350, -1668.130, 110.916)
- AddZone("Flint Water", -314.426, -753.874, -89.084, -106.339, -463.073, 110.916)
- AddZone("Blueberry", 19.607, -404.136, 3.8, 349.607, -220.137, 200.000)
- AddZone("Linden Station", 2749.900, 1198.990, -89.084, 2923.390, 1548.990, 110.916)
- AddZone("Glen Park", 1812.620, -1350.720, -89.084, 2056.860, -1100.820, 110.916)
- AddZone("Downtown", -1993.280, 265.243, -9.1, -1794.920, 578.396, 200.000)
- AddZone("Redsands West", 1377.390, 2243.230, -89.084, 1704.590, 2433.230, 110.916)
- AddZone("Richman", 321.356, -1235.070, -89.084, 647.522, -1044.070, 110.916)
- AddZone("Gant Bridge", -2741.450, 1659.680, -6.1, -2616.400, 2175.150, 200.000)
- AddZone("Lil' Probe Inn", -90.218, 1286.850, -3.0, 153.859, 1554.120, 200.000)
- AddZone("Flint Intersection", -187.700, -1596.760, -89.084, 17.063, -1276.600, 110.916)
- AddZone("Las Colinas", 2281.450, -1135.040, -89.084, 2632.740, -945.035, 110.916)
- AddZone("Sobell Rail Yards", 2749.900, 1548.990, -89.084, 2923.390, 1937.250, 110.916)
- AddZone("The Emerald Isle", 2011.940, 2202.760, -89.084, 2237.400, 2508.230, 110.916)
- AddZone("El Castillo del Diablo", -208.570, 2123.010, -7.6, 114.033, 2337.180, 200.000)
- AddZone("Santa Flora", -2741.070, 458.411, -7.6, -2533.040, 793.411, 200.000)
- AddZone("Playa del Seville", 2703.580, -2126.900, -89.084, 2959.350, -1852.870, 110.916)
- AddZone("Market", 926.922, -1577.590, -89.084, 1370.850, -1416.250, 110.916)
- AddZone("Queens", -2593.440, 54.722, 0.000, -2411.220, 458.411, 200.000)
- AddZone("Pilson Intersection", 1098.390, 2243.230, -89.084, 1377.390, 2507.230, 110.916)
- AddZone("Spinybed", 2121.400, 2663.170, -89.084, 2498.210, 2861.550, 110.916)
- AddZone("Pilgrim", 2437.390, 1383.230, -89.084, 2624.400, 1783.230, 110.916)
- AddZone("Blackfield", 964.391, 1403.220, -89.084, 1197.390, 1726.220, 110.916)
- AddZone("'The Big Ear'", -410.020, 1403.340, -3.0, -137.969, 1681.230, 200.000)
- AddZone("Dillimore", 580.794, -674.885, -9.5, 861.085, -404.790, 200.000)
- AddZone("El Quebrados", -1645.230, 2498.520, 0.000, -1372.140, 2777.850, 200.000)
- AddZone("Esplanade North", -2533.040, 1358.900, -4.5, -1996.660, 1501.210, 200.000)
- AddZone("Easter Bay Airport", -1499.890, -50.096, -1.0, -1242.980, 249.904, 200.000)
- AddZone("Fisher's Lagoon", 1916.990, -233.323, -100.000, 2131.720, 13.800, 200.000)
- AddZone("Mulholland", 1414.070, -768.027, -89.084, 1667.610, -452.425, 110.916)
- AddZone("East Beach", 2747.740, -1498.620, -89.084, 2959.350, -1120.040, 110.916)
- AddZone("San Andreas Sound", 2450.390, 385.503, -100.000, 2759.250, 562.349, 200.000)
- AddZone("Shady Creeks", -2030.120, -2174.890, -6.1, -1820.640, -1771.660, 200.000)
- AddZone("Market", 1072.660, -1416.250, -89.084, 1370.850, -1130.850, 110.916)
- AddZone("Rockshore West", 1997.220, 596.349, -89.084, 2377.390, 823.228, 110.916)
- AddZone("Prickle Pine", 1534.560, 2583.230, -89.084, 1848.400, 2863.230, 110.916)
- AddZone("Easter Basin", -1794.920, -50.096, -1.04, -1499.890, 249.904, 200.000)
- AddZone("Leafy Hollow", -1166.970, -1856.030, 0.000, -815.624, -1602.070, 200.000)
- AddZone("LVA Freight Depot", 1457.390, 863.229, -89.084, 1777.400, 1143.210, 110.916)
- AddZone("Prickle Pine", 1117.400, 2507.230, -89.084, 1534.560, 2723.230, 110.916)
- AddZone("Blueberry", 104.534, -220.137, 2.3, 349.607, 152.236, 200.000)
- AddZone("El Castillo del Diablo", -464.515, 2217.680, 0.000, -208.570, 2580.360, 200.000)
- AddZone("Downtown", -2078.670, 578.396, -7.6, -1499.890, 744.267, 200.000)
- AddZone("Rockshore East", 2537.390, 676.549, -89.084, 2902.350, 943.235, 110.916)
- AddZone("San Fierro Bay", -2616.400, 1501.210, -3.0, -1996.660, 1659.680, 200.000)
- AddZone("Paradiso", -2741.070, 793.411, -6.1, -2533.040, 1268.410, 200.000)
- AddZone("The Camel's Toe", 2087.390, 1203.230, -89.084, 2640.400, 1383.230, 110.916)
- AddZone("Old Venturas Strip", 2162.390, 2012.180, -89.084, 2685.160, 2202.760, 110.916)
- AddZone("Juniper Hill", -2533.040, 578.396, -7.6, -2274.170, 968.369, 200.000)
- AddZone("Juniper Hollow", -2533.040, 968.369, -6.1, -2274.170, 1358.900, 200.000)
- AddZone("Roca Escalante", 2237.400, 2202.760, -89.084, 2536.430, 2542.550, 110.916)
- AddZone("Julius Thruway East", 2685.160, 1055.960, -89.084, 2749.900, 2626.550, 110.916)
- AddZone("Verona Beach", 647.712, -2173.290, -89.084, 930.221, -1804.210, 110.916)
- AddZone("Foster Valley", -2178.690, -599.884, -1.2, -1794.920, -324.114, 200.000)
- AddZone("Arco del Oeste", -901.129, 2221.860, 0.000, -592.090, 2571.970, 200.000)
- AddZone("Fallen Tree", -792.254, -698.555, -5.3, -452.404, -380.043, 200.000)
- AddZone("The Farm", -1209.670, -1317.100, 114.981, -908.161, -787.391, 251.981)
- AddZone("The Sherman Dam", -968.772, 1929.410, -3.0, -481.126, 2155.260, 200.000)
- AddZone("Esplanade North", -1996.660, 1358.900, -4.5, -1524.240, 1592.510, 200.000)
- AddZone("Financial", -1871.720, 744.170, -6.1, -1701.300, 1176.420, 300.000)
- AddZone("Garcia", -2411.220, -222.589, -1.14, -2173.040, 265.243, 200.000)
- AddZone("Montgomery", 1119.510, 119.526, -3.0, 1451.400, 493.323, 200.000)
- AddZone("Creek", 2749.900, 1937.250, -89.084, 2921.620, 2669.790, 110.916)
- AddZone("Los Santos International", 1249.620, -2394.330, -89.084, 1852.000, -2179.250, 110.916)
- AddZone("Santa Maria Beach", 72.648, -2173.290, -89.084, 342.648, -1684.650, 110.916)
- AddZone("Mulholland Intersection", 1463.900, -1150.870, -89.084, 1812.620, -768.027, 110.916)
- AddZone("Angel Pine", -2324.940, -2584.290, -6.1, -1964.220, -2212.110, 200.000)
- AddZone("Verdant Meadows", 37.032, 2337.180, -3.0, 435.988, 2677.900, 200.000)
- AddZone("Octane Springs", 338.658, 1228.510, 0.000, 664.308, 1655.050, 200.000)
- AddZone("Come-A-Lot", 2087.390, 943.235, -89.084, 2623.180, 1203.230, 110.916)
- AddZone("Redsands West", 1236.630, 1883.110, -89.084, 1777.390, 2142.860, 110.916)
- AddZone("Santa Maria Beach", 342.648, -2173.290, -89.084, 647.712, -1684.650, 110.916)
- AddZone("Verdant Bluffs", 1249.620, -2179.250, -89.084, 1692.620, -1842.270, 110.916)
- AddZone("Las Venturas Airport", 1236.630, 1203.280, -89.084, 1457.370, 1883.110, 110.916)
- AddZone("Flint Range", -594.191, -1648.550, 0.000, -187.700, -1276.600, 200.000)
- AddZone("Verdant Bluffs", 930.221, -2488.420, -89.084, 1249.620, -2006.780, 110.916)
- AddZone("Palomino Creek", 2160.220, -149.004, 0.000, 2576.920, 228.322, 200.000)
- AddZone("Ocean Docks", 2373.770, -2697.090, -89.084, 2809.220, -2330.460, 110.916)
- AddZone("Easter Bay Airport", -1213.910, -50.096, -4.5, -947.980, 578.396, 200.000)
- AddZone("Whitewood Estates", 883.308, 1726.220, -89.084, 1098.310, 2507.230, 110.916)
- AddZone("Calton Heights", -2274.170, 744.170, -6.1, -1982.320, 1358.900, 200.000)
- AddZone("Easter Basin", -1794.920, 249.904, -9.1, -1242.980, 578.396, 200.000)
- AddZone("Los Santos Inlet", -321.744, -2224.430, -89.084, 44.615, -1724.430, 110.916)
- AddZone("Doherty", -2173.040, -222.589, -1.0, -1794.920, 265.243, 200.000)
- AddZone("Mount Chiliad", -2178.690, -2189.910, -47.917, -2030.120, -1771.660, 576.083)
- AddZone("Fort Carson", -376.233, 826.326, -3.0, 123.717, 1220.440, 200.000)
- AddZone("Foster Valley", -2178.690, -1115.580, 0.000, -1794.920, -599.884, 200.000)
- AddZone("Ocean Flats", -2994.490, -222.589, -1.0, -2593.440, 277.411, 200.000)
- AddZone("Fern Ridge", 508.189, -139.259, 0.000, 1306.660, 119.526, 200.000)
- AddZone("Bayside", -2741.070, 2175.150, 0.000, -2353.170, 2722.790, 200.000)
- AddZone("Las Venturas Airport", 1457.370, 1203.280, -89.084, 1777.390, 1883.110, 110.916)
- AddZone("Blueberry Acres", -319.676, -220.137, 0.000, 104.534, 293.324, 200.000)
- AddZone("Palisades", -2994.490, 458.411, -6.1, -2741.070, 1339.610, 200.000)
- AddZone("North Rock", 2285.370, -768.027, 0.000, 2770.590, -269.740, 200.000)
- AddZone("Hunter Quarry", 337.244, 710.840, -115.239, 860.554, 1031.710, 203.761)
- AddZone("Los Santos International", 1382.730, -2730.880, -89.084, 2201.820, -2394.330, 110.916)
- AddZone("Missionary Hill", -2994.490, -811.276, 0.000, -2178.690, -430.276, 200.000)
- AddZone("San Fierro Bay", -2616.400, 1659.680, -3.0, -1996.660, 2175.150, 200.000)
- AddZone("Restricted Area", -91.586, 1655.050, -50.000, 421.234, 2123.010, 250.000)
- AddZone("Mount Chiliad", -2997.470, -1115.580, -47.917, -2178.690, -971.913, 576.083)
- AddZone("Mount Chiliad", -2178.690, -1771.660, -47.917, -1936.120, -1250.970, 576.083)
- AddZone("Easter Bay Airport", -1794.920, -730.118, -3.0, -1213.910, -50.096, 200.000)
- AddZone("The Panopticon", -947.980, -304.320, -1.1, -319.676, 327.071, 200.000)
- AddZone("Shady Creeks", -1820.640, -2643.680, -8.0, -1226.780, -1771.660, 200.000)
- AddZone("Back o Beyond", -1166.970, -2641.190, 0.000, -321.744, -1856.030, 200.000)
- AddZone("Mount Chiliad", -2994.490, -2189.910, -47.917, -2178.690, -1115.580, 576.083)
- AddZone("Tierra Robada", -1213.910, 596.349, -242.990, -480.539, 1659.680, 900.000)
- AddZone("Flint County", -1213.910, -2892.970, -242.990, 44.615, -768.027, 900.000)
- AddZone("Whetstone", -2997.470, -2892.970, -242.990, -1213.910, -1115.580, 900.000)
- AddZone("Bone County", -480.539, 596.349, -242.990, 869.461, 2993.870, 900.000)
- AddZone("Tierra Robada", -2997.470, 1659.680, -242.990, -480.539, 2993.870, 900.000)
- AddZone("San Fierro", -2997.470, -1115.580, -242.990, -1213.910, 1659.680, 900.000)
- AddZone("Las Venturas", 869.461, 596.349, -242.990, 2997.060, 2993.870, 900.000)
- AddZone("Red County", -1213.910, -768.027, -242.990, 2997.060, 596.349, 900.000)
- AddZone("Los Santos", 44.615, -2892.970, -242.990, 2997.060, -768.027, 900.000)
- }
- calculateZone(posX, posY, posZ) {
- if ( bInitZaC == 0 )
- {
- initZonesAndCities()
- bInitZaC := 1
- }
- Loop % nZone-1
- {
- 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)
- {
- ErrorLevel := ERROR_OK
- return zone%A_Index%_name
- }
- }
- ErrorLevel := ERROR_ZONE_NOT_FOUND
- return "Unbekannt"
- }
- calculateCity(posX, posY, posZ) {
- if ( bInitZaC == 0 )
- {
- initZonesAndCities()
- bInitZaC := 1
- }
- smallestCity := "Unbekannt"
- currentCitySize := 0
- smallestCitySize := 0
- Loop % nCity-1
- {
- 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)
- {
- 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))
- if (smallestCity == "Unbekannt") || (currentCitySize < smallestCitySize)
- {
- smallestCity := city%A_Index%_name
- smallestCitySize := currentCitySize
- }
- }
- }
- if(smallestCity == "Unbekannt") {
- ErrorLevel := ERROR_CITY_NOT_FOUND
- } else {
- ErrorLevel := ERROR_OK
- }
- return smallestCity
- }
- AddZone(sName, x1, y1, z1, x2, y2, z2) {
- global
- zone%nZone%_name := sName
- zone%nZone%_x1 := x1
- zone%nZone%_y1 := y1
- zone%nZone%_z1 := z1
- zone%nZone%_x2 := x2
- zone%nZone%_y2 := y2
- zone%nZone%_z2 := z2
- nZone := nZone + 1
- }
- AddCity(sName, x1, y1, z1, x2, y2, z2) {
- global
- city%nCity%_name := sName
- city%nCity%_x1 := x1
- city%nCity%_y1 := y1
- city%nCity%_z1 := z1
- city%nCity%_x2 := x2
- city%nCity%_y2 := y2
- city%nCity%_z2 := z2
- nCity := nCity + 1
- }
- IsPlayerInRangeOfPoint(_posX, _posY, _posZ, _posRadius)
- {
- GetPlayerPos(posX, posY, posZ)
- X := posX -_posX
- Y := posY -_posY
- Z := posZ -_posZ
- if(((X < _posRadius) && (X > -_posRadius)) && ((Y < _posRadius) && (Y > -_posRadius)) && ((Z < _posRadius) && (Z > -_posRadius)))
- return TRUE
- return FALSE
- }
- IsPlayerInRangeOfPoint2D(_posX, _posY, _posRadius)
- {
- GetPlayerPos(posX, posY, posZ)
- X := posX - _posX
- Y := posY - _posY
- if(((X < _posRadius) && (X > -_posRadius)) && ((Y < _posRadius) && (Y > -_posRadius)))
- return TRUE
- return FALSE
- }
- getPlayerZone()
- {
- aktPos := getCoordinates()
- return calculateZone(aktPos[1], aktPos[2], aktPos[3])
- }
- getPlayerCity()
- {
- aktPos := getCoordinates()
- return calculateCity(aktPos[1], aktPos[2], aktPos[3])
- }
- checkHandles() {
- if(iRefreshHandles+500>A_TickCount)
- return true
- iRefreshHandles:=A_TickCount
- if(!refreshGTA() || !refreshSAMP() || !refreshMemory()) {
- return false
- } else {
- return true
- }
- return true
- }
- refreshGTA() {
- newPID := getPID("GTA:SA:MP")
- if(!newPID) {
- if(hGTA) {
- virtualFreeEx(hGTA, pMemory, 0, 0x8000)
- closeProcess(hGTA)
- hGTA := 0x0
- }
- dwGTAPID := 0
- hGTA := 0x0
- dwSAMP := 0x0
- pMemory := 0x0
- return false
- }
- if(!hGTA || (dwGTAPID != newPID)) {
- hGTA := openProcess(newPID)
- if(ErrorLevel) {
- dwGTAPID := 0
- hGTA := 0x0
- dwSAMP := 0x0
- pMemory := 0x0
- return false
- }
- dwGTAPID := newPID
- dwSAMP := 0x0
- pMemory := 0x0
- return true
- }
- return true
- }
- refreshSAMP() {
- if(dwSAMP)
- return true
- dwSAMP := getModuleBaseAddress("samp.dll", hGTA)
- if(!dwSAMP)
- return false
- return true
- }
- refreshMemory() {
- if(!pMemory) {
- pMemory := virtualAllocEx(hGTA, 4096, 0x1000 | 0x2000, 0x40)
- if(ErrorLevel) {
- pMemory := 0x0
- return false
- }
- pParam1 := pMemory
- pParam2 := pMemory + 1024
- pParam3 := pMemory + 2048
- pInjectFunc := pMemory + 3072
- }
- return true
- }
- getPID(szWindow) {
- local dwPID := 0
- WinGet, dwPID, PID, %szWindow%
- return dwPID
- }
- openProcess(dwPID, dwRights = 0x1F0FFF) {
- hProcess := DllCall("OpenProcess"
- , "UInt", dwRights
- , "int", 0
- , "UInt", dwPID
- , "Uint")
- if(hProcess == 0) {
- ErrorLevel := ERROR_OPEN_PROCESS
- return 0
- }
- ErrorLevel := ERROR_OK
- return hProcess
- }
- closeProcess(hProcess) {
- if(hProcess == 0) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwRet := DllCall( "CloseHandle"
- , "Uint", hProcess
- , "UInt")
- ErrorLevel := ERROR_OK
- }
- getModuleBaseAddress(sModule, hProcess) {
- if(!sModule) {
- ErrorLevel := ERROR_MODULE_NOT_FOUND
- return 0
- }
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwSize = 1024*4
- VarSetCapacity(hMods, dwSize)
- VarSetCapacity(cbNeeded, 4)
- dwRet := DllCall( "Psapi.dll\EnumProcessModules"
- , "UInt", hProcess
- , "UInt", &hMods
- , "UInt", dwSize
- , "UInt*", cbNeeded
- , "UInt")
- if(dwRet == 0) {
- ErrorLevel := ERROR_ENUM_PROCESS_MODULES
- return 0
- }
- dwMods := cbNeeded / 4
- i := 0
- VarSetCapacity(hModule, 4)
- VarSetCapacity(sCurModule, 260)
- while(i < dwMods) {
- hModule := NumGet(hMods, i*4)
- DllCall("Psapi.dll\GetModuleFileNameEx"
- , "UInt", hProcess
- , "UInt", hModule
- , "Str", sCurModule
- , "UInt", 260)
- SplitPath, sCurModule, sFilename
- if(sModule == sFilename) {
- ErrorLevel := ERROR_OK
- return hModule
- }
- i := i + 1
- }
- ErrorLevel := ERROR_MODULE_NOT_FOUND
- return 0
- }
- readString(hProcess, dwAddress, dwLen) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- VarSetCapacity(sRead, dwLen)
- dwRet := DllCall( "ReadProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "Str", sRead
- , "UInt", dwLen
- , "UInt*", 0
- , "UInt")
- if(dwRet == 0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- if A_IsUnicode
- return __ansiToUnicode(sRead)
- return sRead
- }
- readFloat(hProcess, dwAddress) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- VarSetCapacity(dwRead, 4)
- dwRet := DllCall( "ReadProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "Str", dwRead
- , "UInt", 4
- , "UInt*", 0
- , "UInt")
- if(dwRet == 0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return NumGet(dwRead, 0, "Float")
- }
- readDWORD(hProcess, dwAddress) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- VarSetCapacity(dwRead, 4)
- dwRet := DllCall( "ReadProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "Str", dwRead
- , "UInt", 4
- , "UInt*", 0)
- if(dwRet == 0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return NumGet(dwRead, 0, "UInt")
- }
- readMem(hProcess, dwAddress, dwLen=4, type="UInt") {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- VarSetCapacity(dwRead, dwLen)
- dwRet := DllCall( "ReadProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "Str", dwRead
- , "UInt", dwLen
- , "UInt*", 0)
- if(dwRet == 0) {
- ErrorLevel := ERROR_READ_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return NumGet(dwRead, 0, type)
- }
- writeString(hProcess, dwAddress, wString) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return false
- }
- sString := wString
- if A_IsUnicode
- sString := __unicodeToAnsi(wString)
- dwRet := DllCall( "WriteProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "Str", sString
- , "UInt", StrLen(wString) + 1
- , "UInt", 0
- , "UInt")
- if(dwRet == 0) {
- ErrorLEvel := ERROR_WRITE_MEMORY
- return false
- }
- ErrorLevel := ERROR_OK
- return true
- }
- writeRaw(hProcess, dwAddress, pBuffer, dwLen) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return false
- }
- dwRet := DllCall( "WriteProcessMemory"
- , "UInt", hProcess
- , "UInt", dwAddress
- , "UInt", pBuffer
- , "UInt", dwLen
- , "UInt", 0
- , "UInt")
- if(dwRet == 0) {
- ErrorLEvel := ERROR_WRITE_MEMORY
- return false
- }
- ErrorLevel := ERROR_OK
- return true
- }
- callWithParams(hProcess, dwFunc, aParams, bCleanupStack = true) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return false
- }
- validParams := 0
- i := aParams.MaxIndex()
- dwLen := i * 5 + 5 + 1
- if(bCleanupStack)
- dwLen += 3
- VarSetCapacity(injectData, i * 5 + 5 + 3 + 1, 0)
- i_ := 1
- while(i > 0) {
- if(aParams[i][1] != "") {
- dwMemAddress := 0x0
- if(aParams[i][1] == "p") {
- dwMemAddress := aParams[i][2]
- } else if(aParams[i][1] == "s") {
- if(i_>3)
- return false
- dwMemAddress := pParam%i_%
- writeString(hProcess, dwMemAddress, aParams[i][2])
- if(ErrorLevel)
- return false
- i_ += 1
- } else if(aParams[i][1] == "i") {
- dwMemAddress := aParams[i][2]
- } else {
- return false
- }
- NumPut(0x68, injectData, validParams * 5, "UChar")
- NumPut(dwMemAddress, injectData, validParams * 5 + 1, "UInt")
- validParams += 1
- }
- i -= 1
- }
- offset := dwFunc - ( pInjectFunc + validParams * 5 + 5 )
- NumPut(0xE8, injectData, validParams * 5, "UChar")
- NumPut(offset, injectData, validParams * 5 + 1, "Int")
- if(bCleanupStack) {
- NumPut(0xC483, injectData, validParams * 5 + 5, "UShort")
- NumPut(validParams*4, injectData, validParams * 5 + 7, "UChar")
- NumPut(0xC3, injectData, validParams * 5 + 8, "UChar")
- } else {
- NumPut(0xC3, injectData, validParams * 5 + 5, "UChar")
- }
- writeRaw(hGTA, pInjectFunc, &injectData, dwLen)
- if(ErrorLevel)
- return false
- hThread := createRemoteThread(hGTA, 0, 0, pInjectFunc, 0, 0, 0)
- if(ErrorLevel)
- return false
- waitForSingleObject(hThread, 0xFFFFFFFF)
- closeProcess(hThread)
- return true
- }
- virtualAllocEx(hProcess, dwSize, flAllocationType, flProtect) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwRet := DllCall( "VirtualAllocEx"
- , "UInt", hProcess
- , "UInt", 0
- , "UInt", dwSize
- , "UInt", flAllocationType
- , "UInt", flProtect
- , "UInt")
- if(dwRet == 0) {
- ErrorLEvel := ERROR_ALLOC_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return dwRet
- }
- virtualFreeEx(hProcess, lpAddress, dwSize, dwFreeType) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwRet := DllCall( "VirtualFreeEx"
- , "UInt", hProcess
- , "UInt", lpAddress
- , "UInt", dwSize
- , "UInt", dwFreeType
- , "UInt")
- if(dwRet == 0) {
- ErrorLEvel := ERROR_FREE_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return dwRet
- }
- createRemoteThread(hProcess, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags, lpThreadId) {
- if(!hProcess) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwRet := DllCall( "CreateRemoteThread"
- , "UInt", hProcess
- , "UInt", lpThreadAttributes
- , "UInt", dwStackSize
- , "UInt", lpStartAddress
- , "UInt", lpParameter
- , "UInt", dwCreationFlags
- , "UInt", lpThreadId
- , "UInt")
- if(dwRet == 0) {
- ErrorLEvel := ERROR_ALLOC_MEMORY
- return 0
- }
- ErrorLevel := ERROR_OK
- return dwRet
- }
- waitForSingleObject(hThread, dwMilliseconds) {
- if(!hThread) {
- ErrorLevel := ERROR_INVALID_HANDLE
- return 0
- }
- dwRet := DllCall( "WaitForSingleObject"
- , "UInt", hThread
- , "UInt", dwMilliseconds
- , "UInt")
- if(dwRet == 0xFFFFFFFF) {
- ErrorLEvel := ERROR_WAIT_FOR_OBJECT
- return 0
- }
- ErrorLevel := ERROR_OK
- return dwRet
- }
- __ansiToUnicode(sString, nLen = 0) {
- If !nLen
- {
- nLen := DllCall("MultiByteToWideChar"
- , "Uint", 0
- , "Uint", 0
- , "Uint", &sString
- , "int", -1
- , "Uint", 0
- , "int", 0)
- }
- VarSetCapacity(wString, nLen * 2)
- DllCall("MultiByteToWideChar"
- , "Uint", 0
- , "Uint", 0
- , "Uint", &sString
- , "int", -1
- , "Uint", &wString
- , "int", nLen)
- return wString
- }
- __unicodeToAnsi(wString, nLen = 0) {
- pString := wString + 1 > 65536 ? wString : &wString
- If !nLen
- {
- nLen := DllCall("WideCharToMultiByte"
- , "Uint", 0
- , "Uint", 0
- , "Uint", pString
- , "int", -1
- , "Uint", 0
- , "int", 0
- , "Uint", 0
- , "Uint", 0)
- }
- VarSetCapacity(sString, nLen)
- DllCall("WideCharToMultiByte"
- , "Uint", 0
- , "Uint", 0
- , "Uint", pString
- , "int", -1
- , "str", sString
- , "int", nLen
- , "Uint", 0
- , "Uint", 0)
- return sString
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement