Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance, force
- #NoEnv
- #include overlay.ahk
- #include UDF.ahk
- 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
- }
- pfad = %A_MyDocuments%\GTA San Andreas User Files\Keybinder\optionen.txt
- pfad2 = %A_MyDocuments%\GTA San Andreas User Files\Keybinder
- ifnotexist %pfad%
- {
- FileCreateDir, %pfad2%
- iniwrite, 100, %pfad%, optionen, healx
- iniwrite, 100, %pfad%, optionen, healy
- iniwrite, 10, %pfad%, optionen, healsize
- iniwrite, 200, %pfad%, optionen, clockx
- iniwrite, 200, %pfad%, optionen, clocky
- iniwrite, 10, %pfad%, optionen, clocksize
- iniwrite, 300, %pfad%, optionen, zonex
- iniwrite, 300, %pfad%, optionen, zoney
- iniwrite, 10, %pfad%, optionen, zonesize
- iniwrite, 400, %pfad%, optionen, wantedx
- iniwrite, 400, %pfad%, optionen, wantedy
- iniwrite, 450, %pfad%, optionen, wanted2x
- iniwrite, 450, %pfad%, optionen, wanted2y
- iniwrite, 500, %pfad%, optionen, wanted3x
- iniwrite, 500, %pfad%, optionen, wanted3y
- iniwrite, 10, %pfad%, optionen, wantedsize
- MsgBox, Erstelle Ordner:`n`n'%pfad2%'`n`nErstelle Datei:`n`n`t'optionen.txt'`n`nPositionen wurden eingeschrieben.
- iniread, healx, %pfad%, optionen, healx
- iniread, healy, %pfad%, optionen, healy
- iniread, healsize, %pfad%, optionen, healsize
- iniread, clockx, %pfad%, optionen, clockx
- iniread, clocky, %pfad%, optionen, clocky
- iniread, clocksize, %pfad%, optionen, clocksize
- iniread, zonex, %pfad%, optionen, zonex
- iniread, zoney, %pfad%, optionen, zoney
- iniread, zonesize, %pfad%, optionen, zonesize
- iniread, wantedx, %pfad%, optionen, wantedx
- iniread, wantedy, %pfad%, optionen, wantedy
- iniread, wanted2x, %pfad%, optionen, wanted2x
- iniread, wanted2y, %pfad%, optionen, wanted2y
- iniread, wanted3x, %pfad%, optionen, wanted3x
- iniread, wanted3y, %pfad%, optionen, wanted3y
- iniread, wantedsize, %pfad%, optionen, wantedsize
- }
- else
- {
- iniread, healx, %pfad%, optionen, healx
- iniread, healy, %pfad%, optionen, healy
- iniread, healsize, %pfad%, optionen, healsize
- iniread, clockx, %pfad%, optionen, clockx
- iniread, clocky, %pfad%, optionen, clocky
- iniread, clocksize, %pfad%, optionen, clocksize
- iniread, zonex, %pfad%, optionen, zonex
- iniread, zoney, %pfad%, optionen, zoney
- iniread, zonesize, %pfad%, optionen, zonesize
- iniread, wantedx, %pfad%, optionen, wantedx
- iniread, wantedy, %pfad%, optionen, wantedy
- iniread, wanted2x, %pfad%, optionen, wanted2x
- iniread, wanted2y, %pfad%, optionen, wanted2y
- iniread, wanted3x, %pfad%, optionen, wanted3x
- iniread, wanted3y, %pfad%, optionen, wanted3y
- iniread, wantedsize, %pfad%, optionen, wantedsize
- }
- SizeVar := 10
- healtext := -1
- healsetpos := 0
- healsetsize := 0
- clocktext := -1
- clocksetpos := 0
- clocksetsize := 0
- zonetext := -1
- zonesetpos := 0
- zonesetsize := 0
- wantedtext := -1
- wanted2text := -1
- wanted3text := -1
- wantedsetpos := 0
- wantedsetsize := 0
- SetParam("use_window", "1")
- SetParam("window", "GTA:SA:MP")
- DestroyAllVisual()
- initZonesAndCities()
- Gui, Show, w200 h50, Keybinder
- SetTimer, Timer, 200
- SetTimer, FunctionTimer, 200
- SetTimer, HealTimer, 1000
- return
- GuiClose:
- SetTimer, Timer, Off
- if(healtext != -1)
- TextDestroy(healtext)
- if(clocktext != -1)
- TextDestroy(clocktext)
- if(zonetext != -1)
- TextDestroy(zonetext)
- if(wantedtext != -1)
- TextDestroy(wantedtext)
- if(wanted2text != -1)
- TextDestroy(wanted2text)
- if(wanted3text != -1)
- TextDestroy(wanted3text)
- ExitApp
- Timer:
- if(healsetpos == 1)
- {
- MouseGetPos, x, y
- TextSetPos(healtext, x, y)
- GetKeyState, Fertig, LButton
- if Fertig = D
- {
- KMSG("Heal Move Erfolgreich geaendert!")
- iniwrite, %x%, %pfad%, optionen, healx
- iniwrite, %y%, %pfad%, optionen, healy
- if(healtext != -1)
- TextDestroy(healtext)
- iniread, healx, %pfad%, optionen, healx
- iniread, healy, %pfad%, optionen, healy
- healtext :=-1
- healsetpos := 0
- return
- }
- return
- }
- if(healsetsize == 1)
- {
- GetKeyState, Plus, NumPadAdd
- GetKeyState, Minus, NumPadSub
- GetKeyState, Fertig, NumPadEnter
- if Plus = D
- {
- SizeVar++
- TextUpdate(healtext,Arial,SizeVar,false,false)
- }
- if Minus = D
- {
- SizeVar--
- TextUpdate(healtext,Arial,SizeVar,false,false)
- }
- if Fertig = D
- {
- KMSG("Heal Size Erfolgreich geaendert!")
- iniwrite, %SizeVar%, %pfad%, optionen, healsize
- SizeVar := 10
- if(healtext != -1)
- TextDestroy(healtext)
- iniread, healx, %pfad%, optionen, healx
- iniread, healy, %pfad%, optionen, healy
- iniread, healsize, %pfad%, optionen, healsize
- healtext :=-1
- healsetpos := 0
- healsetsize := 0
- }
- return
- }
- if(clocksetpos == 1)
- {
- MouseGetPos, x, y
- TextSetPos(clocktext, x, y)
- GetKeyState, Fertig, LButton
- if Fertig = D
- {
- KMSG("Clock Move Erfolgreich geaendert!")
- iniwrite, %x%, %pfad%, optionen, clockx
- iniwrite, %y%, %pfad%, optionen, clocky
- if(clocktext != -1)
- TextDestroy(clocktext)
- iniread, clockx, %pfad%, optionen, clockx
- iniread, clocky, %pfad%, optionen, clocky
- clocktext :=-1
- clocksetpos := 0
- return
- }
- return
- }
- if(clocksetsize == 1)
- {
- GetKeyState, Plus, NumPadAdd
- GetKeyState, Minus, NumPadSub
- GetKeyState, Fertig, NumPadEnter
- if Plus = D
- {
- SizeVar++
- TextUpdate(clocktext,Arial,SizeVar,false,false)
- }
- if Minus = D
- {
- SizeVar--
- TextUpdate(clocktext,Arial,SizeVar,false,false)
- }
- if Fertig = D
- {
- KMSG("Clock Size Erfolgreich geaendert!")
- iniwrite, %SizeVar%, %pfad%, optionen, clocksize
- SizeVar := 10
- if(clocktext != -1)
- TextDestroy(clocktext)
- iniread, clockx, %pfad%, optionen, clockx
- iniread, clocky, %pfad%, optionen, clocky
- iniread, clocksize, %pfad%, optionen, clocksize
- clocktext :=-1
- clocksetpos := 0
- clocksetsize := 0
- }
- return
- }
- if(zonesetpos == 1)
- {
- MouseGetPos, x, y
- TextSetPos(zonetext, x, y)
- GetKeyState, Fertig, LButton
- if Fertig = D
- {
- KMSG("Zone Move Erfolgreich geaendert!")
- iniwrite, %x%, %pfad%, optionen, zonex
- iniwrite, %y%, %pfad%, optionen, zoney
- if(zonetext != -1)
- TextDestroy(zonetext)
- iniread, zonex, %pfad%, optionen, zonex
- iniread, zoney, %pfad%, optionen, zoney
- zonetext :=-1
- zonesetpos := 0
- return
- }
- return
- }
- if(zonesetsize == 1)
- {
- GetKeyState, Plus, NumPadAdd
- GetKeyState, Minus, NumPadSub
- GetKeyState, Fertig, NumPadEnter
- if Plus = D
- {
- SizeVar++
- TextUpdate(zonetext,Arial,SizeVar,false,false)
- }
- if Minus = D
- {
- SizeVar--
- TextUpdate(zonetext,Arial,SizeVar,false,false)
- }
- if Fertig = D
- {
- KMSG("Zone Size Erfolgreich geaendert!")
- iniwrite, %SizeVar%, %pfad%, optionen, zonesize
- SizeVar := 10
- if(zonetext != -1)
- TextDestroy(zonetext)
- iniread, zonex, %pfad%, optionen, zonex
- iniread, zoney, %pfad%, optionen, zoney
- iniread, zonesize, %pfad%, optionen, zonesize
- zonetext :=-1
- zonesetpos := 0
- zonesetsize := 0
- }
- return
- }
- if(wantedsetpos == 1)
- {
- MouseGetPos, x, y
- TextSetPos(wantedtext, x, y)
- TextSetPos(wanted2text, x, y+15)
- TextSetPos(wanted3text, x, y+30)
- GetKeyState, Fertig, LButton
- if Fertig = D
- {
- KMSG("Wanted Move Erfolgreich geaendert!")
- iniwrite, %x%, %pfad%, optionen, wantedx
- iniwrite, %y%, %pfad%, optionen, wantedy
- iniwrite, %x%, %pfad%, optionen, wanted2x
- iniwrite, %y%, %pfad%, optionen, wanted2y
- iniwrite, %x%, %pfad%, optionen, wanted3x
- iniwrite, %y%, %pfad%, optionen, wanted3y
- if(wantedtext != -1)
- TextDestroy(wantedtext)
- if(wanted2text != -1)
- TextDestroy(wanted2text)
- if(wanted3text != -1)
- TextDestroy(wanted3text)
- iniread, wantedx, %pfad%, optionen, wantedx
- iniread, wantedy, %pfad%, optionen, wantedy
- iniread, wanted2x, %pfad%, optionen, wanted2x
- iniread, wanted2y, %pfad%, optionen, wanted2y
- iniread, wanted3x, %pfad%, optionen, wanted3x
- iniread, wanted3y, %pfad%, optionen, wanted3y
- wantedtext :=-1
- wanted2text :=-1
- wanted3text :=-1
- wantedsetpos := 0
- return
- }
- return
- }
- if(wantedsetsize == 1)
- {
- GetKeyState, Plus, NumPadAdd
- GetKeyState, Minus, NumPadSub
- GetKeyState, Fertig, NumPadEnter
- if Plus = D
- {
- SizeVar++
- TextUpdate(wantedtext,Arial,SizeVar,false,false)
- TextUpdate(wanted2text,Arial,SizeVar,false,false)
- TextUpdate(wanted3text,Arial,SizeVar,false,false)
- }
- if Minus = D
- {
- SizeVar--
- TextUpdate(wantedtext,Arial,SizeVar,false,false)
- TextUpdate(wanted2text,Arial,SizeVar,false,false)
- TextUpdate(wanted3text,Arial,SizeVar,false,false)
- }
- if Fertig = D
- {
- KMSG("wanted Size Erfolgreich geaendert!")
- iniwrite, %SizeVar%, %pfad%, optionen, wantedsize
- SizeVar := 10
- if(wantedtext != -1)
- TextDestroy(wantedtext)
- if(wanted2text != -1)
- TextDestroy(wanted2text)
- if(wanted3text != -1)
- TextDestroy(wanted3text)
- iniread, wantedx, %pfad%, optionen, wantedx
- iniread, wantedy, %pfad%, optionen, wantedy
- iniread, wanted2x, %pfad%, optionen, wanted2x
- iniread, wanted2y, %pfad%, optionen, wanted2y
- iniread, wanted3x, %pfad%, optionen, wanted3x
- iniread, wanted3y, %pfad%, optionen, wanted3y
- iniread, wantedsize, %pfad%, optionen, wantedsize
- wantedtext :=-1
- wanted2text :=-1
- wanted3text :=-1
- wantedsetpos := 0
- wantedsetsize := 0
- }
- return
- }
- if(healtext == -1)
- healtext := TextCreate("Arial", healsize, false, false, healx, healy, 0xFFFFFFFF, "100", true, true)
- TextSetShadow(healtext, false)
- if(healtext == -1)
- return
- if(clocktext == -1)
- clocktext := TextCreate("Arial", clocksize, false, false, clockx, clocky, 0xFFFFFFFF, "uhrzeit", true, true)
- TextSetShadow(clocktext, false)
- if(clocktext == -1)
- return
- if(zonetext == -1)
- zonetext := TextCreate("Arial", zonesize, false, false, zonex, zoney, 0xFFFFFFFF, "zone", true, true)
- TextSetShadow(zonetext, false)
- if(zonetext == -1)
- return
- if(wantedtext == -1)
- wantedtext := TextCreate("Arial", wantedsize, false, false, wantedx, wantedy, 0xFFFFFFFF, "wanted", true, true)
- TextSetShadow(wantedtext, false)
- if(wantedtext == -1)
- return
- if(wanted2text == -1)
- wanted2text := TextCreate("Arial", wantedsize, false, false, wanted2x, wanted2y+15, 0xFFFFFFFF, "wanted2", true, true)
- TextSetShadow(wanted2text, false)
- if(wanted2text == -1)
- return
- if(wanted3text == -1)
- wanted3text := TextCreate("Arial", wantedsize, false, false, wanted3x, wanted3y+30, 0xFFFFFFFF, "wanted3", true, true)
- TextSetShadow(wanted3text, false)
- if(wanted3text == -1)
- return
- HP := GetPlayerHealth()
- if(HP < 47)
- {
- HPFormat := "{FF2738}" . HP . " "
- }
- else
- {
- HPFormat := "{FFFFFF}" . HP . " "
- }
- StringTrimRight, HPFormat, HPFormat, 4
- FormatTime, zeit,%A_Now%,HH:mm:ss
- Formattime, datum,%A_now%,dd.MM.yyyy
- GetPlayerPos(X,Y,Z)
- zone := calculateZone(X,Y,Z)
- if(TextSetString(healtext, HPFormat) == 0 || TextSetString(clocktext, " " . zeit . " - " . datum . " ") == 0 || TextSetString(zonetext, "" . zone . "") == 0)
- {
- TextDestroy(healtext)
- healtext := -1
- TextDestroy(clocktext)
- clocktext := -1
- TextDestroy(zonetext)
- zonetext := -1
- }
- GetChatLine(1, chat1)
- if(InStr(chat1, "Du hast folgendes Verbrechen begangen"))
- {
- RegExMatch(chat1, "Du hast folgendes Verbrechen begangen: \[(.*)\], Zeuge: (.*)" ,WantedReport)
- }
- GetChatLine(0, chat2)
- if(InStr(chat2, " * Aktuelles Wantedlevel:"))
- {
- RegExMatch(chat2, " * Aktuelles Wantedlevel: (.*)" ,wlevel)
- }
- if(WantedReport1 == "")
- {
- WantedReport1 := "Keiner"
- }
- if(WantedReport2 == "")
- {
- WantedReport2 := "Keiner"
- }
- if(wlevel1 == "")
- {
- wlevel1 := "0"
- }
- if(TextSetString(wantedtext, "Wantedlvl: " wlevel1 "") == 0 || TextSetString(wanted2text, "Grund: " WantedReport1 "") == 0 || TextSetString(wanted3text, "Cop: " WantedReport2 "") == 0)
- {
- TextDestroy(wantedtext)
- wantedtext := -1
- TextDestroy(wanted2text)
- wanted2text := -1
- TextDestroy(wanted3text)
- wanted3text := -1
- }
- return
- FunctionTimer:
- {
- GetChatLine(0, chat)
- if(InStr(chat, "Connected. Joining the game..."))
- {
- KMSG("RGN - Daten werden synchronisiert ..")
- sleep 2500
- }
- if(InStr(chat, "Connected to"))
- {
- FormatTime, zeit,%A_Now%,HH:mm:ss
- FormatTime, tag,%A_Now%,dddd
- KMSG("Willkommen " . getUsername() . " - Es ist " . tag . " " . zeit . "")
- sleep 2500
- }
- if(InStr(chat, "/accept repair"))
- {
- SendChat("/accept repair")
- sleep 2500
- }
- if(InStr(chat, "/accept heal"))
- {
- SendChat("/accept heal")
- sleep 2500
- }
- if(InStr(chat, "/accept refill"))
- {
- SendChat("/accept refill")
- sleep 2500
- }
- if(InStr(chat, "/accept hotdog"))
- {
- SendChat("/accept hotdog")
- sleep 2500
- }
- if(InStr(chat, "/accept sex"))
- {
- SendChat("/accept sex")
- sleep 2500
- }
- ;Mats Point SF - /materials get 15
- if(IsPlayerInRangeOfPoint(-1114.3662,-1621.3125,76.3739, 1.5))
- {
- SendChat("/materials get 15")
- sleep 2500
- }
- ;Mats Point LV - /materials deliver
- if(IsPlayerInRangeOfPoint(2470.9712,1905.9412,9.8582, 1.5))
- {
- SendChat("/materials deliver")
- sleep 2500
- }
- ;Get Codes Point LV - /getcodes
- if(IsPlayerInRangeOfPoint(212.4337,1822.7865,6.4141, 1.5))
- {
- SendChat("/getcodes")
- sleep 2500
- }
- ;Decrypt Codes Point LV - /decrypt codes
- if(IsPlayerInRangeOfPoint(-2498.9258,315.9062,29.2062, 1.5))
- {
- SendChat("/decrypt codes")
- sleep 2500
- }
- ;Load Fish Point Bayside - /loadfish 500
- if(IsPlayerInRangeOfPoint(-2457.2534,2293.0833,4.9844, 6))
- {
- SendChat("/loadfish 500")
- sleep 2500
- GetChatLine(0, buychat1)
- GetChatLine(1, buychat2)
- if(InStr(buychat1, "[TRUCKER]: Du hast deinen"))
- {
- RegExMatch(buychat1, "U)\[TRUCKER\]: Du hast deinen Truck mit 500 Fischen für \$(.*) beladen. Truck Kapazität liegt bei 500/500.", buymoney)
- AddChatMessage("{FFC100}INFO:")
- AddChatMessage("{FFFFFF}Du hast dir Fische um {FF2738}" buymoney1 "${FFFFFF} gekauft.")
- kaufvar := buymoney1
- buymoney1 := 0
- sleep 500
- }
- else if(InStr(buychat2, "[TRUCKER]: Du hast deinen"))
- {
- RegExMatch(buychat2, "U)\[TRUCKER\]: Du hast deinen Truck mit 500 Fischen für \$(.*) beladen. Truck Kapazität liegt bei 500/500.", buymoney)
- AddChatMessage("{FFC100}INFO:")
- AddChatMessage("{FFFFFF}Du hast dir Fische um {FF2738}" buymoney1 "${FFFFFF} gekauft.")
- kaufvar := buymoney1
- buymoney1 := 0
- sleep 500
- }
- sleep 1000
- }
- ;Sell Fish Point Truckerdepot - /sellfish 500
- if(IsPlayerInRangeOfPoint(63.2327,-251.8377,1.5781, 7))
- {
- SendChat("/sellfish 500")
- sleep 2500
- GetChatLine(1, sellchat1)
- GetChatLine(2, sellchat2)
- if(InStr(sellchat1, "[TRUCKER]: Du hast 500"))
- {
- RegExMatch(sellchat1, "U)\[TRUCKER\]: Du hast 500 Fische ans Lager verkauft. Insgesamt \$(.*)\.", sellmoney)
- AddChatMessage("{FFC100}INFO:")
- AddChatMessage("{FFFFFF}Du hast dir Fische um {FF2738}" kaufvar "${FFFFFF} gekauft und fur {00FF38}" sellmoney1 "${FFFFFF} verkauft!")
- sellvar := sellmoney1
- sellmoney1 := 0
- winmoney := sellvar - kaufvar
- AddChatMessage("{FFFFFF}Dein Gewinn: {00FF38}" winmoney "${FFFFFF}.")
- gesamt += winmoney
- AddChatMessage("{FFFFFF}-------------------------------------------------------------------")
- AddChatMessage("{FFFFFF}Dein Tages Gewinn: {FFD200}" gesamt "${FFFFFF}.")
- winmoney := 0
- sleep 500
- }
- else if(InStr(sellchat2, "[TRUCKER]: Du hast 500"))
- {
- RegExMatch(sellchat2, "U)\[TRUCKER\]: Du hast 500 Fische ans Lager verkauft. Insgesamt \$(.*)\.", sellmoney)
- AddChatMessage("{FFC100}INFO:")
- AddChatMessage("{FFFFFF}Du hast dir Fische um {FF2738}" kaufvar "${FFFFFF} gekauft und fur {00FF38}" sellmoney1 "${FFFFFF} verkauft!")
- sellvar := sellmoney1
- sellmoney1 := 0
- winmoney := sellvar - kaufvar
- AddChatMessage("{FFFFFF}Dein Gewinn: {00FF38}" winmoney "${FFFFFF}.")
- gesamt += winmoney
- AddChatMessage("{FFFFFF}-------------------------------------------------------------------")
- AddChatMessage("{FFFFFF}Dein Tages Gewinn: {FFD200}" gesamt "${FFFFFF}.")
- winmoney := 0
- sleep 500
- }
- sleep 1000
- }
- }
- return
- HealTimer:
- heal := GetPlayerHealth()
- StringTrimRight, heal, heal, 3
- if (WinActive("GTA:SA:MP"))
- {
- if(heal < oldheal AND oldheal)
- {
- healvar1 := heal
- healvar2 := oldheal
- endvar := healvar1-healvar2
- if(endvar < -1)
- {
- KMSG("Du hast {FF2738}" endvar "{FFFFFF} HP verloren.")
- }
- }
- else if(heal > oldheal AND oldheal)
- {
- healvar1 := heal
- healvar2 := oldheal
- endvar := healvar1-healvar2
- if(endvar > 1)
- {
- KMSG("Du hast {00FF38}+" endvar "{FFFFFF} HP bekommen.")
- }
- }
- }
- oldheal := heal
- return
- #IfWinActive, GTA:SA:MP
- Hotkey, Enter, Off
- Hotkey, Escape, Off
- +T::
- ~t::
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- Hotkey, t, Off
- return
- ~NumpadEnter::
- ~Enter::
- Suspend Permit
- Suspend Off
- Hotkey, t, On
- Hotkey, Enter, Off
- Hotkey, Escape, Off
- return
- ~Escape::
- Suspend Permit
- Suspend Off
- Hotkey, t, On
- Hotkey, Enter, Off
- Hotkey, Escape, Off
- return
- ;Keybinds
- sendIfPossible(str)
- {
- if(isInChat())
- return
- SendChat(str)
- }
- ~NumPadadd::sendIfPossible("/stats")
- ~numpadsub::sendIfPossible("/time")
- ~^NumPad0::sendIfPossible("/carlock")
- ~!NumPad0::sendIfPossible("/lock")
- ~NumPad0::sendIfPossible("/engine")
- ~NumPad4::sendIfPossible("/lights")
- ~NumPad7::
- sendIfPossible("/getdrugs 10")
- sendIfPossible("/getdrugs 10")
- sendIfPossible("/getdrugs 10")
- sendIfPossible("/getdrugs 10")
- return
- numpad5::
- sendinput t/number{space}
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- return
- n::
- sendinput t/notafk{space}
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- return
- numpad6::
- sendinput t/id{space}
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- return
- ~x::sendIfPossible("/exit")
- ~y::sendIfPossible("/enter")
- !Numpad7::SendChat("/cargo")
- !Numpad8::SendChat("/opencargo")
- ^Numpad9::SendChat("/breakcargo")
- !2::
- Suspend On
- SendInput t/get fuel{enter}
- Sleep 200
- SendInput t/fill{enter}
- Suspend Off
- return
- :?:/find::
- Suspend Permit
- SendInput /find{space}
- Input,fID,V I M,{enter}
- KMSG("Find Timer {00FF38}gestartet!")
- loop
- {
- SendChat("/find " fID)
- KeyWait, < , D T7.5
- If !ErrorLevel
- {
- KMSG("Find Timer {FF2738}gestoppt!")
- return
- }
- }
- return
- :?:/showpos::
- Suspend Permit
- SendInput /showpos{space}
- Input,zID,V I M,{enter}
- KMSG("ShowPos-Find Timer {00FF38}gestartet!")
- loop
- {
- SendChat("/showpos " zID)
- KeyWait, < , D T7.5
- If !ErrorLevel
- {
- KMSG("ShowPos-Find Timer {FF2738}gestoppt!")
- return
- }
- }
- return
- :?:/setwantedlevel::
- Suspend Permit
- SendInput /id{space}
- Input,wlevel1,V I M,{enter}
- KMSG("Du hast dein WantedLevel auf " wlevel1 " gestellt!")
- wlevel1 := wlevel1
- return
- !NumPad9::SendInput t{up}{enter}
- :?:/ff::
- Suspend Permit
- SendInput /fastfood{space}{space}1{left}{left}
- return
- :?:/eatd::
- Suspend Permit
- SendInput /eatdonut{enter}
- return
- :?:/swh::
- suspend permit
- SendInput {enter}
- SendChat("/service wheelman")
- return
- :?:/aheal::
- Suspend Permit
- SendInput /accept heal{enter}
- return
- :?:/ahd::
- Suspend Permit
- SendInput /accept hotdog{enter}
- return
- :?:/arep::
- Suspend Permit
- SendInput /accept repair{enter}
- return
- :?:/aref::
- Suspend Permit
- SendInput /accept refill{enter}
- return
- :?:/asex::
- Suspend Permit
- SendInput /accept sex{enter}
- return
- :?:/re::
- suspend permit
- smsName := getUsername()
- Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- {
- If InStr(A_LoopReadLine, "Sender:")
- {
- RegExMatch(A_LoopReadLine, "SMS: (.*), Sender: (.*) \((.*)\)" ,sms)
- }
- }
- if(sms2 != smsName)
- {
- SendInput /sms %sms3%{space}
- }
- else
- {
- sendinput, {enter}
- }
- return
- ;Overlay
- :?:/khelp::
- suspend permit
- SendInput {enter}
- KMSG("Hier siehst du nun alle Keybinder funktionen!")
- AddChatMessage("{FF5224}Overlay:")
- AddChatMessage("{FFFFFF} - Heal kannst du mit /healpos oder mit /healsize (Position o. Schriftgroesse) aendern!")
- AddChatMessage("{FFFFFF} - Clock kannst du mit /clockpos oder mit /clocksize (Position o. Schriftgroesse) aendern!")
- AddChatMessage("{FFFFFF} - Zone kannst du mit /zonepos oder mit /zonesize (Position o. Schriftgroesse) aendern!")
- AddChatMessage("{FFFFFF} - Wanted kannst du mit /wantedpos oder mit /wantedsize (Position o. Schriftgroesse) aendern!")
- return
- :?:/healpos::
- suspend permit
- SendInput {enter}
- if(healsetpos == 1)
- {
- KMSG("{FF9700}Heal Move ist schon aktiviert!")
- return
- }
- if(healsetpos == 0)
- {
- KMSG("Heal Move aktiviert!")
- healsetpos := 1
- return
- }
- return
- :?:/healsize::
- suspend permit
- SendInput {enter}
- if(healsetsize == 1)
- {
- KMSG("{FF9700}Heal Size ist schon aktiviert!")
- return
- }
- if(healsetsize == 0)
- {
- KMSG("Heal Size aktiviert!")
- healsetsize := 1
- return
- }
- return
- :?:/clockpos::
- suspend permit
- SendInput {enter}
- if(clocksetpos == 1)
- {
- KMSG("{FF9700}Clock Move ist schon aktiviert!")
- return
- }
- if(clocksetpos == 0)
- {
- KMSG("Clock Move aktiviert!")
- clocksetpos := 1
- return
- }
- return
- :?:/clocksize::
- suspend permit
- SendInput {enter}
- if(clocksetsize == 1)
- {
- KMSG("{FF9700}Clock Size ist schon aktiviert!")
- return
- }
- if(clocksetsize == 0)
- {
- KMSG("Clock Size aktiviert!")
- clocksetsize := 1
- return
- }
- return
- :?:/zonepos::
- suspend permit
- SendInput {enter}
- if(zonesetpos == 1)
- {
- KMSG("{FF9700}Zone Move ist schon aktiviert!")
- return
- }
- if(zonesetpos == 0)
- {
- KMSG("Zone Move aktiviert!")
- zonesetpos := 1
- return
- }
- return
- :?:/zonesize::
- suspend permit
- SendInput {enter}
- if(zonesetsize == 1)
- {
- KMSG("{FF9700}Zone Size ist schon aktiviert!")
- return
- }
- if(zonesetsize == 0)
- {
- KMSG("Zone Size aktiviert!")
- zonesetsize := 1
- return
- }
- return
- :?:/wantedpos::
- suspend permit
- SendInput {enter}
- if(wantedsetpos == 1)
- {
- KMSG("{FF9700}Wanted Move ist schon aktiviert!")
- return
- }
- if(wantedsetpos == 0)
- {
- KMSG("Wanted Move aktiviert!")
- wantedsetpos := 1
- return
- }
- return
- :?:/wantedsize::
- suspend permit
- SendInput {enter}
- if(wantedsetsize == 1)
- {
- KMSG("{FF9700}Wanted Size ist schon aktiviert!")
- return
- }
- if(wantedsetsize == 0)
- {
- KMSG("Wanted Size aktiviert!")
- wantedsetsize := 1
- return
- }
- return
- KMSG(message)
- {
- AddChatMessage("{8D8DFF}Keybinder: {FFFFFF}" message "")
- }
Advertisement
Add Comment
Please, Sign In to add comment