Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Include MaxAPO.ahk
- #ifWinActive, GTA:SA:MP
- #SingleInstance, force
- #Persistent
- #UseHook
- #NoEnv
- global username := GetUsername()
- if(username == "")
- {
- RegRead, username, HKCU, Software\SAMP, PlayerName
- }
- url = http://wheelman.jameschans.de/keybinder/check.php?name=%username%
- UrlDownloadtoVar(url, result)
- if(result == 0 || result == -1 || result == -2)
- {
- MsgBox, 16, Fehler, Du stehst nicht auf der Whitelist`, bitte kontaktiere die Leaderschaft, 4
- ExitApp
- } else {
- VarSetCapacity(url, -1)
- VarSetCapacity(result, -1)
- }
- Settimer, hacken, On
- SetTimer, Grabben, On
- SetTimer, accept, On
- gui, font, s10, Verdana
- Gui, Add, Text, x5 y5 w260 h160 , Für die die den Wheelman Keybinder nicht benutzen wollen.`nEin Zusatz Programm das Eure Daten ins Wheelman CP einträgt.
- Gui, Show, w261 h135, Wheelman Zusatz
- return
- hacken: ; Nach XTasten Timer
- GetChatLine(0, line1)
- GetChatLine(1, line2)
- GetChatLine(2, line3)
- VarSetCapacity(urli, ERROR)
- VarSetCapacity(money_, ERROR)
- VarSetCapacity(money_1, ERROR)
- VarSetCapacity(money_2, ERROR)
- VarSetCapacity(resultm, ERROR)
- VarSetCapacity(resultm_1, ERROR)
- VarSetCapacity(resultm_2, ERROR)
- VarSetCapacity(result, ERROR)
- VarSetCapacity(result_, ERROR)
- VarSetCapacity(result_1, ERROR)
- VarSetCapacity(result_2, ERROR)
- VarSetCapacity(line3name, ERROR)
- VarSetCapacity(line2name, ERROR)
- VarSetCapacity(line1name, ERROR)
- if(InStr(line1, "hat einen Eintrag entfernt. Verbleibend:") && !InStr(line2, "hat einen Eintrag entfernt. Verbleibend:") && !InStr(line3, "hat einen Eintrag entfernt. Verbleibend:"))
- {
- RegExMatch(line1, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", money_)
- line1name := money_1
- if(line1name == line2name || line1name == line3name || line1name == "")
- return
- urli = http://wheelman.jameschans.de/keybinder/einnahme.php?name=%username%&einnahme=%money_2%
- UrlDownloadToVar(urli, resultm)
- StringSplit, resultm_, resultm, ~
- url = http://wheelman.jameschans.de/keybinder/gehackt.php?name=%username%&anzahl=1
- UrlDownloadToVar(url, result)
- StringSplit, result_, result, ~
- if(result_1 == 11 && resultm_1 == 1 || result_1 == 1 && resultm_1 == 1)
- {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Du hast bereits " result_2 " Wanteds gehackt und bereits " resultm_2 "$ verdient.")
- Sleep 1000
- } else {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Datenbankfehler. Bitte an John_Reese oder Pietro_Miller wenden.")
- }
- }
- if(InStr(line2, "hat einen Eintrag entfernt. Verbleibend:") && !InStr(line3, "hat einen Eintrag entfernt. Verbleibend:"))
- {
- RegExMatch(line2, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", moneyl2_)
- RegExMatch(line1, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", moneyl1_)
- line2name := moneyl2_1
- line1name := moneyl1_1
- money_gesamt := 0
- if(line2name == line1name || line2name == line3name || line2name == "" || line1name == "")
- return
- money_gesamt += moneyl2_2
- money_gesamt += moneyl1_2
- urli = http://wheelman.jameschans.de/keybinder/einnahme.php?name=%username%&einnahme=%money_gesamt%
- UrlDownloadToVar(urli, resultm)
- StringSplit, resultm_, resultm, ~
- url = http://wheelman.jameschans.de/keybinder/gehackt.php?name=%username%&anzahl=2
- UrlDownloadToVar(url, result)
- StringSplit, result_, result, ~
- if(result_1 == 11 && resultm_1 == 1 || result_1 == 1 && resultm_1 == 1)
- {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Du hast bereits " result_2 " Wanteds gehackt und bereits " resultm_2 "$ verdient.")
- Sleep 1000
- } else {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Datenbankfehler. Bitte an John_Reese oder Pietro_Miller wenden.")
- }
- }
- if(InStr(line3, "hat einen Eintrag entfernt. Verbleibend:"))
- {
- RegExMatch(line3, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", moneyl3_)
- RegExMatch(line2, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", moneyl2_)
- RegExMatch(line1, "(.*) hat einen Eintrag entfernt. Verbleibend: .* \(\+(.+)\$\)", moneyl1_)
- line3name := moneyl3_1
- line2name := moneyl2_1
- line1name := moneyl1_1
- money_gesamt := 0
- if(line3name == line2name || line3name == line1name || line2name == "" || line1name == "" || line3name == "")
- return
- money_gesamt += moneyl3_2
- money_gesamt += moneyl2_2
- money_gesamt += moneyl1_2
- urli = http://wheelman.jameschans.de/keybinder/einnahme.php?name=%username%&einnahme=%money_gesamt%
- UrlDownloadToVar(urli, resultm)
- StringSplit, resultm_, resultm, ~
- url = http://wheelman.jameschans.de/keybinder/gehackt.php?name=%username%&anzahl=3
- UrlDownloadToVar(url, result)
- StringSplit, result_, result, ~
- if(result_1 == 11 && resultm_1 == 1 || result_1 == 1 && resultm_1 == 1)
- {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Du hast bereits " result_2 " Wanteds gehackt und bereits " resultm_2 "$ verdient.")
- Sleep 1000
- } else {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Datenbankfehler. Bitte an John_Reese oder Pietro_Miller wenden.")
- }
- }
- return
- accept:
- username := GetUsername()
- GetChatLine(0, line1)
- if(InStr(line1, "Du hast den Auftrag von") && InStr(line1, "angenommen"))
- {
- Settimer, accept, off
- url = http://wheelman.jameschans.de/keybinder/angen.php?name=%username%
- UrlDownloadToVar(url, result)
- StringSplit, result_, result, ~
- if(result_1 == 1)
- {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Du hast bereits " result_2 " Aufträge angenommen")
- } else {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Datenbankfehler. Bitte an John_Reese oder Pietro_Miller wenden.")
- }
- }
- return
- Grabben:
- zone := GetPlayerZone()
- City := GetPlayerCity()
- GetChatLine(1, line)
- if(InStr(line, "* Du versuchst") && InStr(line, "in dein Fahrzeug zu ziehen."))
- {
- SendChat("/f Ich Versuche den Kunden Rauszuziehen. Bitte PD blockieren. | Pos: "zone " "City "")
- Sleep 1000
- ShowGameText("~g~5 ~g~ sec", 1000, 3)
- GetChatLine(0, line1)
- if(InStr(line1, "Du bist nicht in der Nähe des Spielers"))
- {
- return
- }
- Sleep 1000
- ShowGameText("~g~4 ~g~ sec", 1000, 3)
- GetChatLine(0, line1)
- if(InStr(line1, "Du bist nicht in der Nähe des Spielers"))
- {
- return
- }
- Sleep 1000
- ShowGameText("~g~3 ~g~ sec", 1000, 3)
- GetChatLine(0, line1)
- if(InStr(line1, "Du bist nicht in der Nähe des Spielers"))
- {
- return
- }
- Sleep 1000
- ShowGameText("~g~2 ~g~ sec", 1000, 3)
- GetChatLine(0, line1)
- if(InStr(line1, "Du bist nicht in der Nähe des Spielers"))
- {
- return
- }
- Sleep 1000
- ShowGameText("~g~1 ~g~ sec", 1000, 3)
- }
- GetChatLine(0, line1)
- if(InStr(line1, "Du bist nicht in der Nähe des Spielers"))
- {
- return
- }
- ; Bei Grabben Timer nach der letzten }
- GetChatLine(0, line1)
- if(InStr(line1, "steigt in dein Fahrzeug ein und zahlt"))
- {
- RegExMatch(line1, "steigt in dein Fahrzeug ein und zahlt (.*)\$", money_)
- urli = http://wheelman.jameschans.de/keybinder/einnahme.php?name=%username%&einnahme=%money_1%
- UrlDownloadToVar(urli, resultm)
- StringSplit, resultm_, resultm, ~
- SendChat("/f Ich habe den Kunden Erfolgreich befreit. Danke!")
- url = http://wheelman.jameschans.de/keybinder/ausge.php?name=%username%
- VarSetCapacity(result, -)
- VarSetCapacity(result_1, -)
- URLDownloadToVar(url, result)
- StringSplit, result, result, ~
- if(result1 == 1 && resultm_1 == 1)
- {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Du hast schon " result2 " Personen befreit und " resultm_2 "$ verdient.")
- } else {
- AddChatMessage("|{01DF01}Wheelman{FFFFFF}| Datenbankfehler. Bitte an Pietro_Miller oder John_Reese wenden.")
- }
- }
- return
- UrlDownloadToVar(URL, ByRef Result, UserAgent = "", Proxy = "", ProxyBypass = "")
- {
- hModule := DllCall("LoadLibrary", "Str", "wininet.dll")
- AccessType := Proxy != "" ? 3 : 1
- io := DllCall("wininet\InternetOpenA", "Str", UserAgent, "UInt", AccessType, "Str", Proxy, "Str", ProxyBypass, "UInt", 0)
- iou := DllCall("wininet\InternetOpenUrlA", "UInt", io, "Str", url, "Str", "", "UInt", 0, "UInt", 0x80000000, "UInt", 0)
- If (ErrorLevel != 0 or iou = 0) {
- DllCall("FreeLibrary", "UInt", hModule)
- return 0
- }
- VarSetCapacity(buffer, 10240, 0)
- VarSetCapacity(BytesRead, 4, 0)
- Loop
- {
- irf := DllCall("wininet\InternetReadFile", "UInt", iou, "UInt", &buffer, "UInt", 10240, "UInt", &BytesRead)
- VarSetCapacity(buffer, -1)
- BytesRead_ = 0
- Loop, 4
- BytesRead_ += *(&BytesRead + A_Index-1) << 8*(A_Index-1)
- If (irf = 1 and BytesRead_ = 0)
- break
- Else
- Result .= SubStr(buffer, 1, BytesRead_)
- }
- DllCall("wininet\InternetCloseHandle", "UInt", iou)
- DllCall("wininet\InternetCloseHandle", "UInt", io)
- DllCall("FreeLibrary", "UInt", hModule)
- }
- GuiClose:
- DllCall("AnimateWindow", "UInt", GuiID, "Int", 1400 , "UInt", AW_SLIDE + AW_CENTER + AW_HIDE)
- FormatTime, LastLoginTime ,, dd.MM.yyyy HH:mm:ss
- ;MsgBox, 64, Wheelman Keybinder,Der Keybinder wird nun Beendet.
- Gui Destroy
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement