Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetTimer, SekundenTimer, 50
- ProgrammPfad = %A_MyDocuments%\Killzaehler
- IniPfad = %ProgrammPfad%\Optionen.ini
- Ifnotexist %ProgrammPfad%
- {
- FileCreateDir, %ProgrammPfad%
- iniwrite, 0, %IniPfad%, Killzaehler, GWKills
- iniwrite, 0, %IniPfad%, Killzaehler, GWZoneKills
- iniwrite, 0, %IniPfad%, Killzaehler, Deaths
- MsgBox, 0, Keybinder: Ordner + Ini erstellen ... , Ordner KillsDeathsGangzones und Daten.ini wurden erstellt!`n`nPfad: %IniPfad%
- }
- #IfWinActive GTA:SA:MP
- #SingleInstance force
- #NoEnv
- #include API.ahk
- 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
- ;SendInput {Enter}
- 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
- Pause::
- Suspend
- return
- ;-------------------;
- ;Ein Hand Befehle
- ;-------------------;
- !e::ShowGameText("~g~Gangwarkill", 2500, 3)
- ^e::ShowGameText("~r~Gangwarkill", 2500, 3)
- !q::ShowGameText("~g~Gangzonekill", 2500, 3)
- ^q::ShowGameText("~r~Gangzonekill", 2500, 3)
- NumPadSub::SendChat("/time")
- NumPadAdd::SendChat("/stats")
- NumPad0::SendChat("/engine")
- !NumPad0::SendChat("/lock")
- ^NumPad0::SendChat("/carlock")
- ^NumPad1::SendChat("/buygun deagle 250")
- ^NumPad2::SendChat("/buygun shotgun 50")
- !NumPad1::SendChat("/savebox create")
- !NumPad2::SendChat("/savebox remove")
- !NumPad3::SendChat("/gtake ganja 12")
- !^NumPad3::SendChat("/use ganja")
- ^NumPad3::
- SendChat("/buygun m4 350")
- SendChat("/buygun rifle 50")
- return
- NumPad4::SendChat("/lights")
- NumPad5::
- SendInput t/number{space}
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- return
- NumPad6::
- SendInput t/id{space}
- Suspend On
- Hotkey, Enter, On
- Hotkey, Escape, On
- return
- !NumPad9::SendInput t{up}{enter}
- !2::
- Suspend On
- SendInput t/get fuel{enter}
- Sleep 200
- SendInput t/fill{enter}
- Suspend Off
- return
- m::SendChat("/members")
- ^z::SendChat("/zoll")
- y::SendChat("/enter")
- x::SendChat("/exit")
- ^i::SendChat("/kidnap " Partner " " Opfer " 0")
- ^o::SendChat("/kidnap " Partner " " Opfer " 1")
- ^p::SendChat("/f Opfer: " Opfer " Partner: " Partner " ")
- ;-------------------;
- ;Text-Befehle
- ;-------------------;
- :?:/loadtestdll::
- suspend permit
- ret := DllCall("Test.dll\Load")
- if(!ret)
- AddChatMessage(0xFFFFFF, "{FF0000}Fehler{FFFFFF} beim Laden der DLL")
- SendInput {enter}
- if(ret)
- AddChatMessage(0xFFFFFF, "{FFA300}Test.dll{FFFFFF} wird {FF0000}injected{FFFFFF} ...")
- SendInput {enter}
- sleep 1000
- AddChatMessage(0xFFFFFF, "{FFA300}Test.dll{FFFFFF} erfolgreich {00E500}geladen{FFFFFF}!")
- return
- :?:/sektimeroff::
- suspend permit
- SendInput {enter}
- SetTimer, SekundenTimer, off
- AddChatMessage(0xFFFFFF, "SekundenTimer: {FF0000}Deaktiviert{FFFFFF}!")
- return
- :?:/sektimeron::
- suspend permit
- SendInput {enter}
- SetTimer, SekundenTimer, 50
- AddChatMessage(0xFFFFFF, "SekundenTimer: {00E500}Aktiviert{FFFFFF}!")
- return
- :?:/reload::
- suspend permit
- SendInput {enter}
- AddChatMessage(0xFFFFFF, "{FFA300}Keybinder{FFFFFF}: Neustart ...")
- sleep 1000
- AddChatMessage(0xFFFFFF, "{FFA300}Keybinder{FFFFFF}: Gestartet ...")
- reload
- return
- :?:/opfer::
- Suspend Permit
- SendInput /id{space}
- Input, Opfer, V I M,{enter}
- return
- :?:/partner::
- Suspend Permit
- SendInput /id{space}
- Input, Partner, V I M,{enter}
- return
- :?:/hp::
- Suspend Permit
- SendChat("/b " GetPlayerHealth() " HP.")
- SendInput {enter}
- return
- :?:/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
- :?:/ah::
- 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
- :?:/wanteds::
- Suspend Permit
- SendInput {enter}
- wanteds := GetPlayerWanteds()
- if(wanted > 6)
- {
- sterne := wanteds + 1
- SendChat("/f Aktuelles Wantedlevel: " sterne " ")
- SendChat("/b Aktuelles Wantedlevel: " sterne " ")
- }
- else if(wanted <= 6)
- {
- SendChat("/f Aktuelles Wantedlevel: " wanteds " ")
- SendChat("/b Aktuelles Wantedlevel: " wanteds " ")
- }
- return
- :?:/setgwkills::
- Suspend Permit
- Input GWKills,V I M,{enter}
- Iniwrite, %GWKills%, %IniPfad%, Killzaehler, GWKills
- SendInput {enter}
- IniRead, GWKills, %IniPfad%, Killzaehler, GWKills
- SendChat("/f Gangwarkills auf " GWKills " gesetzt.")
- return
- :?:/setgzkills::
- Suspend Permit
- Input GWZoneKills,V I M,{enter}
- Iniwrite, %GWZoneKills%, %IniPfad%, Killzaehler, GWZoneKills
- SendInput {enter}
- IniRead, GWZoneKills, %IniPfad%, Killzaehler, GWZoneKills
- SendChat("/f Gangzonekills auf " GWZoneKills " gesetzt.")
- return
- :?:/setdeaths::
- Suspend Permit
- Input Deaths,V I M,{enter}
- Iniwrite, %Deaths%, %IniPfad%, Killzaehler, Deaths
- SendInput {enter}
- IniRead, Deaths, %IniPfad%, Killzaehler, Deaths
- SendChat("/f Tode auf " Deaths " gesetzt.")
- return
- :?:/übersicht::
- Suspend Permit
- SendInput {enter}
- IniRead, Deaths, %IniPfad%, Killzaehler, Deaths
- IniRead, GWKills, %IniPfad%, Killzaehler, GWKills
- IniRead, GWZoneKills, %IniPfad%, Killzaehler, GWZoneKills
- SendChat("/f Übersicht der Stats: Tode: " Deaths " - Gangwarkills: " GWKills " - Gangzonekills: " GWZoneKills ".")
- return
- :?:/re::
- suspend permit
- GetPlayerName(smsName)
- 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
- ;-------------------;
- ;Timer
- ;-------------------;
- SekundenTimer:
- IfWinActive GTA:SA:MP
- {
- IniRead, GWKills, %IniPfad%, Killzaehler, GWKills
- IniRead, GWZoneKills, %IniPfad%, Killzaehler, GWZoneKills
- IniRead, Deaths, %IniPfad%, Killzaehler, Deaths
- Loop, read,%A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- {
- last_line:=A_LoopReadLine
- }
- IfInString,last_line, ~r~Gangwarkill
- {
- GetCityName(city)
- Deaths = %Deaths%
- Deaths++
- Iniwrite, %Deaths%, %IniPfad%, Killzaehler, Deaths
- SendChat("/f Bin Down! Nr.: " Deaths " - (Gangwarkill) Ort: " city " ")
- FileAppend, beend, %A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- }
- IfInString,last_line, ~g~Gangwarkill
- {
- GWKills = %GWKills%
- GWKills++
- Iniwrite, %GWKills%, %IniPfad%, Killzaehler, GWKills
- SendChat("/f » Gangwarkill Nr.: " GWKills " «")
- FileAppend, beend, %A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- }
- IfInString,last_line, ~g~Gangzonekill
- {
- GWZoneKills = %GWZoneKills%
- GWZoneKills++
- Iniwrite, %GWZoneKills%, %IniPfad%, Killzaehler, GWZoneKills
- SendChat("/f » GangzoneKill Nr.: " GWZoneKills " «")
- FileAppend, beend, %A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- }
- IfInString,last_line, ~r~Gangzonekill
- {
- Deaths = %Deaths%
- Deaths++
- Iniwrite, %Deaths%, %IniPfad%, Killzaehler, Deaths
- SendChat("/f Bin Down im Gebiet! Nr.: " Deaths " (GangzoneKill)")
- FileAppend, beend, %A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- }
- IfInString,last_line, ~r~CTF Punkt Eingenommen!
- {
- SendChat("/f Ich mach nun CTF. Andere Bobs für diesen Putzerjob findet ihr nicht.")
- FileAppend, beend, %A_MyDocuments%\GTA San Andreas User Files\SAMP\gangwars.txt
- }
- }
- return
- *~$SHIFT::
- Sleep 200
- Loop
- {
- GetKeyState, SpaceState, SHIFT, P
- If SpaceState = U
- break
- Sleep 1
- Send, {Blind}{SHIFT}
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement