Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; <COMPILER: v1.1.22.07>
- ; Sourcecode veröffentlichung nachdem Pokee der Meinung ist zu verbreiten das doch ein Virus drin wäre.
- ; Viel Spaß Finn
- #SingleInstance Force
- #IfWinActive, ahk_exe gta_sa.exe
- #MaxHotkeysPerInterval 900
- #NoEnv
- PATH_SAMP_API := PathCombine(A_ScriptDir, "bin/Open-SAMP-API.dll")
- hModule := DllCall("LoadLibrary", Str, PATH_SAMP_API)
- if(hModule == -1 || hModule == 0)
- {
- MsgBox, 48,, Die API konnte nicht gefunden werden. Sie wird gleich heruntergeladen.
- }
- Init_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "Init")
- SetParam_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "SetParam")
- GetGTACommandLine_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetGTACommandLine")
- IsMenuOpen_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsMenuOpen")
- ScreenToWorld_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ScreenToWorld")
- WorldToScreen_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "WorldToScreen")
- GetPlayerCPed_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerCPed")
- GetPlayerHealth_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerHealth")
- GetPlayerArmor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerArmor")
- GetPlayerMoney_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerMoney")
- GetPlayerSkinID_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerSkinID")
- GetPlayerInterior_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerInterior")
- IsPlayerInAnyVehicle_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerInAnyVehicle")
- IsPlayerDriver_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerDriver")
- IsPlayerPassenger_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerPassenger")
- IsPlayerInInterior_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerInInterior")
- GetPlayerX_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerX")
- GetPlayerY_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerY")
- GetPlayerZ_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerZ")
- GetPlayerPosition_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerPosition")
- IsPlayerInRange2D_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerInRange2D")
- IsPlayerInRange3D_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsPlayerInRange3D")
- GetCityName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetCityName")
- GetZoneName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetZoneName")
- TextCreate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextCreate")
- TextDestroy_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextDestroy")
- TextSetShadow_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextSetShadow")
- TextSetShown_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextSetShown")
- TextSetColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextSetColor")
- TextSetPos_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextSetPos")
- TextSetString_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextSetString")
- TextUpdate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "TextUpdate")
- BoxCreate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxCreate")
- BoxDestroy_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxDestroy")
- BoxSetShown_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetShown")
- BoxSetBorder_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetBorder")
- BoxSetBorderColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetBorderColor")
- BoxSetColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetColor")
- BoxSetHeight_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetHeight")
- BoxSetPos_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetPos")
- BoxSetWidth_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "BoxSetWidth")
- LineCreate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineCreate")
- LineDestroy_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineDestroy")
- LineSetShown_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineSetShown")
- LineSetColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineSetColor")
- LineSetWidth_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineSetWidth")
- LineSetPos_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "LineSetPos")
- ImageCreate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageCreate")
- ImageDestroy_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageDestroy")
- ImageSetShown_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageSetShown")
- ImageSetAlign_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageSetAlign")
- ImageSetPos_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageSetPos")
- ImageSetRotation_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ImageSetRotation")
- DestroyAllVisual_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "DestroyAllVisual")
- ShowAllVisual_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ShowAllVisual")
- HideAllVisual_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "HideAllVisual")
- GetFrameRate_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetFrameRate")
- GetScreenSpecs_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetScreenSpecs")
- SetCalculationRatio_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "SetCalculationRatio")
- SetOverlayPriority_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "SetOverlayPriority")
- SetOverlayCalculationEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "SetOverlayCalculationEnabled")
- GetServerIP_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetServerIP")
- GetServerPort_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetServerPort")
- SendChat_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "SendChat")
- ShowGameText_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ShowGameText")
- AddChatMessage_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "AddChatMessage")
- ShowDialog_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "ShowDialog")
- GetPlayerNameByID_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerNameByID")
- GetPlayerIDByName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerIDByName")
- GetPlayerName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerName")
- GetPlayerId_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerId")
- IsChatOpen_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsChatOpen")
- IsDialogOpen_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsDialogOpen")
- GetVehiclePointer_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehiclePointer")
- GetVehicleSpeed_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleSpeed")
- GetVehicleHealth_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleHealth")
- GetVehicleModelId_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleModelId")
- GetVehicleModelName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleModelName")
- GetVehicleModelNameById_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleModelNameById")
- GetVehicleType_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleType")
- GetVehicleFreeSeats_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleFreeSeats")
- GetVehicleFirstColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleFirstColor")
- GetVehicleSecondColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleSecondColor")
- GetVehicleColor_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetVehicleColor")
- IsVehicleSeatUsed_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleSeatUsed")
- IsVehicleLocked_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleLocked")
- IsVehicleHornEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleHornEnabled")
- IsVehicleSirenEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleSirenEnabled")
- IsVehicleAlternateSirenEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleAlternateSirenEnabled")
- IsVehicleEngineEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleEngineEnabled")
- IsVehicleLightEnabled_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleLightEnabled")
- IsVehicleCar_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleCar")
- IsVehiclePlane_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehiclePlane")
- IsVehicleBoat_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleBoat")
- IsVehicleTrain_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleTrain")
- IsVehicleBike_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "IsVehicleBike")
- HasWeaponIDClip_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "HasWeaponIDClip")
- GetPlayerWeaponID_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponID")
- GetPlayerWeaponType_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponType")
- GetPlayerWeaponSlot_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponSlot")
- GetPlayerWeaponName_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponName")
- GetPlayerWeaponClip_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponClip")
- GetPlayerWeaponTotalClip_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponTotalClip")
- GetPlayerWeaponState_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponState")
- GetPlayerWeaponAmmo_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponAmmo")
- GetPlayerWeaponAmmoInClip_func := DllCall("GetProcAddress", "UInt", hModule, "Str", "GetPlayerWeaponAmmoInClip")
- Init()
- {
- global Init_func
- return DllCall(Init_func)
- }
- SetParam(_szParamName, _szParamValue)
- {
- global SetParam_func
- return DllCall(SetParam_func, "Str", _szParamName, "Str", _szParamValue)
- }
- GetGTACommandLine(ByRef line, max_len)
- {
- global GetGTACommandLine_func
- VarSetCapacity(line, max_len, 0)
- return DllCall(GetGTACommandLine_func, "StrP", line, "Int", max_len)
- }
- IsMenuOpen()
- {
- global IsMenuOpen_func
- return DllCall(IsMenuOpen_func)
- }
- ScreenToWorld(x, y, ByRef worldX, ByRef worldY, ByRef worldZ)
- {
- global ScreenToWorld_func
- return DllCall(ScreenToWorld_func, "Float", x, "Float", y, "FloatP", worldX, "FloatP", worldY, "FloatP", worldZ)
- }
- WorldToScreen(x, y, z, ByRef screenX, ByRef screenY)
- {
- global WorldToScreen_func
- return DllCall(WorldToScreen_func, "Float", x, "Float", y, "Float", z, "FloatP", screenX, "FloatP", screenY)
- }
- GetPlayerCPed()
- {
- global GetPlayerCPed_func
- return DllCall(GetPlayerCPed_func)
- }
- GetPlayerHealth()
- {
- global GetPlayerHealth_func
- return DllCall(GetPlayerHealth_func)
- }
- GetPlayerArmor()
- {
- global GetPlayerArmor_func
- return DllCall(GetPlayerArmor_func)
- }
- GetPlayerMoney()
- {
- global GetPlayerMoney_func
- return DllCall(GetPlayerMoney_func)
- }
- GetPlayerSkinID()
- {
- global GetPlayerSkinID_func
- return DllCall(GetPlayerSkinID_func)
- }
- GetPlayerInterior()
- {
- global GetPlayerInterior_func
- return DllCall(GetPlayerInterior_func)
- }
- IsPlayerInAnyVehicle()
- {
- global IsPlayerInAnyVehicle_func
- return DllCall(IsPlayerInAnyVehicle_func)
- }
- IsPlayerDriver()
- {
- global IsPlayerDriver_func
- return DllCall(IsPlayerDriver_func)
- }
- IsPlayerPassenger()
- {
- global IsPlayerPassenger_func
- return DllCall(IsPlayerPassenger_func)
- }
- IsPlayerInInterior()
- {
- global IsPlayerInInterior_func
- return DllCall(IsPlayerInInterior_func)
- }
- GetPlayerX(ByRef posX)
- {
- global GetPlayerX_func
- return DllCall(GetPlayerX_func, "FloatP", posX)
- }
- GetPlayerY(ByRef posY)
- {
- global GetPlayerY_func
- return DllCall(GetPlayerY_func, "FloatP", posY)
- }
- GetPlayerZ(ByRef posZ)
- {
- global GetPlayerZ_func
- return DllCall(GetPlayerZ_func, "FloatP", posZ)
- }
- GetPlayerPosition(ByRef posX, ByRef posY, ByRef posZ)
- {
- global GetPlayerPosition_func
- return DllCall(GetPlayerPosition_func, "FloatP", posX, "FloatP", posY, "FloatP", posZ)
- }
- IsPlayerInRange2D(posX, posY, radius)
- {
- global IsPlayerInRange2D_func
- return DllCall(IsPlayerInRange2D_func, "Float", posX, "Float", posY, "Float", radius)
- }
- IsPlayerInRange3D(posX, posY, posZ, radius)
- {
- global IsPlayerInRange3D_func
- return DllCall(IsPlayerInRange3D_func, "Float", posX, "Float", posY, "Float", posZ, "Float", radius)
- }
- GetCityName(ByRef cityName, max_len)
- {
- global GetCityName_func
- VarSetCapacity(cityName, max_len, 0)
- return DllCall(GetCityName_func, "StrP", cityName, "Int", max_len)
- }
- GetZoneName(ByRef zoneName, max_len)
- {
- global GetZoneName_func
- VarSetCapacity(zoneName, max_len, 0)
- return DllCall(GetZoneName_func, "StrP", zoneName, "Int", max_len)
- }
- TextCreate(Font, FontSize, bBold, bItalic, x, y, color, text, bShadow, bShow)
- {
- global TextCreate_func
- return DllCall(TextCreate_func, "Str", Font, "Int", FontSize, "UChar", bBold, "UChar", bItalic, "Int", x, "Int", y, "UInt", color, "Str", text, "UChar", bShadow, "UChar", bShow)
- }
- TextDestroy(ID)
- {
- global TextDestroy_func
- return DllCall(TextDestroy_func, "Int", ID)
- }
- TextSetShadow(id, b)
- {
- global TextSetShadow_func
- return DllCall(TextSetShadow_func, "Int", id, "UChar", b)
- }
- TextSetShown(id, b)
- {
- global TextSetShown_func
- return DllCall(TextSetShown_func, "Int", id, "UChar", b)
- }
- TextSetColor(id, color)
- {
- global TextSetColor_func
- return DllCall(TextSetColor_func, "Int", id, "UInt", color)
- }
- TextSetPos(id, x, y)
- {
- global TextSetPos_func
- return DllCall(TextSetPos_func, "Int", id, "Int", x, "Int", y)
- }
- TextSetString(id, str)
- {
- global TextSetString_func
- return DllCall(TextSetString_func, "Int", id, "Str", str)
- }
- TextUpdate(id, Font, FontSize, bBold, bItalic)
- {
- global TextUpdate_func
- return DllCall(TextUpdate_func, "Int", id, "Str", Font, "Int", FontSize, "UChar", bBold, "UChar", bItalic)
- }
- BoxCreate(x, y, w, h, dwColor, bShow)
- {
- global BoxCreate_func
- return DllCall(BoxCreate_func, "Int", x, "Int", y, "Int", w, "Int", h, "UInt", dwColor, "UChar", bShow)
- }
- BoxDestroy(id)
- {
- global BoxDestroy_func
- return DllCall(BoxDestroy_func, "Int", id)
- }
- BoxSetShown(id, bShown)
- {
- global BoxSetShown_func
- return DllCall(BoxSetShown_func, "Int", id, "UChar", bShown)
- }
- BoxSetBorder(id, height, bShown)
- {
- global BoxSetBorder_func
- return DllCall(BoxSetBorder_func, "Int", id, "Int", height, "UChar", bShown)
- }
- BoxSetBorderColor(id, dwColor)
- {
- global BoxSetBorderColor_func
- return DllCall(BoxSetBorderColor_func, "Int", id, "UInt", dwColor)
- }
- BoxSetColor(id, dwColor)
- {
- global BoxSetColor_func
- return DllCall(BoxSetColor_func, "Int", id, "UInt", dwColor)
- }
- BoxSetHeight(id, height)
- {
- global BoxSetHeight_func
- return DllCall(BoxSetHeight_func, "Int", id, "Int", height)
- }
- BoxSetPos(id, x, y)
- {
- global BoxSetPos_func
- return DllCall(BoxSetPos_func, "Int", id, "Int", x, "Int", y)
- }
- BoxSetWidth(id, width)
- {
- global BoxSetWidth_func
- return DllCall(BoxSetWidth_func, "Int", id, "Int", width)
- }
- LineCreate(x1, y1, x2, y2, width, color, bShow)
- {
- global LineCreate_func
- return DllCall(LineCreate_func, "Int", x1, "Int", y1, "Int", x2, "Int", y2, "Int", width, "UInt", color, "UChar", bShow)
- }
- LineDestroy(id)
- {
- global LineDestroy_func
- return DllCall(LineDestroy_func, "Int", id)
- }
- LineSetShown(id, bShown)
- {
- global LineSetShown_func
- return DllCall(LineSetShown_func, "Int", id, "UChar", bShown)
- }
- LineSetColor(id, color)
- {
- global LineSetColor_func
- return DllCall(LineSetColor_func, "Int", id, "UInt", color)
- }
- LineSetWidth(id, width)
- {
- global LineSetWidth_func
- return DllCall(LineSetWidth_func, "Int", id, "Int", width)
- }
- LineSetPos(id, x1, y1, x2, y2)
- {
- global LineSetPos_func
- return DllCall(LineSetPos_func, "Int", id, "Int", x1, "Int", y1, "Int", x2, "Int", y2)
- }
- ImageCreate(path, x, y, rotation, align, bShow)
- {
- global ImageCreate_func
- return DllCall(ImageCreate_func, "Str", path, "Int", x, "Int", y, "Int", rotation, "Int", align, "UChar", bShow)
- }
- ImageDestroy(id)
- {
- global ImageDestroy_func
- return DllCall(ImageDestroy_func, "Int", id)
- }
- ImageSetShown(id, bShown)
- {
- global ImageSetShown_func
- return DllCall(ImageSetShown_func, "Int", id, "UChar", bShown)
- }
- ImageSetAlign(id, align)
- {
- global ImageSetAlign_func
- return DllCall(ImageSetAlign_func, "Int", id, "Int", align)
- }
- ImageSetPos(id, x, y)
- {
- global ImageSetPos_func
- return DllCall(ImageSetPos_func, "Int", id, "Int", x, "Int", y)
- }
- ImageSetRotation(id, rotation)
- {
- global ImageSetRotation_func
- return DllCall(ImageSetRotation_func, "Int", id, "Int", rotation)
- }
- DestroyAllVisual()
- {
- global DestroyAllVisual_func
- return DllCall(DestroyAllVisual_func)
- }
- ShowAllVisual()
- {
- global ShowAllVisual_func
- return DllCall(ShowAllVisual_func)
- }
- HideAllVisual()
- {
- global HideAllVisual_func
- return DllCall(HideAllVisual_func)
- }
- GetFrameRate()
- {
- global GetFrameRate_func
- return DllCall(GetFrameRate_func)
- }
- GetScreenSpecs(ByRef width, ByRef height)
- {
- global GetScreenSpecs_func
- return DllCall(GetScreenSpecs_func, "IntP", width, "IntP", height)
- }
- SetCalculationRatio(width, height)
- {
- global SetCalculationRatio_func
- return DllCall(SetCalculationRatio_func, "Int", width, "Int", height)
- }
- SetOverlayPriority(id, priority)
- {
- global SetOverlayPriority_func
- return DllCall(SetOverlayPriority_func, "Int", id, "Int", priority)
- }
- SetOverlayCalculationEnabled(id, enabled)
- {
- global SetOverlayCalculationEnabled_func
- return DllCall(SetOverlayCalculationEnabled_func, "Int", id, "UChar", enabled)
- }
- GetServerIP(ByRef ip, max_len)
- {
- global GetServerIP_func
- VarSetCapacity(ip, max_len, 0)
- return DllCall(GetServerIP_func, "StrP", ip, "Int", max_len)
- }
- GetServerPort()
- {
- global GetServerPort_func
- return DllCall(GetServerPort_func)
- }
- SendChat(msg)
- {
- global SendChat_func
- return DllCall(SendChat_func, "Str", msg)
- }
- ShowGameText(msg, time, style)
- {
- global ShowGameText_func
- return DllCall(ShowGameText_func, "Str", msg, "Int", time, "Int", style)
- }
- AddChatMessage(msg)
- {
- global AddChatMessage_func
- return DllCall(AddChatMessage_func, "Str", msg)
- }
- ShowDialog(id, style, caption, text, button, button2)
- {
- global ShowDialog_func
- return DllCall(ShowDialog_func, "Int", id, "Int", style, "Str", caption, "Str", text, "Str", button, "Str", button2)
- }
- GetPlayerNameByID(id, ByRef playername, max_len)
- {
- global GetPlayerNameByID_func
- VarSetCapacity(playername, max_len, 0)
- return DllCall(GetPlayerNameByID_func, "Int", id, "StrP", playername, "Int", max_len)
- }
- GetPlayerIDByName(name)
- {
- global GetPlayerIDByName_func
- return DllCall(GetPlayerIDByName_func, "Str", name)
- }
- GetPlayerName(ByRef playername, max_len)
- {
- global GetPlayerName_func
- VarSetCapacity(playername, max_len, 0)
- return DllCall(GetPlayerName_func, "StrP", playername, "Int", max_len)
- }
- GetPlayerId()
- {
- global GetPlayerId_func
- return DllCall(GetPlayerId_func)
- }
- IsChatOpen()
- {
- global IsChatOpen_func
- return DllCall(IsChatOpen_func)
- }
- IsDialogOpen()
- {
- global IsDialogOpen_func
- return DllCall(IsDialogOpen_func)
- }
- GetVehiclePointer()
- {
- global GetVehiclePointer_func
- return DllCall(GetVehiclePointer_func)
- }
- GetVehicleSpeed(factor)
- {
- global GetVehicleSpeed_func
- return DllCall(GetVehicleSpeed_func, "Float", factor)
- }
- GetVehicleHealth()
- {
- global GetVehicleHealth_func
- return DllCall(GetVehicleHealth_func, "Cdecl float")
- }
- GetVehicleModelId()
- {
- global GetVehicleModelId_func
- return DllCall(GetVehicleModelId_func)
- }
- GetVehicleModelName(ByRef name, max_len)
- {
- global GetVehicleModelName_func
- VarSetCapacity(name, max_len, 0)
- return DllCall(GetVehicleModelName_func, "StrP", name, "Int", max_len)
- }
- GetVehicleModelNameById(vehicleID, ByRef name, max_len)
- {
- global GetVehicleModelNameById_func
- VarSetCapacity(name, max_len, 0)
- return DllCall(GetVehicleModelNameById_func, "Int", vehicleID, "StrP", name, "Int", max_len)
- }
- GetVehicleType()
- {
- global GetVehicleType_func
- return DllCall(GetVehicleType_func)
- }
- GetVehicleFreeSeats(ByRef seatFL, ByRef seatFR, ByRef seatRL, ByRef seatRR)
- {
- global GetVehicleFreeSeats_func
- return DllCall(GetVehicleFreeSeats_func, "IntP", seatFL, "IntP", seatFR, "IntP", seatRL, "IntP", seatRR)
- }
- GetVehicleFirstColor()
- {
- global GetVehicleFirstColor_func
- return DllCall(GetVehicleFirstColor_func)
- }
- GetVehicleSecondColor()
- {
- global GetVehicleSecondColor_func
- return DllCall(GetVehicleSecondColor_func)
- }
- GetVehicleColor(ByRef color1, ByRef color2)
- {
- global GetVehicleColor_func
- return DllCall(GetVehicleColor_func, "IntP", color1, "IntP", color2)
- }
- IsVehicleSeatUsed(seat)
- {
- global IsVehicleSeatUsed_func
- return DllCall(IsVehicleSeatUsed_func, "Int", seat)
- }
- IsVehicleLocked()
- {
- global IsVehicleLocked_func
- return DllCall(IsVehicleLocked_func)
- }
- IsVehicleHornEnabled()
- {
- global IsVehicleHornEnabled_func
- return DllCall(IsVehicleHornEnabled_func)
- }
- IsVehicleSirenEnabled()
- {
- global IsVehicleSirenEnabled_func
- return DllCall(IsVehicleSirenEnabled_func)
- }
- IsVehicleAlternateSirenEnabled()
- {
- global IsVehicleAlternateSirenEnabled_func
- return DllCall(IsVehicleAlternateSirenEnabled_func)
- }
- IsVehicleEngineEnabled()
- {
- global IsVehicleEngineEnabled_func
- return DllCall(IsVehicleEngineEnabled_func)
- }
- IsVehicleLightEnabled()
- {
- global IsVehicleLightEnabled_func
- return DllCall(IsVehicleLightEnabled_func)
- }
- IsVehicleCar()
- {
- global IsVehicleCar_func
- return DllCall(IsVehicleCar_func)
- }
- IsVehiclePlane()
- {
- global IsVehiclePlane_func
- return DllCall(IsVehiclePlane_func)
- }
- IsVehicleBoat()
- {
- global IsVehicleBoat_func
- return DllCall(IsVehicleBoat_func)
- }
- IsVehicleTrain()
- {
- global IsVehicleTrain_func
- return DllCall(IsVehicleTrain_func)
- }
- IsVehicleBike()
- {
- global IsVehicleBike_func
- return DllCall(IsVehicleBike_func)
- }
- HasWeaponIDClip(weaponID)
- {
- global HasWeaponIDClip_func
- return DllCall(HasWeaponIDClip_func, "Int", weaponID)
- }
- GetPlayerWeaponID()
- {
- global GetPlayerWeaponID_func
- return DllCall(GetPlayerWeaponID_func)
- }
- GetPlayerWeaponType()
- {
- global GetPlayerWeaponType_func
- return DllCall(GetPlayerWeaponType_func)
- }
- GetPlayerWeaponSlot()
- {
- global GetPlayerWeaponSlot_func
- return DllCall(GetPlayerWeaponSlot_func)
- }
- GetPlayerWeaponName(dwWeapSlot, ByRef _szWeapName, max_len)
- {
- global GetPlayerWeaponName_func
- VarSetCapacity(_szWeapName, max_len, 0)
- return DllCall(GetPlayerWeaponName_func, "Int", dwWeapSlot, "StrP", _szWeapName, "Int", max_len)
- }
- GetPlayerWeaponClip(dwWeapSlot)
- {
- global GetPlayerWeaponClip_func
- return DllCall(GetPlayerWeaponClip_func, "Int", dwWeapSlot)
- }
- GetPlayerWeaponTotalClip(dwWeapSlot)
- {
- global GetPlayerWeaponTotalClip_func
- return DllCall(GetPlayerWeaponTotalClip_func, "Int", dwWeapSlot)
- }
- GetPlayerWeaponState()
- {
- global GetPlayerWeaponState_func
- return DllCall(GetPlayerWeaponState_func)
- }
- GetPlayerWeaponAmmo(weaponType)
- {
- global GetPlayerWeaponAmmo_func
- return DllCall(GetPlayerWeaponAmmo_func, "Int", weaponType)
- }
- GetPlayerWeaponAmmoInClip(weaponType)
- {
- global GetPlayerWeaponAmmoInClip_func
- return DllCall(GetPlayerWeaponAmmoInClip_func, "Int", weaponType)
- }
- PathCombine(abs, rel) {
- VarSetCapacity(dest, (A_IsUnicode ? 2 : 1) * 260, 1)
- DllCall("Shlwapi.dll\PathCombine", "UInt", &dest, "UInt", &abs, "UInt", &rel)
- Return, dest
- }
- WinHttpRequest( URL, ByRef In_POST__Out_Data="", ByRef In_Out_HEADERS="", Options="" )
- {
- static nothing := ComObjError(0)
- static oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- static oADO := ComObjCreate("adodb.stream")
- If IsObject(URL)
- Return oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1")
- If (In_POST__Out_Data != "") || InStr(Options, "Method: POST")
- oHTTP.Open("POST", URL, True)
- Else If InStr(Options, "Method: HEAD")
- oHTTP.Open("HEAD", URL, True)
- Else
- oHTTP.Open("GET", URL, True)
- If In_Out_HEADERS
- {
- In_Out_HEADERS := Trim(In_Out_HEADERS, " `t`r`n")
- Loop, Parse, In_Out_HEADERS, `n, `r
- {
- If !( _pos := InStr(A_LoopField, ":") )
- Continue
- Header_Name := SubStr(A_LoopField, 1, _pos-1)
- Header_Value := SubStr(A_LoopField, _pos+1)
- If ( Trim(Header_Value) != "" )
- oHTTP.SetRequestHeader( Header_Name, Header_Value )
- }
- }
- If (In_POST__Out_Data != "") && !InStr(In_Out_HEADERS, "Content-Type:")
- oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
- If Options
- {
- Loop, Parse, Options, `n, `r
- {
- If ( _pos := InStr(A_LoopField, "Timeout:") )
- Timeout := SubStr(A_LoopField, _pos+8)
- Else If ( _pos := InStr(A_LoopField, "Proxy:") )
- oHTTP.SetProxy( 2, SubStr(A_LoopField, _pos+6) )
- Else If ( _pos := InStr(A_LoopField, "Codepage:") )
- oHTTP.Option(2) := SubStr(A_LoopField, _pos+9)
- }
- oHTTP.Option(6) := InStr(Options, "NO_AUTO_REDIRECT") ? 0 : 1
- }
- oHTTP.Send(In_POST__Out_Data)
- ReturnCode := oHTTP.WaitForResponse(Timeout ? Timeout : -1)
- If InStr(Options, "SaveAs:")
- {
- RegExMatch(Options, "i)SaveAs:[ \t]*\K[^\r\n]+", SavePath)
- oADO.Type := 1
- oADO.Open()
- oADO.Write( oHTTP.ResponseBody )
- oADO.SaveToFile( SavePath, 2 )
- oADO.Close()
- In_POST__Out_Data := ""
- }
- Else If InStr(Options, "Charset:")
- {
- RegExMatch(Options, "i)Charset:[ \t]*\K[\w-]+", Encoding)
- oADO.Type := 1
- oADO.Mode := 3
- oADO.Open()
- oADO.Write( oHTTP.ResponseBody() )
- oADO.Position := 0
- oADO.Type := 2
- oADO.Charset := Encoding
- In_POST__Out_Data := IsByRef(In_POST__Out_Data) ? oADO.ReadText() : ""
- oADO.Close()
- }
- Else
- In_POST__Out_Data := IsByRef(In_POST__Out_Data) ? oHTTP.ResponseText : ""
- In_Out_HEADERS := "HTTP/1.1 " oHTTP.Status() "`n" oHTTP.GetAllResponseHeaders()
- Return, ReturnCode
- }
- #UseHook
- #InstallKeybdHook
- #HotString EndChars `n
- if(!A_IsAdmin) {
- Run *RunAs "%A_ScriptFullPath%"
- ExitApp
- }
- bgColor := "1C1C1C"
- textColor := "FFFF00"
- global version := "3.1"
- I_Icon = img/icon.ico
- ICON [I_Icon]
- if I_Icon <>
- IfExist, %I_Icon%
- Menu, Tray, Icon, %I_Icon%
- Gui, -dpiscale
- OnMessage(0x201, "WM_LBUTTONDOWN")
- Gui, Show, w1200 h769, Binder Binder
- Gui, Color, %bgColor%
- WinSet, Style, -0xC00000, a
- Gui, Add, Picture, x1170 y5 gCallbackClose, img/close.png
- Gui, Add, Picture, x1135 y5 gCallbackMinimize, img/minimize.png
- Gui, Add, Picture, x211 y40, img/menu/titlebarSeperator.png
- Gui, Add, Picture, x200 y0, img/menu/navbar.png
- Gui, Add, Picture, x1040 y623 w160 h160, img/iconTransparent.png
- font(40)
- Gui, Add, Text, x500 y400 vLoadingText cPurple, Ladevorgang..
- checkNewVersion()
- if(FileExist("updater.bat") != ""){
- FileDelete, updater.bat
- }
- global playerName:= "PLAYERNAMEPLAYERNAME"
- global apiKey:= "UNSETUNSETUNSETUNSETUNSETUNSET"
- global chatlogpath:= A_MyDocuments "\GTA San Andreas User Files\SAMP\chatlog.txt"
- global currentGUI := "Home"
- global elements:= {home: [], keybinds: [], commands: [], overlays: [], updates: [], credits: [], login: [], textbinds: [], autonomous: []}
- global elementCounter:= 1
- global activeHotkeys:= []
- global keybindsEnabled:= 1
- global processedChatCount:= 0
- global processedMessages:= []
- global customCommands:= ["[ENTF]", "/cmds", "/setkills", "/setdeaths", "/kd", "/fkd", "/playerinfo", "/checkfrak", "/checkfrakid", "/membersall", "/plantinfo", "/showplant", "/biz", "/vs", "/togkb", "/togflagpos", "/funcinfo", "/killtest", "/kcall", "/ksms", "/kbl", "/kclearchat", "/kame", "/hwithdraw", "/showtextbinds", "/moveoverlay", "/customoverlay", "/timer", "/wpbinds"]
- global customCommandsDesc:= ["Keybinds ein- und ausschalten", "Befehle ingame anzeigen", "Kills des Killbinders setzen", "Tode des Killbinders setzen", "Eigene Stats anzeigen", "Heutige Stats im /f-Chat anzeigen", "Informationen eines Spielers abrufen", "Eingeloggte Spieler einer Fraktion anzeigen", "Eingeloggte SpielerIDs einer Fraktion anzeigen", "Alle Mitglieder einer Fraktion anzeigen", "Plantageninformationen anzeigen", "Plantagenposition als Overlay anzeigen", "Bizliste mit Farben anzeigen", "VS im /f-Chat anfordern", "Killbinder ein- und ausschalten", "Automatisches /getflagpos de- und aktivieren", "Funktionen des Binders anzeigen", "Killbinder testen", "Anruf anhand Name/ID initiieren", "SMS anhand Name/ID senden", "Blacklist mit SpielerIDs anzeigen", "Chat leeren", "Automatisch /ame alle 15 Sekunden", "Hauskasse automatisch leeren", "Aktive Textbinds ingame anzeigen", "Position eines Overlays ingame anpassen", "CustomOverlay einstellen", "Timerbefehle", "Die WP-Binds anzeigen"]
- global loginRunning:= 0
- global loggedIn:= 0
- global sendGangGang:= 1
- global sprayMessageSent:= 0
- global plantMessageSent:= 0
- global fingerprint:= ""
- global messagesKeys:= []
- global messagesValues:= []
- global recentKeypresses:= ""
- global textbindsKeys:= []
- global textbindsValues:= []
- global autonomousKeys:= []
- global autonomousValues:= []
- global wpbindKeys:= []
- global wpbindWPs:= []
- global wpbindReasons:= []
- global dialogID:= 20000
- global lastHP:= 100
- global lastAM:= 100
- FileRead, hitSound, *c img/hitsound.wav
- global overlayPlantImage:= -1
- global overlayEditMode:= 0
- global overlayEditWhich:= ""
- global overlayEditX:= 0
- global overlayEditY:= 0
- global overlayCardl:= -1
- global overlayCardlColor:= "FFFFFF"
- global overlayCardlSize:= 1
- global overlayCardlFont:= "Arial"
- global overlayCardlX:= 500
- global overlayCardlY:= 500
- global overlayLSD:= -1
- global overlayLSDColor:= "FFFFFF"
- global overlayLSDSize:= 1
- global overlayLSDFont:= "Arial"
- global overlayLSDX:= 500
- global overlayLSDY:= 500
- global overlayGold:= -1
- global overlayGoldColor:= "FFFFFF"
- global overlayGoldSize:= 1
- global overlayGoldFont:= "Arial"
- global overlayGoldX:= 500
- global overlayGoldY:= 500
- global overlayCustom:= -1
- global overlayCustomColor:= "FFFFFF"
- global overlayCustomSize:= 1
- global overlayCustomFont:= "Arial"
- global overlayCustomX:= 500
- global overlayCustomY:= 500
- global fraks:= {1: ["Los Santos Police Department","0099FF","pd","police","polizei","ls","lspd","cops","bullen","cadetten"],2: ["Federal Bureau of Investigation", "000066", "fbi", "federal", "bureau", "investigation", "nsa", "m4", "sprayer", "gps", "uc"],4: ["San Andreas Rettungsdienst", "B32400","medic", "medics", "sard", "sa:rd", "rettungsdienst", "nodm", "action", "feuer"],5: ["La Cosa Nostra", "404040", "lcn", "la", "cosa", "nostra", "seit november kaputt"],6: ["Yakuza", "FFFFFF","yakuza", "enton", "mustang"],7: ["Regierung", "FFFFFF", "regierung", "inaktiv", "gov", "government", "ott", "4 wochen invite"],9: ["San Andreas Media AG", "FF6600", "sekte", "sam:ag", "samag", "media", "news", "gelddrucker", "sam", "ag", "lucforce", "nikk", "ouro"],11: ["Scarfo Family", "3399FF","scarfo", "scooofo", "scooofoo", "schroff", "sil", "auto", "rennen", "schlumpf"],13: ["Binder Ballas", textColor, "ballas", "purple", "ice", "Binder", "gwfraktion", "macht", "4 dealzones"],14: ["Grove Street", "009933", "gs", "grove", "grove street", "fahrschule", "holzkopf", "wird den ballas deagleln beibringen", "sumpf", "sumpfneger"],18: ["Triaden", "991F00", "triaden", "shanghai", "penner", "gude bizwarspot", "schwuchteln"],19: ["Mara Salvatrucha", "ms13", "vagos", "lv", "mara", "mara salvatrucha", "los", "dumm", "hypefrak", "hype"]}
- global drivebyAlreadySet:= 0
- global engineAlreadySet:= 0
- global lichtAlreadySet:= 0
- global timeOnFriedhof:= 0
- global timeLSD:= 0
- global timeGold:= 0
- global timeCustomOverlay:= 0
- global debugVar:= 1
- global killsGlobalKills:= 0
- global killsDailyKills:= 0
- global killsGlobalDeaths:= 0
- global killsDailyDeaths:= 0
- global killsStreak:= 0
- global killsDay:= 1
- global automaticFlagposRunning:= 0
- global automaticCommandRunning:= 0
- global automaticCommandInterval:= 1000
- global automaticCommandCommand:= ""
- global customOverlayText:= ""
- global customOverlayTrigger:= ""
- global customOverlayTime:= 10
- global kameMessage:= ""
- global allowDownloadStrings:= 1
- downloadStrings()
- FileDelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
- createINI()
- GuiControl, Hide, LoadingText
- Gui, Add, Text, x467 y230 cPurple vLoginText, Binder ~ Login
- font(14)
- Gui, Add, Text, x485 y340 cPurple vLoginUserLabel, Benutzername
- Gui, Add, Edit, x485 y370 w400 h33 vLoginUser
- Gui, Add, Text, x485 y430 cPurple vLoginPassLabel, Passwort
- Gui, Add, Edit, x485 y460 w400 h33 vLoginPass Password
- Gui, Add, Button, x0-50 y0-50 vLoginDefault gLogin +default +hidden, l
- Gui, Add, Picture, x485 y510 gLogin vLoginLogin, img/elements/login.png
- elements["login"].Push("LoginText")
- elements["login"].Push("LoginUserLabel")
- elements["login"].Push("LoginUser")
- elements["login"].Push("LoginPassLabel")
- elements["login"].Push("LoginPass")
- elements["login"].Push("LoginLogin")
- font(16)
- loginRememberMe:= new CheckBox(703, 510, "Namen merken", "LoginRememberName", "login")
- IniRead, RememberMe, %A_WorkingDir%\PurpleIceSettings.ini, Login, RememberMe, 0
- if(RememberMe == 0){
- GuiControl, Focus, LoginUser
- } else {
- GuiControl, Focus, LoginPass
- GuiControl,, LoginUser, %RememberMe%
- loginRememberMe.set(1)
- }
- return
- Initialization:
- Gui, Add, Picture, x0 y0 gCallbackMain vNavigationHome, img/menu/home.png
- Gui, Add, Picture, x0 y160 gCallbackKeybinds vNavigationKeybinds, img/menu/keybinds.png
- Gui, Add, Picture, x0 y320 gCallbackCommands vNavigationCommands, img/menu/commands.png
- Gui, Add, Picture, x0 y480 gCallbackOverlays vNavigationOverlays, img/menu/overlays.png
- Gui, Add, Picture, x0 y640 gCallbackUpdates vNavigationUpdates, img/menu/updates.png
- Gui, Add, Picture, x100 y640 gCallbackCredits vNavigationCredits, img/menu/credits.png
- font(12)
- Gui, Add, Text, x1145 y780 cPurple, v%version%
- font(16)
- Gui, Add, Text, x240 y5 cPurple vTitle, Binder aaaaaaaaaaaaaaaaaaaaaaaaa
- font(10)
- gangGang:= sendGangGang == 0 ? "deaktiviert" : "aktiviert"
- font(46)
- Gui, Add, Text, x240 y60 cPurple vHomeWelcome +hidden, Hey
- font(26)
- Gui, Add, Text, x350 y90 cPurple vHomeWelcomeUnderline +hidden, ______________________
- StringUpper, playerNameUpper, playerName
- Gui, Add, Text, x350 y90 cPurple vHomeWelcomeName +hidden, %playerNameUpper%
- Gui, Add, Picture, x810 y50 vHomeLeftSeperator +hidden, img/menu/navbar.png
- font(16)
- homePremiumAccount:= new CheckBox(240, 150, "Aktiver Nova-Premiumaccount?", "HomeActivePremium", "home")
- homeAkAvailable:= new CheckBox(240, 190, "AK-47 im Equip?", "HomeAkAvailable", "home")
- homeMFourOverAK:= new CheckBox(240, 230, "M4 statt AK-47 benutzen?", "HomeMFourOverAK", "home")
- homeRankFour:= new CheckBox(240, 270, "Rang 4+?", "HomeRankFour", "home")
- Gui, Add, Text, x240 y340 cPurple vHomeMainfunctions +hidden, Nebenfunktionen
- homeAutoDriveby:= new CheckBox(240, 380, "Automatisch /swapgun", "HomeAutoDriveby", "home")
- homeAutoTicket:= new CheckBox(240, 420, "Automatisch /gpayticket", "HomeAutoTicket", "home")
- homeAutoEngine:= new CheckBox(240, 460, "Automatisch Motor einschalten", "HomeAutoEngine", "home")
- homeAutoLicht:= new CheckBox(240, 500, "Automatisch Licht ab 21 Uhr einschalten", "HomeAutoLicht", "home")
- homeAutoWP:= new CheckBox(240, 540, "Automatisch WPs im /f-Chat", "HomeAutoWPs", "home")
- homeFriedhofCounter:= new CheckBox(240, 580, "Friedhofszeit im Chat", "HomeFriedhofCounter", "home")
- homeLSDCounter:= new CheckBox(240, 620, "LSD-Cooldown im Chat", "HomeLSDCounter", "home")
- homeAutoSound:= new CheckBox(240, 660, "Sound bei Schaden", "HomeAutoSound", "home")
- Gui, Add, Text, x240 y700 cPurple vHomeFunctionJoinCommand +hidden, Bind`, der beim Beitritt gefeuert wird
- font(9)
- Gui, Add, Edit, x240 y730 h33 w340 vHomeFunctionJoinInput -VScroll +hidden,
- font(16)
- Gui, Add, Picture, x590 y730 w190 vHomeFunctionJoinSave gCallbackSave +hidden, img/elements/btnSave_sm.png
- font(22)
- homeKillbinderEnabled:= new CheckBox(840, 60, "Killbinder", "HomeKillbinderEnabled", "home")
- font(9)
- GUI, Add, Edit, x840 y140 h33 w340 vHomeKillbinderSec1_1 -VScroll +hidden,
- GUI, Add, Edit, x840 y180 h33 w340 vHomeKillbinderSec1_2 -VScroll +hidden,
- GUI, Add, Edit, x840 y250 h33 w340 vHomeKillbinderSec2_1 -VScroll +hidden,
- GUI, Add, Edit, x840 y290 h33 w340 vHomeKillbinderSec2_2 -VScroll +hidden,
- GUI, Add, Edit, x840 y360 h33 w340 vHomeKillbinderSec3_1 -VScroll +hidden,
- GUI, Add, Edit, x840 y400 h33 w340 vHomeKillbinderSec3_2 -VScroll +hidden,
- GUI, Add, Edit, x840 y470 h33 w340 vHomeKillbinderSec4_1 -VScroll +hidden,
- GUI, Add, Edit, x840 y510 h33 w340 vHomeKillbinderSec4_2 -VScroll +hidden,
- font(16)
- Gui, Add, Text, x840 y110 cPurple vHomeKillbinderSec1 +hidden, Kombination 1
- Gui, Add, Text, x840 y220 cPurple vHomeKillbinderSec2 +hidden, Kombination 2
- Gui, Add, Text, x840 y330 cPurple vHomeKillbinderSec3 +hidden, Kombination 3
- Gui, Add, Text, x840 y440 cPurple vHomeKillbinderSec4 +hidden, Kombination 4
- Gui, Add, Picture, x840 y560 w340 vHomeKillbinderSave gCallbackSave +hidden, img/elements/btnSave_md.png
- Gui, Add, Text, x840 y620 cPurple vHomeKillbinderVariables +hidden, Variablen
- font(12)
- Gui, Add, Text, x840 y645 cPurple vHomeKillbinderVariablesVariables +hidden, [GKills] [DKills]`n Gesamte/Heutige Kills`n[GDeaths] [DDeaths]`n Gesamte/Heutige Tode`n[GKD] [DKD]`n Gesamte/Heutige K/D`n[Streak]`n Derzeitige Killstreak
- elements["home"].Push("HomeWelcome")
- elements["home"].Push("HomeWelcomeName")
- elements["home"].Push("HomeWelcomeUnderline")
- elements["home"].Push("HomeLeftSeperator")
- elements["home"].Push("HomeMainfunctions")
- elements["home"].Push("HomeFunctionJoinCommand")
- elements["home"].Push("HomeFunctionJoinInput")
- elements["home"].Push("HomeFunctionJoinSave")
- elements["home"].Push("HomeKillbinder")
- elements["home"].Push("HomeKillbinderSec1")
- elements["home"].Push("HomeKillbinderSec1_1")
- elements["home"].Push("HomeKillbinderSec1_2")
- elements["home"].Push("HomeKillbinderSec2")
- elements["home"].Push("HomeKillbinderSec2_1")
- elements["home"].Push("HomeKillbinderSec2_2")
- elements["home"].Push("HomeKillbinderSec3")
- elements["home"].Push("HomeKillbinderSec3_1")
- elements["home"].Push("HomeKillbinderSec3_2")
- elements["home"].Push("HomeKillbinderSec4")
- elements["home"].Push("HomeKillbinderSec4_1")
- elements["home"].Push("HomeKillbinderSec4_2")
- elements["home"].Push("HomeKillbinderSave")
- elements["home"].Push("HomeKillbinderVariables")
- elements["home"].Push("HomeKillbinderVariablesVariables")
- counter:= 1
- Loop, 2 {
- cIndex:= A_Index
- hotkeyX:= 240*cIndex + (A_Index > 1 ? 180 : 0)
- editX:= 420*cIndex
- Loop, 14 {
- if(counter < 22) {
- thisY:= 30+(50*A_Index)
- font(16)
- GUI, Add, Hotkey, x%hotkeyX% y%thisY% w170 vKeybindsKey%counter% +hidden,
- font(9)
- GUI, Add, Edit, x%editX% y%thisY% w170 h33 vKeybindsBind%counter% -VScroll +hidden,
- elements["keybinds"].Push("KeybindsKey" counter)
- elements["keybinds"].Push("KeybindsBind" counter)
- counter++
- } else if(counter == 22) {
- thisY:= 30+(50*A_Index)
- labelY:= thisY+5
- font(16)
- Gui, Add, Hotkey, x%hotkeyX% y%thisY% w170 vKeybindsKey22 +hidden
- font(14)
- Gui, Add, Text, x%editX% y%labelY% cPurple vKeybindsBind22 +hidden, Chat wiederholen
- elements["keybinds"].Push("KeybindsKey22")
- elements["keybinds"].Push("KeybindsBind22")
- counter++
- }
- }
- }
- font(18)
- Gui, Add, Text, x660 y480 cPurple vKeybindsMouseLabel +hidden, Mausbinds
- font(16)
- Gui, Add, Text, x660 y530 cPurple vKeybindsMouse4 +hidden, Maustaste 4
- Gui, Add, Text, x660 y580 cPurple vKeybindsMouse5 +hidden, Maustaste 5
- Gui, Add, Text, x660 y630 cPurple vKeybindsMouseLeft +hidden, Mausrad links
- Gui, Add, Text, x660 y680 cPurple vKeybindsMouseRight +hidden, Mausrad rechts
- elements["keybinds"].Push("KeybindsMouseLabel")
- elements["keybinds"].Push("KeybindsMouse4")
- elements["keybinds"].Push("KeybindsMouse5")
- elements["keybinds"].Push("KeybindsMouseLeft")
- elements["keybinds"].Push("KeybindsMouseRight")
- counter:= 23
- Loop, 4 {
- hotkeyX:= 660
- thisY:= 480 + (50*A_Index)
- font(9)
- Gui, Add, Edit, x%editX% y%thisY% w170 h33 vKeybindsBind%counter% -VScroll +hidden,
- elements["keybinds"].Push("KeybindsBind" counter)
- counter++
- }
- font(16)
- Gui, Add, Picture, x660 y730 gCallbackSave vKeybindsSave +hidden, img/elements/btnSave_md.png
- elements["keybinds"].Push("KeybindsSave")
- font(100)
- Gui, Add, Text, x1070 y270 cPurple gCallbackTextbinds vKeybindsTextbinds +hidden, >
- elements["keybinds"].Push("KeybindsTextbinds")
- txtcounter:= 1
- Loop, 2 {
- cIndex:= A_Index
- hotkeyX:= 240*cIndex + (A_Index > 1 ? 180 : 0)
- editX:= 420*cIndex
- Loop, 14 {
- if(txtcounter < 28) {
- thisY:= 30+(50*A_Index)
- font(16)
- GUI, Add, Edit, x%hotkeyX% y%thisY% w170 vTextbindsKey%txtcounter% +hidden,
- font(9)
- GUI, Add, Edit, x%editX% y%thisY% w170 h33 vTextbindsBind%txtcounter% -VScroll +hidden,
- elements["textbinds"].Push("TextbindsKey" txtcounter)
- elements["textbinds"].Push("TextbindsBind" txtcounter)
- txtcounter++
- }
- }
- }
- Gui, Add, Picture, x660 y730 gCallbackSave vTextbindsSave +hidden, img/elements/btnSave_md.png
- elements["textbinds"].Push("TextbindsSave")
- font(100)
- Gui, Add, Text, x1070 y270 cPurple gCallbackAutonomous vKeybindsAutonomous +hidden, >
- elements["textbinds"].Push("KeybindsAutonomous")
- Gui, Add, Picture, x660 y730 gCallbackSave vAutonomousSave +hidden, img/elements/btnSave_md.png
- elements["autonomous"].Push("AutonomousSave")
- font(100)
- Gui, Add, Text, x1070 y270 cPurple gCallbackKeybinds vAutonomousKeybinds +hidden, <
- elements["autonomous"].Push("AutonomousKeybinds")
- txtcounter:= 1
- Loop, 2 {
- cIndex:= A_Index
- hotkeyX:= 240*cIndex + (A_Index > 1 ? 180 : 0)
- editX:= 420*cIndex
- Loop, 14 {
- if(txtcounter < 28) {
- thisY:= 30+(50*A_Index)
- font(16)
- GUI, Add, Edit, x%hotkeyX% y%thisY% w170 vAutonomousKey%txtcounter% +hidden,
- font(9)
- GUI, Add, Edit, x%editX% y%thisY% w170 h33 vAutonomousBind%txtcounter% -VScroll +hidden,
- elements["autonomous"].Push("AutonomousKey" txtcounter)
- elements["autonomous"].Push("AutonomousBind" txtcounter)
- txtcounter++
- }
- }
- }
- customCommandsLength:= customCommands.MaxIndex()
- font(14)
- Loop, %customCommandsLength% {
- thisY:= 19 + (26*A_Index)
- command:= customCommands[A_Index]
- desc:= customCommandsDesc[A_Index]
- Gui, Add, Text, x240 y%thisY% cPurple vCommandsCommand%A_Index% +hidden, %command%
- Gui, Add, Text, x500 y%thisY% cPurple vCommandsLabel%A_Index% +hidden, %desc%
- elements["commands"].Push("CommandsCommand" A_Index)
- elements["commands"].Push("CommandsLabel" A_Index)
- }
- font(16)
- overlaysCheckCardl:= new Checkbox(240, 80, "Car DL", "OverlaysCardl", "overlays")
- overlaysCheckLSD:= new Checkbox(240, 120, "LSD Nebenwirkungen", "OverlaysLSD", "overlays")
- overlaysCheckGold:= new Checkbox(240, 160, "Gold-Use Cooldown", "OverlaysGold", "overlays")
- overlaysCheckCustom:= new Checkbox(240, 200, "Custom Cooldown", "OverlaysCustom", "overlays")
- font(20)
- Gui, Add, Text, x500 y80 w50 h30 cFFFFFF gOverlaysCallCardlColor vOverlaysCardlColor +BackgroundTrans +hidden, lllllll
- Gui, Add, Text, x500 y120 w50 h30 cFFFFFF gOverlaysCallLSDColor vOverlaysLSDColor +BackgroundTrans +hidden, lllllll
- Gui, Add, Text, x500 y160 w50 h30 cFFFFFF gOverlaysCallGoldColor vOverlaysGoldColor +BackgroundTrans +hidden, lllllll
- Gui, Add, Text, x500 y200 w50 h30 cFFFFFF gOverlaysCallCustomColor vOverlaysCustomColor +BackgroundTrans +hidden, lllllll
- font(14)
- Gui, Add, Edit, x570 y80 w30 h30 vOverlaysCardlSize +hidden,
- Gui, Add, Edit, x570 y120 w30 h30 vOverlaysLSDSize +hidden,
- Gui, Add, Edit, x570 y160 w30 h30 vOverlaysGoldSize +hidden,
- Gui, Add, Edit, x570 y200 w30 h30 vOverlaysCustomSize +hidden,
- Gui, Add, DropdownList, x620 y80 h230 w150 vOverlaysCardlFont +hidden, Arial|Calibri|Comic Sans|Impact|Tahoma|T.N.R.|Verdana|Sansation
- Gui, Add, DropdownList, x620 y120 h230 w150 vOverlaysLSDFont +hidden, Arial|Calibri|Comic Sans|Impact|Tahoma|T.N.R.|Verdana|Sansation
- Gui, Add, DropdownList, x620 y160 h230 w150 vOverlaysGoldFont +hidden, Arial|Calibri|Comic Sans|Impact|Tahoma|T.N.R.|Verdana|Sansation
- Gui, Add, DropdownList, x620 y200 h230 w150 vOverlaysCustomFont +hidden, Arial|Calibri|Comic Sans|Impact|Tahoma|T.N.R.|Verdana|Sansation
- Gui, Add, Picture, x240 y240 gCallbackOverlaySave vOverlaysSave +hidden, img/elements/btnSave_md.png
- elements["overlays"].Push("OverlaysCardlColor")
- elements["overlays"].Push("OverlaysCardlSize")
- elements["overlays"].Push("OverlaysCardlFont")
- elements["overlays"].Push("OverlaysLSDColor")
- elements["overlays"].Push("OverlaysLSDSize")
- elements["overlays"].Push("OverlaysLSDFont")
- elements["overlays"].Push("OverlaysGoldColor")
- elements["overlays"].Push("OverlaysGoldSize")
- elements["overlays"].Push("OverlaysGoldFont")
- elements["overlays"].Push("OverlaysCustomColor")
- elements["overlays"].Push("OverlaysCustomSize")
- elements["overlays"].Push("OverlaysCustomFont")
- elements["overlays"].Push("OverlaysText")
- elements["overlays"].Push("OverlaysSave")
- font(10, "Consolas")
- Gui, Add, Edit, x240 y100 h480 w930 vUpdatesEdit cWhite +hidden +readonly,
- font(16)
- r:= WinHTTPRequest("https://finn.ovh/binder2/changelog.txt", changelog)
- if(r != -1){
- MsgBox, Es ist ein Fehler beim Laden der Changelog aufgetreten.
- } else {
- GuiControl,, UpdatesEdit, %changelog%
- }
- elements["updates"].Push("UpdatesEdit")
- new CreditsElement(260, 80, "img/credits/finn.png", "Finn", "API und Crack", "credits")
- new CreditsElement(260, 320, "img/credits/pokee.png", "Pokee", "Coder", "credits")
- new CreditsElement(260, 560, "img/credits/ryano.png", "ryano", "Helper", "credits")
- r:= WinHTTPRequest("https://finn.ovh/binder2/wpbinds.php", wpbinds)
- if(r == -1){
- wpbindsData:= StrSplit(wpbinds, "|||")
- For, index, value in wpbindsData {
- valueData:= StrSplit(value, "||")
- wpbindKeys.Push("/" valueData[1])
- wpbindWPs.Push(valueData[2])
- wpbindReasons.Push(valueData[3])
- }
- }
- readINI()
- initHotkeys()
- changeTab("Home")
- initOverlays()
- SetTimer, Timer100, 100
- SetTimer, Timer150, 150
- SetTimer, Timer200, 200
- SetTimer, Timer300, 300
- SetTimer, Timer500, 500
- SetTimer, Timer1000, 1000
- SetTimer, Timer3000, 3000
- return
- TestFunc:
- AddChatMessage("")
- return
- RenameSAMP:
- renameSAMP()
- return
- Timer100:
- if(homeAutoSound.isChecked() == 1)
- doAutoSound()
- return
- Timer150:
- processChat()
- return
- Timer200:
- if(homeAutoDriveby.isChecked() == 1)
- doAutoDriveby()
- return
- Timer300:
- updateOverlays()
- return
- Timer500:
- if(homeAutoEngine.isChecked() == 1)
- doAutoEngine()
- return
- Timer1000:
- checkNewDay()
- processFriedhofCounter()
- processLSDCounter()
- processGoldCounter()
- processCustomCounter()
- if(homeAutoLicht.isChecked())
- doAutoLicht()
- return
- Timer3000:
- checkSprayMessage()
- checkPlantMessage()
- return
- TimerCustomCommand:
- processCustomCommand()
- return
- OverlaysCardl:
- overlaysCheckCardl.toggle()
- initOverlays()
- saveINI(4)
- return
- OverlaysLSD:
- overlaysCheckLSD.toggle()
- initOverlays()
- saveINI(4)
- return
- OverlaysGold:
- overlaysCheckGold.toggle()
- initOverlays()
- saveINI(4)
- return
- OverlaysCustom:
- overlaysCheckCustom.toggle()
- initOverlays()
- saveINI(4)
- return
- OverlaysCallCardlColor:
- changeOverlayColor("cardl")
- return
- OverlaysCallLSDColor:
- changeOverlayColor("lsd")
- return
- OverlaysCallGoldColor:
- changeOverlayColor("gold")
- return
- OverlaysCallCustomColor:
- changeOverlayColor("custom")
- return
- HomeAutoDriveby:
- homeAutoDriveby.toggle()
- return
- HomeActivePremium:
- homePremiumAccount.toggle()
- return
- HomeAkAvailable:
- homeAkAvailable.toggle()
- return
- HomeRankFour:
- homeRankFour.toggle()
- return
- HomeMFourOverAK:
- homeMFourOverAK.toggle()
- return
- HomeAutoEngine:
- homeAutoEngine.toggle()
- return
- HomeAutoWPs:
- homeAutoWP.toggle()
- return
- HomeKillbinderEnabled:
- homeKillbinderEnabled.toggle()
- return
- HomeFriedhofCounter:
- homeFriedhofCounter.toggle()
- return
- HomeLSDCounter:
- homeLSDCounter.toggle()
- return
- HomeAutoTicket:
- homeAutoTicket.toggle()
- return
- HomeAutoLicht:
- homeAutoLicht.toggle()
- return
- HomeAutoSound:
- homeAutoSound.toggle()
- return
- LoginRememberName:
- loginRememberMe.toggle()
- return
- Login:
- if(loggedIn == 1)
- return
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- PCdata := EnvGet("COMPUTERNAME") EnvGet("HOMEPATH") EnvGet("USERNAME") EnvGet("PROCESSOR_ARCHITECTURE") EnvGet("PROCESSOR_IDENTIFIER") EnvGet("PROCESSOR_LEVEL") EnvGet("PROCESSOR_REVISION") A_OSType
- fingerprint:= CalcStringHash("c" PCdata, 0x800c, "UTF-8")
- hwid:= fingerprint
- if(Username == "" or Password == "" or loginRunning == 1)
- return
- loginRunning:= 1
- r:= WinHTTPRequest("https://finn.ovh/binder2/binderlogin.php?name=" Username "&pass=" Password "&hwid=" hwid, response)
- loginRunning:= 0
- if(r != -1){
- Goto, Initialization
- return
- }
- if(response == "NOPE"){
- Goto, Initialization
- return
- }
- playerName:= Username
- sendGangGang:= response
- loggedIn:= 1
- Goto, Initialization
- return
- AutomaticFlagpos:
- SendChat("/getflagpos")
- return
- Kame:
- SendChat("/ame " kameMessage)
- return
- CallbackMain:
- changeTab("Home")
- return
- CallbackKeybinds:
- changeTab("Keybinds")
- return
- CallbackTextbinds:
- changeTab("Textbinds")
- return
- CallbackAutonomous:
- changeTab("Autonomous")
- return
- CallbackCommands:
- changeTab("Commands")
- return
- CallbackOverlays:
- changeTab("Overlays")
- return
- CallbackUpdates:
- changeTab("Updates")
- return
- CallbackCredits:
- changeTab("Credits")
- return
- CallbackMinimize:
- WinMinimize
- return
- CallbackSave:
- saveINI()
- TrayTip, ~ Binder, Einstellungen wurden gespeichert, 4
- initHotkeys()
- return
- CallbackOverlaySave:
- saveINI(4)
- TrayTip, ~ Binder, Overlays wurden gespeichert, 4
- initOverlays()
- return
- CallbackClose:
- GuiClose:
- saveINI()
- removeOverlays()
- ExitApp
- return
- initHotkeys() {
- global
- For, index, value in activeHotkeys {
- HotKey, *%value%, off
- }
- activeHotkeys:= []
- textbindsKeys:= []
- textbindsValues:= []
- autonomousKeys:= []
- autonomousValues:= []
- Sleep, 100
- Loop, 28 {
- GuiControlGet, thisBind,, KeybindsBind%A_Index%
- GuiControlGet, thisKey,, KeybindsKey%A_Index%
- if(thisKey != ""){
- HotKey, *%thisKey%, Keybind%A_Index%, on
- activeHotkeys.Push(thisKey)
- }
- }
- Loop, 27 {
- GuiControlGet, txtKey,, TextbindsKey%A_Index%
- GuiControlGet, txtVal,, TextbindsBind%A_Index%
- if(txtKey != ""){
- textbindsKeys.Push(txtKey)
- textbindsValues.Push(txtVal)
- }
- }
- Loop, 27 {
- GuiControlGet, autKey,, AutonomousKey%A_Index%
- GuiControlGet, autVal,, AutonomousBind%A_Index%
- if(autKey != ""){
- autonomousKeys.Push(autKey)
- autonomousValues.Push(autVal)
- }
- }
- return
- }
- changeTab(tabName:= "Home"){
- StringLower, currentGUILower, currentGUI
- GuiControl,, Navigation%currentGUI%, img/menu/%currentGUILower%.png
- currentGUI:= tabName
- GuiControl,, Title, Binder `>`> %tabName%
- GuiControl,, Navigation%tabName%, img/menu/active%tabName%.png
- Loop, 9 {
- i:= A_Index
- section:= (i == 1 ? "home" : (i == 2 ? "keybinds" : (i == 3 ? "commands" : (i == 4 ? "overlays" : (i == 5 ? "updates" : (i == 6 ? "credits" : (i == 7 ? "login" : (i == 8 ? "textbinds" : (i == 9 ? "autonomous" : "wtfahkduarsch")))))))))
- For, index, element in elements[section] {
- GuiControl, Hide, %element%
- }
- }
- For, index, element in elements[tabName] {
- GuiControl, Show, %element%
- }
- return
- }
- WM_LBUTTONDOWN(){
- MouseGetPos, mouseX, mouseY
- if(mouseX >= 207 and mouseY >= 0 and mouseY <= 40)
- PostMessage, 0xA1, 2
- }
- renameSAMP() {
- WinSetTitle, ahk_exe gta_sa.exe,, GTA:SA:MP
- return
- }
- font(fontSize:= 10, fontName:= "Tahoma"){
- sizeScaled:= round(96/A_ScreenDPI*fontSize)
- Gui, Font, s%sizeScaled%, %fontName%
- }
- WTSEnumProcesses( Mode := 1 ) {
- Local tPtr := 0, pPtr := 0, nTTL := 0, LIST := ""
- If not DllCall( "Wtsapi32\WTSEnumerateProcesses", "Ptr",0, "Int",0, "Int",1, "PtrP",pPtr, "PtrP",nTTL )
- Return "", DllCall( "SetLastError", "Int",-1 )
- tPtr := pPtr
- Loop % ( nTTL )
- LIST .= ( Mode < 2 ? NumGet( tPtr + 4, "UInt" ) : "" )
- . ( Mode = 1 ? A_Tab : "" )
- . ( Mode > 0 ? StrGet( NumGet( tPtr + 8 ) ) ",,," : "," )
- , tPtr += ( A_PtrSize = 4 ? 16 : 24 )
- StringTrimRight, LIST, LIST, 1
- DllCall( "Wtsapi32\WTSFreeMemory", "Ptr",pPtr )
- Return LIST, DllCall( "SetLastError", "UInt",nTTL )
- }
- createINI() {
- IfNotExist %A_WorkingDir%\PurpleIceSettings.ini
- {
- IniWrite, 1, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Enabled
- IniWrite, "L", %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Hotkey1
- IniWrite, "Hi! ~[Wait 1000]Mit Delay!", %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Bind1
- IniWrite, "/f -1 Holzkopf [#[GKills]]", %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section1_1
- IniWrite, "/c Machste Pause", %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section1_2
- }
- return
- }
- readINI() {
- global
- IniRead, Premium, %A_WorkingDir%\PurpleIceSettings.ini, Home, Premium, 0
- homePremiumAccount.set(Premium)
- IniRead, AkAvailable, %A_WorkingDir%\PurpleIceSettings.ini, Home, AkAvailable, 0
- homeAkAvailable.set(AkAvailable)
- IniRead, UseMFour, %A_WorkingDir%\PurpleIceSettings.ini, Home, UseMFour, 0
- homeMFourOverAK.set(UseMFour)
- IniRead, RankFour, %A_WorkingDir%\PurpleIceSettings.ini, Home, RankFour, 0
- homeRankFour.set(RankFour)
- IniRead, AutoTicket, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoTicket, 0
- homeAutoTicket.set(AutoTicket)
- IniRead, AutoDriveby, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoDriveby, 0
- homeAutoDriveby.set(AutoDriveby)
- IniRead, AutoWP, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoWP, 0
- homeAutoWP.set(AutoWP)
- IniRead, AutoLicht, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoLicht, 0
- homeAutoLicht.set(AutoLicht)
- IniRead, AutoEngine, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoEngine, 0
- homeAutoEngine.set(AutoEngine)
- IniRead, FriedhofCounter, %A_WorkingDir%\PurpleIceSettings.ini, Home, FriedhofCounter, 0
- homeFriedhofCounter.set(FriedhofCounter)
- IniRead, LSDCounter, %A_WorkingDir%\PurpleIceSettings.ini, Home, LSDCounter, 0
- homeLSDCounter.set(LSDCounter)
- IniRead, AutoSound, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoSound, 0
- homeAutoSound.set(AutoSound)
- IniRead, JoinCommand, %A_WorkingDir%\PurpleIceSettings.ini, Home, JoinCommand, 0
- if(JoinCommand != 0)
- GuiControl,, HomeFunctionJoinInput, %JoinCommand%
- IniRead, KillbinderEnabled, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Enabled, 0
- homeKillbinderEnabled.set(KillbinderEnabled)
- IniRead, Day, %A_WorkingDir%\PurpleIceSettings.ini, Stats, Day, 1
- killsDay:= Day
- IniRead, GKills, %A_WorkingDir%\PurpleIceSettings.ini, Stats, KillsGlobal, 0
- IniRead, DKills, %A_WorkingDir%\PurpleIceSettings.ini, Stats, KillsDaily, 0
- IniRead, GDeaths, %A_WorkingDir%\PurpleIceSettings.ini, Stats, DeathsGlobal, 0
- IniRead, DDeaths, %A_WorkingDir%\PurpleIceSettings.ini, Stats, DeathsDaily, 0
- killsGlobalKills:= GKills
- killsGlobalDeaths:= GDeaths
- killsDailyKills:= DKills
- killsDailyDeaths:= DDeaths
- Loop, 28 {
- IniRead, Hotkey, %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Hotkey%A_Index%, 0
- IniRead, Bind, %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Bind%A_Index%, 0
- if(Hotkey != 0){
- GuiControl,, KeybindsKey%A_Index%, %Hotkey%
- }
- if(Bind != 0){
- GuiControl,, KeybindsBind%A_Index%, %Bind%
- }
- }
- Loop, 4 {
- IniRead, Text1, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section%A_Index%_1, 0
- IniRead, Text2, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section%A_Index%_2, 0
- if(Text1 != 0){
- GuiControl,, HomeKillbinderSec%A_Index%_1, %Text1%
- }
- if(Text2 != 0){
- GuiControl,, HomeKillbinderSec%A_Index%_2, %Text2%
- }
- }
- Loop, 27 {
- IniRead, TextbindKey, %A_WorkingDir%\PurpleIceSettings.ini, Textbinds, TextbindKey%A_Index%, 0
- IniRead, TextbindVal, %A_WorkingDir%\PurpleIceSettings.ini, Textbinds, TextbindVal%A_Index%, 0
- if(TextbindKey != 0){
- GuiControl,, TextbindsKey%A_Index%, %TextbindKey%
- }
- if(TextbindVal != 0){
- GuiControl,, TextbindsBind%A_Index%, %TextbindVal%
- }
- }
- Loop, 27 {
- IniRead, AutonomousKey, %A_WorkingDir%\PurpleIceSettings.ini, Autonomous, AutonomousKey%A_Index%, 0
- IniRead, AutonomousVal, %A_WorkingDir%\PurpleIceSettings.ini, Autonomous, AutonomousVal%A_Index%, 0
- if(AutonomousKey != 0){
- GuiControl,, AutonomousKey%A_Index%, %AutonomousKey%
- }
- if(AutonomousVal != 0){
- GuiControl,, AutonomousBind%A_Index%, %AutonomousVal%
- }
- }
- IniRead, CarDL, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDL, 0
- overlaysCheckCardl.set(CarDL)
- IniRead, overlayCardlColor, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLColor, 228822
- GuiControl, +c%overlayCardlColor%, OverlaysCardlColor
- IniRead, overlayCardlSize, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLSize, 16
- GuiControl,, OverlaysCardlSize, %overlayCardlSize%
- IniRead, overlayCardlFont, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLFont, Tahoma
- GuiControl, ChooseString, OverlaysCardlFont, %overlayCardlFont%
- IniRead, overlayCardlX, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLX, 500
- IniRead, overlayCardlY, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLY, 500
- IniRead, LSDEnabled, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSD, 0
- overlaysCheckLSD.set(LSDEnabled)
- IniRead, overlayLSDColor, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDColor, 228822
- GuiControl, +c%overlayLSDColor%, OverlaysLSDColor
- IniRead, overlayLSDSize, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDSize, 16
- GuiControl,, OverlaysLSDSize, %overlayLSDSize%
- IniRead, overlayLSDFont, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDFont, Tahoma
- GuiControl, ChooseString, OverlaysLSDFont, %overlayLSDFont%
- IniRead, overlayLSDX, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDX, 500
- IniRead, overlayLSDY, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDY, 500
- IniRead, GoldEnabled, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, Gold, 0
- overlaysCheckGold.set(GoldEnabled)
- IniRead, overlayGoldColor, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldColor, 228822
- GuiControl, +c%overlayGoldColor%, OverlaysGoldColor
- IniRead, overlayGoldSize, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldSize, 16
- GuiControl,, OverlaysGoldSize, %overlayGoldSize%
- IniRead, overlayGoldFont, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldFont, Tahoma
- GuiControl, ChooseString, OverlaysGoldFont, %overlayGoldFont%
- IniRead, overlayGoldX, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldX, 500
- IniRead, overlayGoldY, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldY, 500
- IniRead, CustomEnabled, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, Custom, 0
- overlaysCheckCustom.set(CustomEnabled)
- IniRead, overlayCustomColor, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomColor, 228822
- GuiControl, +c%overlayCustomColor%, OverlaysCustomColor
- IniRead, overlayCustomSize, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomSize, 16
- GuiControl,, OverlaysCustomSize, %overlayCustomSize%
- IniRead, overlayCustomFont, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomFont, Tahoma
- GuiControl, ChooseString, OverlaysCustomFont, %overlayCustomFont%
- IniRead, overlayCustomX, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomX, 500
- IniRead, overlayCustomY, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomY, 500
- IniRead, automaticCommandCommand, %A_WorkingDir%\PurpleIceSettings.ini, Timer, Command, Hallo
- IniRead, automaticCommandInterval, %A_WorkingDir%\PurpleIceSettings.ini, Timer, Interval, 1000
- IniRead, customOverlayText, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomText, Custom
- IniRead, customOverlayTime, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomTime, 10
- IniRead, customOverlayTrigger, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomTrigger, Triggernachricht
- }
- saveINI(fast:= 0) {
- global
- if(loggedIn != 1)
- return
- CardlEnabled:= overlaysCheckCardl.isChecked()
- IniWrite, %CardlEnabled%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDL
- IniWrite, %overlayCardlColor%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLColor
- IniWrite, %overlayCardlX%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLX
- IniWrite, %overlayCardlY%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLY
- GuiControlGet, overlayCardlSize,, OverlaysCardlSize
- IniWrite, %overlayCardlSize%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLSize
- GuiControlGet, overlayCardlFont,, OverlaysCardlFont
- IniWrite, %overlayCardlFont%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CarDLFont
- LSDEnabled:= overlaysCheckLSD.isChecked()
- IniWrite, %LSDEnabled%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSD
- IniWrite, %overlayLSDColor%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDColor
- IniWrite, %overlayLSDX%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDX
- IniWrite, %overlayLSDY%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDY
- GuiControlGet, overlayLSDSize,, OverlaysLSDSize
- IniWrite, %overlayLSDSize%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDSize
- GuiControlGet, overlayLSDFont,, OverlaysLSDFont
- IniWrite, %overlayLSDFont%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, LSDFont
- GoldEnabled:= overlaysCheckGold.isChecked()
- IniWrite, %GoldEnabled%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, Gold
- IniWrite, %overlayGoldColor%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldColor
- IniWrite, %overlayGoldX%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldX
- IniWrite, %overlayGoldY%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldY
- GuiControlGet, overlayGoldSize,, OverlaysGoldSize
- IniWrite, %overlayGoldSize%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldSize
- GuiControlGet, overlayGoldFont,, OverlaysGoldFont
- IniWrite, %overlayGoldFont%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, GoldFont
- CustomEnabled:= overlaysCheckCustom.isChecked()
- IniWrite, %CustomEnabled%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, Custom
- IniWrite, %overlayCustomColor%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomColor
- IniWrite, %overlayCustomX%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomX
- IniWrite, %overlayCustomY%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomY
- GuiControlGet, overlayCustomSize,, OverlaysCustomSize
- IniWrite, %overlayCustomSize%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomSize
- GuiControlGet, overlayCustomFont,, OverlaysCustomFont
- IniWrite, %overlayCustomFont%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomFont
- if(fast == 4)
- return
- IniWrite, %killsGlobalKills%, %A_WorkingDir%\PurpleIceSettings.ini, Stats, KillsGlobal
- IniWrite, %killsDailyKills%, %A_WorkingDir%\PurpleIceSettings.ini, Stats, KillsDaily
- IniWrite, %killsGlobalDeaths%, %A_WorkingDir%\PurpleIceSettings.ini, Stats, DeathsGlobal
- IniWrite, %killsDailyDeaths%, %A_WorkingDir%\PurpleIceSettings.ini, Stats, DeathsDaily
- IniWrite, %killsDay%, %A_WorkingDir%\PurpleIceSettings.ini, Stats, Day
- if(fast == 2)
- return
- Premium:= homePremiumAccount.isChecked()
- IniWrite, %Premium%, %A_WorkingDir%\PurpleIceSettings.ini, Home, Premium
- AkAvailable:= homeAkAvailable.isChecked()
- IniWrite, %AkAvailable%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AkAvailable
- UseMFour:= homeMFourOverAK.isChecked()
- IniWrite, %UseMFour%, %A_WorkingDir%\PurpleIceSettings.ini, Home, UseMFour
- RankFour:= homeRankFour.isChecked()
- IniWrite, %RankFour%, %A_WorkingDir%\PurpleIceSettings.ini, Home, RankFour
- AutoTicket:= homeAutoTicket.isChecked()
- IniWrite, %AutoTicket%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoTicket
- AutoDriveby:= homeAutoDriveby.isChecked()
- IniWrite, %AutoDriveby%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoDriveby
- AutoWP:= homeAutoWP.isChecked()
- IniWrite, %AutoWP%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoWP
- AutoLicht:= homeAutoLicht.isChecked()
- IniWrite, %AutoLicht%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoLicht
- AutoEngine:= homeAutoEngine.isChecked()
- IniWrite, %AutoDriveby%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoEngine
- FriedhofCounter:= homeFriedhofCounter.isChecked()
- IniWrite, %FriedhofCounter%, %A_WorkingDir%\PurpleIceSettings.ini, Home, FriedhofCounter
- LSDCounter:= homeLSDCounter.isChecked()
- IniWrite, %FriedhofCounter%, %A_WorkingDir%\PurpleIceSettings.ini, Home, LSDCounter
- AutoSound:= homeAutoSound.isChecked()
- IniWrite, %AutoSound%, %A_WorkingDir%\PurpleIceSettings.ini, Home, AutoSound
- GuiControlGet, JoinCommand,, HomeFunctionJoinInput
- if(JoinCommand == "")
- JoinCommand:= 0
- IniWrite, %JoinCommand%, %A_WorkingDir%\PurpleIceSettings.ini, Home, JoinCommand
- KillbinderEnabled:= homeKillbinderEnabled.isChecked()
- IniWrite, %KillbinderEnabled%, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Enabled
- if(loginRememberMe.isChecked() == 1){
- IniWrite, %playerName%, %A_WorkingDir%\PurpleIceSettings.ini, Login, RememberMe
- } else {
- IniWrite, 0, %A_WorkingDir%\PurpleIceSettings.ini, Login, RememberMe
- }
- if(fast == 0){
- Loop, 28 {
- GuiControlGet, thisBind,, KeybindsBind%A_Index%
- GuiControlGet, thisKey,, KeybindsKey%A_Index%
- if(thisBind == "")
- thisBind:= 0
- if(thisKey == "")
- thisKey:= 0
- IniWrite, %thisKey%, %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Hotkey%A_Index%
- IniWrite, %thisBind%, %A_WorkingDir%\PurpleIceSettings.ini, Keybinds, Bind%A_Index%
- }
- Loop, 4 {
- GuiControlGet, text1,, HomeKillbinderSec%A_Index%_1
- GuiControlGet, text2,, HomeKillbinderSec%A_Index%_2
- if(text1 == "")
- text1:= 0
- if(text2 == "")
- text2:= 0
- IniWrite, %text1%, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section%A_Index%_1
- IniWrite, %text2%, %A_WorkingDir%\PurpleIceSettings.ini, Killbinder, Section%A_Index%_2
- }
- Loop, 27 {
- GuiControlGet, textKey,, TextbindsKey%A_Index%
- GuiControlGet, textVal,, TextbindsBind%A_Index%
- if(textKey == "")
- textKey:= 0
- if(textVal == "")
- textVal:= 0
- IniWrite, %textKey%, %A_WorkingDir%\PurpleIceSettings.ini, Textbinds, TextbindKey%A_Index%
- IniWrite, %textVal%, %A_WorkingDir%\PurpleIceSettings.ini, Textbinds, TextbindVal%A_Index%
- }
- Loop, 27 {
- GuiControlGet, autoKey,, AutonomousKey%A_Index%
- GuiControlGet, autoVal,, AutonomousBind%A_Index%
- if(autoKey == "")
- autoKey:= 0
- if(autoVal == "")
- autoVal:= 0
- IniWrite, %autoKey%, %A_WorkingDir%\PurpleIceSettings.ini, Autonomous, AutonomousKey%A_Index%
- IniWrite, %autoVal%, %A_WorkingDir%\PurpleIceSettings.ini, Autonomous, AutonomousVal%A_Index%
- }
- }
- return
- }
- handleHotkey(id, customHotkey="") {
- global
- GuiControlGet, thisKey,, KeybindsKey%id%
- if(!WinActive("ahk_exe gta_sa.exe")){
- if(InStr(thisKey, "Numpad")) {
- thisKey:= SubStr(thisKey, 7)
- }
- SendInput, %thisKey%
- return
- }
- if(id == "JOIN_COMMAND"){
- GuiControlGet, thisBind,, HomeFunctionJoinInput
- if(thisBind == "")
- return
- } else if(id == 22) {
- SendInput, {t}{up}{enter}
- return
- } else {
- GuiControlGet, thisBind,, KeybindsBind%id%
- if(keybindsEnabled == 0 or IsChatOpen() == 1 or IsDialogOpen() == 1 or IsMenuOpen() == 1){
- SendLevel 1
- Hotkey, *%thisKey%, off
- thisKeyToSend:= thisKey
- if(InStr(thisKeyToSend, "Numpad")){
- thisKeyToSend:= SubStr(thisKeyToSend, 7)
- }
- if(GetKeyState("Shift") or GetKeyState("LShift") or GetKeyState("RShift") or (GetKeyState("Capslock", "T") and GetKeyState("RShift") == 0 and GetKeyState("LShift") == 0) )
- SendEvent, +%thisKeyToSend%
- else
- if(GetKeyState("RALT") && GetKeyState("LCTRL"))
- SendEvent, !^%thisKeyToSend%
- else
- SendEvent, %thisKeyToSend%
- SendLevel 0
- Hotkey, *%thisKey%, on
- return
- }
- }
- if(customHotkey != ""){
- thisBind:= customHotkey
- }
- if(InStr(thisBind, "[Var]")){
- StringReplace, thisBind, thisBind, [Var], [Var], UseErrorLevel
- occurences:= ErrorLevel
- Loop, %occurences% {
- userInput:= playerInputText("Variable " A_Index ": ")
- StringReplace, thisBind, thisBind, [Var], %userInput%
- Sleep, 50
- }
- Sleep, 100
- }
- if(InStr(thisBind, "~") == 0) {
- StringLower, thisBindLower, thisBind
- if(thisBindLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, thisBindLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, thisBindLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(thisBind, "[InputMode]") == 0) {
- SendChat(thisBind)
- } else {
- Sleep, 200
- SendInput, StrReplace(thisBind, "[InputMode]")
- }
- }
- } else {
- commandSplit:= StrSplit(thisBind, "~", " ")
- For, index, value in commandSplit {
- if(RegExMatch(value, "\[Wait (\d*?)\]", wait)){
- thisCommand:= StrReplace(value, wait)
- waitTime:= StrReplace(value, "[Wait ")
- waitTime:= StrReplace(waitTime, "]")
- Sleep, %waitTime%
- StringLower, thisCommandLower, thisCommand
- if(thisCommandLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, thisCommandLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, thisCommandLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(thisCommand, "[InputMode]") == 0) {
- SendChat(thisCommand)
- } else {
- Sleep, 200
- command:= StrReplace(thisCommand, "[InputMode]")
- SendInput, %command%
- }
- }
- } else {
- StringLower, valueLower, value
- if(valueLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, valueLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, valueLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(value, "[InputMode]") == 0) {
- SendChat(value)
- } else {
- Sleep, 200
- command:= StrReplace(value, "[InputMode]")
- SendInput, %command%
- }
- }
- }
- }
- }
- }
- handleKillbinder() {
- global
- if(homeKillbinderEnabled.isChecked() == 0)
- return
- sectionsEnabled:= []
- Loop, 4 {
- GuiControlGet, text1,, HomeKillbinderSec%A_Index%_1
- GuiControlGet, text2,, HomeKillbinderSec%A_Index%_2
- if(text1 != "" or text2 != "")
- sectionsEnabled.Push(A_Index)
- }
- entry:= random(1, sectionsEnabled.MaxIndex())
- GuiControlGet, text1,, HomeKillbinderSec%entry%_1
- GuiControlGet, text2,, HomeKillbinderSec%entry%_2
- globalDeathsForCalculation:= (killsGlobalDeaths == 0 ? 1 : killsGlobalDeaths)
- dailyDeathsForCalculation:= (killsDailyDeaths == 0 ? 1 : killsDailyDeaths)
- text1:= StrReplace(text1, "[GKills]", killsGlobalKills)
- text1:= StrReplace(text1, "[DKills]", killsDailyKills)
- text1:= StrReplace(text1, "[GDeaths]", killsGlobalDeaths)
- text1:= StrReplace(text1, "[DDeaths]", killsDailyDeaths)
- text1:= StrReplace(text1, "[Streak]", killsStreak)
- text1:= StrReplace(text1, "[GKD]", floorDecimal((killsGlobalKills/globalDeathsForCalculation), 2))
- text1:= StrReplace(text1, "[DKD]", floorDecimal((killsDailyKills/dailyDeathsForCalculation), 2))
- text2:= StrReplace(text2, "[GKills]", killsGlobalKills)
- text2:= StrReplace(text2, "[DKills]", killsDailyKills)
- text2:= StrReplace(text2, "[GDeaths]", killsGlobalDeaths)
- text2:= StrReplace(text2, "[DDeaths]", killsDailyDeaths)
- text2:= StrReplace(text2, "[Streak]", killsStreak)
- text2:= StrReplace(text2, "[GKD]", floorDecimal((killsGlobalKills/globalDeathsForCalculation), 2))
- text2:= StrReplace(text2, "[DKD]", floorDecimal((killsDailyKills/dailyDeathsForCalculation), 2))
- if(text1 != "") {
- if(InStr(text1, "~") == 0)
- SendChat(text1)
- else {
- text1Parts:= StrSplit(text1, "~", " ")
- For, index, value in text1Parts {
- SendChat(value)
- }
- }
- }
- if(text2 != "") {
- if(InStr(text2, "~") == 0)
- SendChat(text2)
- else {
- text2Parts:= StrSplit(text2, "~", " ")
- For, index, value in text2Parts {
- SendChat(value)
- }
- }
- }
- return
- }
- handleWPs(wpindex) {
- global
- if(wpindex < 0 or wpindex > wpbindKeys.MaxIndex())
- return
- Sleep, 40
- playerID:= playerInputText("Gebe einen Spieler an: ")
- Sleep, 40
- SendChat("/su " playerID " " wpbindWPs[wpindex] " " wpbindReasons[wpindex])
- return
- }
- processFriedhofCounter() {
- global
- if(timeOnFriedhof == 0 or homeFriedhofCounter.isChecked() == 0)
- return
- if(timeOnFriedhof == 240 or timeOnFriedhof == 120 or timeOnFriedhof == 60 or timeOnFriedhof == 30 or timeOnFriedhof == 15 or (timeOnFriedhof > -1 and timeOnFriedhof <= 5))
- AddChatMessage("Du bist noch {0099FF}" timeOnFriedhof " Sekunden {FFFFFF}auf dem Friedhof.")
- timeOnFriedhof--
- }
- processLSDCounter() {
- global
- if(timeLSD == 0)
- return
- timeLSD--
- if(homeLSDCounter.isChecked() == 0)
- return
- tempLSD:= timeLSD + 1
- if(tempLSD == 89 or tempLSD == 60 or tempLSD == 30 or tempLSD == 15 or (tempLSD > -1 and tempLSD <= 5)) {
- if(tempLSD == 89)
- AddChatMessage("Der LSD-Rausch endet in {0099FF}90 Sekunden{FFFFFF}.")
- else
- AddChatMessage("Der LSD-Rausch endet in {0099FF}" tempLSD " Sekunden{FFFFFF}.")
- }
- }
- processGoldCounter() {
- global
- if(timeGold == 0)
- return
- timeGold--
- }
- processCustomCounter() {
- global
- if(timeCustomOverlay == 0)
- return
- timeCustomOverlay--
- }
- processChat() {
- global
- count:= GetChatLineCount()
- if(!WinExist("ahk_exe gta_sa.exe")) {
- processedChatCount:= 1
- return
- }
- if(count < processedChatCount)
- return
- if(count < processedChatCount)
- processedChatCount:= 0
- while((count-processedChatCount) > -1){
- GetChatLine((count-processedChatCount), chat0)
- processedChatCount++
- if(hasValue(processedMessages, chat0)) {
- continue
- }
- processedMessages.Push(chat0)
- if(chat0 == "" or chat0 == 0)
- return
- if(RegStr(chat0, "hushushsushusu123123123")){
- AddChatMessage("{" textColor "}[BinderRemote] {0099FF}Kontaktiere das CP nach neuen Nachrichten..")
- Sleep, 1000
- downloadStrings()
- Sleep, 500
- AddChatMessage("{" textColor "}[BinderRemote] {0099FF}Routine beendet.")
- }
- For, index, key in messagesKeys {
- keySplit:= StrSplit(key, "__")
- if(keySplit[2] == "0" or keySplit[2] == 0){
- if(InStr(chat0, keySplit[1])){
- SendChat(messagesValues[index])
- }
- } else {
- if(InStr(chat0, keySplit[1]) and !InStr(chat0, ": " keySplit[1])){
- SendChat(messagesValues[index])
- }
- }
- }
- GetPlayerName(playerNameProcess, 100)
- if(RegStr(chat0, "INFO: " playerNameProcess " ") and !InStr(chat0, ": INFO: ")){
- AddChatMessage("{" textColor "}[Binder] {0099FF}Kontaktiere das CP..")
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- GetPlayerPosition(x, y, z)
- r:= WinHTTPRequest("https://finn.ovh/binder2/createplant.php?user=" Username "&pass=" Password "&type=1&x=" Floor(x) "&y=" Floor(y), response)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Der Server hat einen Fehler gemeldet.")
- return
- }
- if(response != "DONE"){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Die Plantage konnte nicht eingetragen werden.")
- return
- }
- AddChatMessage("{" textColor "}[Binder] {00FF00}Die Plantage wurde erfolgreich eingetragen.")
- }
- if(RegStr(chat0, "INFO: " playerNameProcess " hurensohn123123123.") and !InStr(chat0, ": INFO: ")){
- AddChatMessage("{" textColor "}[Binder] {0099FF}Kontaktiere das CP..")
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- GetPlayerPosition(x, y, z)
- r:= WinHTTPRequest("https://finn.ovh/binder2/createplant.php?user=" Username "&pass=" Password "&type=0&x=" Floor(x) "&y=" Floor(y), response)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Es ist ein Fehler bei der Verarbeitung aufgetreten.")
- return
- }
- if(response != "DONE"){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Die Plantage konnte nicht eingetragen werden.")
- return
- }
- AddChatMessage("{" textColor "}[Binder] {00FF00}Die Plantage wurde erfolgreich eingetragen.")
- }
- if(RegStr(chat0, "Du hast ein Verbrechen begangen ( Vors") OR RegStr(chat0, "SERVER: Du hast gerade einen Mord begangen. Achtung!") OR RegStr(chat0, "GANGWAR: Du hast einen Feind ausgeschaltet.") OR RegStr(chat0, "CASINO-EROBERUNG: Du hast einen Feind ausgeschaltet.") OR RegStr(chat0, "CRACK FESTUNG: Du hast einen Feind ausgeschaltet.") OR (InStr(chat0, "[ ") AND InStr(chat0, "tet | Grund: Blacklisted]"))) {
- killsDailyKills++
- killsGlobalKills++
- killsStreak++
- saveINI(2)
- handleKillbinder()
- dailyDeathsForCalculation:= (killsDailyDeaths == 0 ? 1 : killsDailyDeaths)
- dailyKD:= floorDecimal((killsDailyKills/dailyDeathsForCalculation), 2)
- AddChatMessage("{" textColor "}[Heutige] {0099FF}Kills: {FFFFFF}" killsDailyKills " {0099FF}Tode: {FFFFFF}" killsDailyDeaths " {0099FF}K/D: {FFFFFF}" dailyKD)
- }
- if(RegStr(chat0, "INFO: Mit /quiz kannst du ein Quizduell starten oder mit /newquiz neue Fragen erstellen.")){
- killsDailyDeaths++
- killsGlobalDeaths++
- killsStreak:= 0
- timeLSD:= 0
- timeGold:= 0
- saveINI(2)
- SendChat("/friedhof")
- Sleep, 200
- GetChatLine(0, chat, 0)
- chat:= SubStr(chat, 12)
- RegExMatch(chat, "\d+", friedhofTimeFound)
- timeOnFriedhof:= friedhofTimeFound
- }
- if(RegStr(chat0, "Du hast LSD Pillen eingenommen")){
- timeLSD:= 89
- }
- if(RegStr(chat0, "Du hast 20g Acapulco Gold benutzt!")){
- timeGold:= 59
- }
- if(RegStr(chat0, "Du hast 2g Hawaiian Green benutzt!")) {
- timeGold:= 44
- }
- if(InStr(chat0, "SA-MP 0.3.7 Started")){
- keybindsEnabled:= 0
- }
- if(InStr(chat0, customOverlayTrigger)) {
- timeCustomOverlay:= customOverlayTime
- }
- if(InStr(chat0, "SERVER: Willkommen ")){
- keybindsEnabled:= 1
- AddChatMessage("Der {71176B}Binder {FFFFFF}Binder wurde {00FF00}aktiviert")
- handleHotkey("JOIN_COMMAND")
- }
- if(RegStr(chat0, "sup boryaa12123: ")) {
- if(sendGangGang == 0)
- return
- Sleep, 100
- }
- }
- if(RegStr(chat0, "ERFOLGREICH: Die Nachricht wurde gesendet.")){
- keybindsEnabled:= 1
- }
- if(RegStr(chat0, "Zum entfernen der Parkkralle kannst du /gpayticket eingeben")){
- if(homeRankFour.isChecked() == 0)
- return
- SendChat("/glfcar")
- Sleep, 200
- if(homeAutoTicket.isChecked() == 0)
- return
- SendChat("/gpayticket")
- Sleep, 200
- SendChat("/cveh motor")
- }
- if(RegStr(chat0, "Momentanes Wantedlevel: ") and InStr(chat0, "| Wantedpunkte: ")){
- if(homeAutoWP.isChecked() == 0)
- return
- GetChatLine(1, chat11)
- if(InStr(chat11, "Du hast ein Verbrechen begangen")){
- after:= StrSplit(chat11, "(", " ")
- reasonFiltered:= StrSplit(after[2], ")", " ")
- reason:= reasonFiltered[1]
- } else {
- reason:= -1
- }
- parts:= StrSplit(SubStr(chat0, 11), "|")
- RegExMatch(parts[1], "\d+", number1)
- RegExMatch(parts[2], "\d+", number2)
- if(reason == -1){
- SendChat("/f Wantedpunkte: " number2)
- } else {
- SendChat("/f Wantedpunkte: " number2 " | Grund: " reason)
- }
- }
- autonomousCount:= autonomousKeys.MaxIndex()
- if(autonomousCount) {
- Loop, %autonomousCount% {
- if(InStr(chat0, autonomousKeys[A_Index])){
- handleHotkey(1, autonomousValues[A_Index])
- }
- }
- }
- }
- processCustomCommand() {
- global
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- thisBind:= automaticCommandCommand
- if(InStr(thisBind, "[Var]")){
- StringReplace, thisBind, thisBind, [Var], [Var], UseErrorLevel
- occurences:= ErrorLevel
- Loop, %occurences% {
- userInput:= playerInputText("Variable " A_Index ": ")
- StringReplace, thisBind, thisBind, [Var], %userInput%
- Sleep, 50
- }
- Sleep, 100
- }
- if(InStr(thisBind, "~") == 0) {
- StringLower, thisBindLower, thisBind
- if(thisBindLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, thisBindLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, thisBindLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(thisBind, "[InputMode]") == 0) {
- SendChat(thisBind)
- } else {
- Sleep, 200
- SendInput, StrReplace(thisBind, "[InputMode]")
- }
- }
- } else {
- commandSplit:= StrSplit(thisBind, "~", " ")
- For, index, value in commandSplit {
- if(RegExMatch(value, "\[Wait (\d*?)\]", wait)){
- thisCommand:= StrReplace(value, wait)
- waitTime:= StrReplace(value, "[Wait ")
- waitTime:= StrReplace(waitTime, "]")
- Sleep, %waitTime%
- StringLower, thisCommandLower, thisCommand
- if(thisCommandLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, thisCommandLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, thisCommandLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(thisCommand, "[InputMode]") == 0) {
- SendChat(thisCommand)
- } else {
- Sleep, 200
- command:= StrReplace(thisCommand, "[InputMode]")
- SendInput, %command%
- }
- }
- } else {
- StringLower, valueLower, value
- if(valueLower == "/dl")
- SendInput, {t}{/}{d}{l}{enter}
- else if(hasValue(customCommands, valueLower)) {
- SendLevel 1
- SendEvent, t
- SendLevel 0
- Loop, Parse, valueLower
- {
- character:= A_LoopField
- SendLevel 1
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, off
- }
- SendEvent, %character%
- SendLevel 0
- if(hasValue(activeHotkeys, character)){
- Hotkey, *%character%, on
- }
- }
- SendLevel 1
- SendEvent, {enter}
- SendLevel 0
- } else {
- if(InStr(value, "[InputMode]") == 0) {
- SendChat(value)
- } else {
- Sleep, 200
- command:= StrReplace(value, "[InputMode]")
- SendInput, %command%
- }
- }
- }
- }
- }
- }
- checkNewDay() {
- global
- if(killsDay == A_YDay)
- return
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Es ist ein neuer Tag! Deine Tagesstats wurden resetted.")
- killsDay:= A_YDay
- killsDailyKills:= 0
- killsDailyDeaths:= 0
- saveINI(2)
- }
- checkSprayMessage() {
- global
- if(sendGangGang == 0)
- return
- if(A_Min != 45) {
- sprayMessageSent:= 0
- return
- }
- if(sprayMessageSent == 1) {
- return
- }
- if(A_Min == 45){
- sprayMessageSent:= 1
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}OB8! Es ist {0099FF}" A_Hour ":" A_Min "{FFFFFF}! Bitte die Sprays machen!")
- }
- }
- checkPlantMessage() {
- global
- if(A_Min != 10){
- plantMessageSent:= 0
- return
- }
- if(plantMessageSent == 1) {
- return
- }
- if(A_Min == 10){
- plantMessageSent:= 1
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- r:= WinHTTPRequest("https://finn.ovh/binder2/plantmessage.php?user=" Username "&pass=" Password, response)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Es ist ein Fehler beim Abrufen der Plantagen aufgetreten.")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- if(response == "NOPE"){
- return
- }
- if(response == "EMPTY"){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Warum zum Fick liegen keine Plants? Kack nns.")
- return
- }
- AddChatMessage("{404040}------------------------------")
- Sleep, 40
- infoSplit:= StrSplit(response, "|||")
- For, index, value in infoSplit {
- thisInfo:= StrSplit(value, "||")
- plantType:= thisInfo[1] == 0 ? "{29A329}Green" : "{E6E600}Gold"
- AddChatMessage(plantType " {404040}>> {0099FF}Reif in: {FFFFFF}" thisInfo[3] " Stunden {404040}| {0099FF}Von: {FFFFFF}" thisInfo[2])
- Sleep, 200
- }
- AddChatMessage("{404040}------------------------------")
- }
- }
- login() {
- global
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- hwid:= "abc"
- if(Username == "" or Password == "" or loginRunning == 1)
- return
- loginRunning:= 1
- r:= WinHTTPRequest("https://finn.ovh/binder2/binderlogin.php?name=" Username "&pass=" Password "&hwid=" hwid, response)
- loginRunning:= 0
- if(r != -1){
- MsgBox, Es ist ein Fehler beim Login aufgetreten.
- return
- }
- if(response == "NOPE"){
- MsgBox, 16, Binder ~ Login, Login fehlgeschlagen.,
- return
- }
- playerName:= Username
- apiKey:= response
- if(loginRememberMe.isChecked() == 1){
- IniWrite, %Username%, %A_WorkingDir%\PurpleIceSettings.ini, Login, RememberMe
- } else {
- IniWrite, 0, %A_WorkingDir%\PurpleIceSettings.ini, Login, RememberMe
- }
- }
- changeOverlayColor(overlayName) {
- CmnDlg_Color(color, hgui)
- RegExMatch(color, "0x(.*)",color)
- if(color == "" or color == 0)
- color = "0099FF"
- if(overlayName == "cardl"){
- overlayCardlColor:= SubStr(color, 3)
- GuiControl, +c%color%, OverlaysCardlColor
- GuiControl, Hide, OverlaysCardlColor
- GuiControl, Show, OverlaysCardlColor
- }
- if(overlayName == "lsd"){
- overlayLSDColor:= SubStr(color, 3)
- GuiControl, +c%color%, OverlaysLSDColor
- GuiControl, Hide, OverlaysLSDColor
- GuiControl, Show, OverlaysLSDColor
- }
- if(overlayName == "gold"){
- overlayGoldColor:= SubStr(color, 3)
- GuiControl, +c%color%, OverlaysGoldColor
- GuiControl, Hide, OverlaysGoldColor
- GuiControl, Show, OverlaysGoldColor
- }
- if(overlayName == "custom"){
- overlayCustomColor:= SubStr(color, 3)
- GuiControl, +c%color%, OverlaysCustomColor
- GuiControl, Hide, OverlaysCustomColor
- GuiControl, Show, OverlaysCustomColor
- }
- return
- }
- changeOverlayPosition(x, y){
- if(overlayEditMode == 0)
- return
- overlayEditX:= overlayEditX + x
- overlayEditY:= overlayEditY + y
- if(overlayEditWhich == "cardl"){
- TextSetPos(overlayCardl, overlayEditX, overlayEditY)
- }
- if(overlayEditWhich == "lsd"){
- TextSetPos(overlayLSD, overlayEditX, overlayEditY)
- }
- if(overlayEditWhich == "gold"){
- TextSetPos(overlayGold, overlayEditX, overlayEditY)
- }
- if(overlayEditWhich == "custom"){
- TextSetPos(overlayCustom, overlayEditX, overlayEditY)
- }
- return
- }
- initOverlays() {
- global
- DestroyAllVisual()
- overlayCardl:= -1
- if(overlaysCheckCardl.isChecked() == 1 or (overlayEditMode == 1 and overlayEditWhich == "cardl")) {
- overlayCardl:= TextCreate(overlayCardlFont, overlayCardlSize, 1, 0, overlayCardlX, overlayCardlY, 0xFF "" overlayCardlColor, "DL: Loading..", 1, 1)
- }
- overlayLSD:= -1
- if(overlaysCheckLSD.isChecked() == 1 or (overlayEditMode == 1 and overlayEditWhich == "lsd")) {
- overlayLSD:= TextCreate(overlayLSDFont, overlayLSDSize, 1, 0, overlayLSDX, overlayLSDY, 0xFF "" overlayLSDColor, "LSD: Loading..", 1, 1)
- }
- overlayGold:= -1
- if(overlaysCheckGold.isChecked() == 1 or (overlayEditMode == 1 and overlayEditWhich == "gold")) {
- overlayGold:= TextCreate(overlayGoldFont, overlayGoldSize, 1, 0, overlayGoldX, overlayGoldY, 0xFF "" overlayGoldColor, "Gold: Loading..", 1, 1)
- }
- overlayCustom:= -1
- if(overlaysCheckCustom.isChecked() == 1 or (overlayEditMode == 1 and overlayEditWhich == "custom")) {
- overlayCustom:= TextCreate(overlayCustomFont, overlayCustomSize, 1, 0, overlayCustomX, overlayCustomY, 0xFF "" overlayCustomColor, "Custom: Loading..", 1, 1)
- }
- return
- }
- updateOverlays() {
- global
- if(!WinExist("ahk_exe gta_sa.exe")){
- DestroyAllVisual()
- overlayCardl := -1
- return
- }
- if(overlaysCheckCardl.isChecked() == 1 or overlayEditMode == 1) {
- if(overlayCardl == -1){
- initOverlays()
- return
- }
- dl:= GetVehicleHealth()
- if(dl < 0 and overlayEditMode != 1){
- TextSetShown(overlayCardl, false)
- } else {
- TextSetShown(overlayCardl, true)
- TextSetString(overlayCardl, "DL: " floorDecimal(GetVehicleHealth(), 2))
- }
- }
- if(overlaysCheckLSD.isChecked() == 1 or overlayEditMode == 1) {
- if(overlayLSD == -1){
- initOverlays()
- return
- }
- if(timeLSD < 1 and overlayEditMode != 1){
- TextSetShown(overlayLSD, false)
- } else {
- TextSetShown(overlayLSD, true)
- TextSetString(overlayLSD, "LSD: " timeLSD)
- }
- }
- if(overlaysCheckGold.isChecked() == 1 or overlayEditMode == 1) {
- if(overlayGold == -1){
- initOverlays()
- return
- }
- if(timeGold < 1 and overlayEditMode != 1){
- TextSetShown(overlayGold, false)
- } else {
- TextSetShown(overlayGold, true)
- TextSetString(overlayGold, "Gold: " timeGold)
- }
- }
- if(overlaysCheckCustom.isChecked() == 1 or overlayEditMode == 1) {
- if(overlayCustom == -1){
- initOverlays()
- return
- }
- if(timeCustomOverlay < 1 and overlayEditMode != 1){
- TextSetShown(overlayCustom, false)
- } else {
- TextSetShown(overlayCustom, true)
- TextSetString(overlayCustom, customOverlayText ": " timeCustomOverlay)
- }
- }
- return
- }
- removeOverlays() {
- if(overlayCardl != -1)
- TextDestroy(overlayCardl)
- if(overlayLSD != -1)
- TextDestroy(overlayLSD)
- if(overlayGold != -1)
- TextDestroy(overlayGold)
- if(overlayCustom != -1)
- TextDestroy(overCustom)
- return
- }
- doAutoSound() {
- global
- nowHP:= GetPlayerHealth()
- nowAM:= GetPlayerArmor()
- sumDif:= (lastHP - nowHP) + (lastAM - nowAM)
- if(sumDif >= 5) {
- PlaySound(hitSound)
- }
- lastHP:= nowHP
- lastAM:= nowAM
- return
- }
- doAutoDriveby() {
- global
- if(drivebyAlreadySet and IsPlayerInAnyVehicle() == 0){
- drivebyAlreadySet:= 0
- return
- }
- if(IsPlayerPassenger() and drivebyAlreadySet == 0){
- drivebyAlreadySet:= 1
- Sleep, 100
- SendChat("/swapgun")
- Sleep, 200
- if(homeMFourOverAK.isChecked() == 1) {
- SendInput, {down 2}{enter}
- } else {
- if(homePremiumAccount.isChecked() == 1 and homeAkAvailable.isChecked() == 1) {
- SendInput, {down 3}{enter}
- } else {
- SendInput, {down}{enter}
- }
- }
- }
- return
- }
- doAutoEngine() {
- global
- if(engineAlreadySet and IsPlayerInAnyVehicle() == 0){
- engineAlreadySet:= 0
- return
- }
- if(IsPlayerDriver() and engineAlreadySet == 0 and IsVehicleEngineEnabled() == 0){
- engineAlreadySet:= 1
- Sleep, 100
- SendChat("/cveh motor")
- } else if(IsPlayerDriver() and engineAlreadySet == 0 and IsVehicleEngineEnabled() == 1)
- engineAlreadySet:= 1
- return
- }
- doAutoLicht() {
- global
- if(lichtAlreadySet and IsPlayerInAnyVehicle() == 0){
- lichtAlreadySet:= 0
- return
- }
- if(IsPlayerDriver() and lichtAlreadySet == 0 and IsVehicleLightEnabled() == 0 and (A_Hour >= 21 or A_Hour <= 6)){
- lichtAlreadySet:= 1
- Sleep, 100
- SendChat("/cveh licht")
- } else if(IsPlayerDriver() and lichtAlreadySet == 0 and IsVehicleLightEnabled() == 1)
- lichtAlreadySet:= 1
- return
- }
- hasValue(haystack, needle) {
- if(!isObject(haystack))
- return false
- if(haystack.Length()==0)
- return false
- for k,v in haystack
- if(v==needle)
- return true
- return false
- }
- GetChatLineCount(){
- global chatlogpath
- FileRead, file, %chatlogpath%
- StringReplace, file, file, `n, `n, UseErrorLevel
- return ErrorLevel
- }
- 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
- }
- random(min, max){
- Random, outputRandom, %min%, %max%
- return %outputRandom%
- }
- floorDecimal(num,dec) {
- return RegExReplace(num,"(?<=\.\d{" dec "}).*$")
- }
- playerInputText(text) {
- s := A_IsSuspended
- Suspend On
- KeyWait Enter
- SendInput t^a{backspace}%text%
- Input, var, v, {enter}
- SendInput ^a{backspace 100}{enter}
- Sleep, 20
- if(!s)
- Suspend Off
- return var
- }
- playerInput(text, requireNumber:=0) {
- AddChatMessage("{71176B}[Input] {FFFFFF}Akzeptieren mit {0099FF}[ENTER]{FFFFFF}, abbrechen mit {0099FF}[ESC]")
- dialogID:= dialogID + 1
- ShowDialog(dialogID, 1, "{" textColor "}[Binder] {FFFFFF}" text ":", "", "", "")
- Input, value, V, {enter}{esc},
- if(InStr(ErrorLevel, "Escape"))
- return "-1"
- if(requireNumber == 1 and (value is number))
- return value
- else
- return "NaN"
- }
- CmnDlg_Color(ByRef pColor, hGui=0){
- clr := ((pColor & 0xFF) << 16) + (pColor & 0xFF00) + ((pColor >> 16) & 0xFF)
- VarSetCapacity(sCHOOSECOLOR, 0x24, 0)
- VarSetCapacity(aChooseColor, 64, 0)
- NumPut(0x24, sCHOOSECOLOR, 0)
- NumPut(hGui, sCHOOSECOLOR, 4)
- NumPut(clr, sCHOOSECOLOR, 12)
- NumPut(&aChooseColor,sCHOOSECOLOR, 16)
- NumPut(0x00000103, sCHOOSECOLOR, 20)
- nRC := DllCall("comdlg32\ChooseColorA", str, sCHOOSECOLOR)
- if (errorlevel <> 0) || (nRC = 0)
- return false
- clr := NumGet(sCHOOSECOLOR, 12)
- oldFormat := A_FormatInteger
- SetFormat, integer, hex
- pColor := (clr & 0xff00) + ((clr & 0xff0000) >> 16) + ((clr & 0xff) << 16)
- StringTrimLeft, pColor, pColor, 2
- loop, % 6-strlen(pColor)
- pColor=0%pColor%
- pColor=0x%pColor%
- SetFormat, integer, %oldFormat%
- return true
- }
- checkNewVersion(){
- global
- r:= WinHTTPRequest("https://finn.ovh/binder2/version.txt", newestVersion)
- if(r != -1){
- MsgBox, Es ist ein Fehler beim Update-Check aufgetreten.
- return
- }
- if(newestVersion != version){
- GuiControl,, LoadingText, Update...
- Sleep, 2000
- URLDownloadToFile, http://finn.ovh/binder2/PIB.exe, %A_ScriptName%.new
- BatchFile=
- (
- Ping 127.0.0.1
- Del "%A_ScriptName%"
- Rename "%A_ScriptName%.new" "%A_ScriptName%"
- cd "%A_WorkingDir%"
- "%A_ScriptName%"
- Echo Fertig!
- )
- FileDelete, updater.bat
- FileAppend, %BatchFile%, updater.bat
- Run *RunAs updater.bat
- ExitApp
- return
- }
- if(!FileExist("bin/Open-SAMP-API.dll")){
- URLDownloadToFile, http://finn.ovh/binder2/Open-SAMP-API.dll, bin/Open-SAMP-API.dll
- MsgBox, Die neue API wurde heruntergeladen. Bitte den Binder neustarten!
- ExitApp
- }
- if(!FileExist("img/hitsound.wav")){
- URLDownloadToFile, http://finn.ovh/binder2/hitsound.wav, img/hitsound.wav
- MsgBox, Der Standard-Hitsound wurde heruntergeladen. Bitte den Binder neustarten!
- ExitApp
- }
- }
- downloadStrings() {
- global
- r:= WinHTTPRequest("https://finn.ovh/binder2/strings.php", stringSet)
- if(r != -1){
- MsgBox, Es ist ein Fehler beim Herunterladen der benutzerdefinierten Trigger-Nachrichten aufgetreten.
- return
- }
- stringSetValues:= StrSplit(stringSet, "|||")
- valueFound:= 0
- For, index, element in stringSetValues {
- thisValues:= StrSplit(element, "||")
- if(!hasValue(messagesValues, thisValues[2]) and messagesValues.MaxIndex() > 1)
- valueFound:= 1
- }
- oldLength:= messagesKeys.MaxIndex()
- messagesKeys:= []
- messagesValues:= []
- For, index, element in stringSetValues {
- thisValues:= StrSplit(element, "||")
- messagesKeys.Push(thisValues[1])
- messagesValues.Push(thisValues[2])
- }
- if(loggedIn == 1) {
- if(valueFound == 1 or oldLength != messagesValues.MaxIndex()){
- AddChatMessage("{" textColor "}[BinderRemote] {FFFFFF}Es wurden {00FF00}neue {FFFFFF}Nachrichten gefunden.")
- } else {
- AddChatMessage("{" textColor "}[BinderRemote] {FFFFFF}Es wurden {FF0000}keine {FFFFFF}neuen Nachrichten gefunden.")
- }
- }
- return
- }
- CalcAddrHash(addr, length, algid, byref hash = 0, byref hashlength = 0)
- {
- static h := [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, "a", "b", "c", "d", "e", "f"]
- static b := h.minIndex()
- hProv := hHash := o := ""
- if (DllCall("advapi32\CryptAcquireContext", "Ptr*", hProv, "Ptr", 0, "Ptr", 0, "UInt", 24, "UInt", 0xf0000000))
- {
- if (DllCall("advapi32\CryptCreateHash", "Ptr", hProv, "UInt", algid, "UInt", 0, "UInt", 0, "Ptr*", hHash))
- {
- if (DllCall("advapi32\CryptHashData", "Ptr", hHash, "Ptr", addr, "UInt", length, "UInt", 0))
- {
- if (DllCall("advapi32\CryptGetHashParam", "Ptr", hHash, "UInt", 2, "Ptr", 0, "UInt*", hashlength, "UInt", 0))
- {
- VarSetCapacity(hash, hashlength, 0)
- if (DllCall("advapi32\CryptGetHashParam", "Ptr", hHash, "UInt", 2, "Ptr", &hash, "UInt*", hashlength, "UInt", 0))
- {
- loop % hashlength
- {
- v := NumGet(hash, A_Index - 1, "UChar")
- o .= h[(v >> 4) + b] h[(v & 0xf) + b]
- }
- }
- }
- }
- DllCall("advapi32\CryptDestroyHash", "Ptr", hHash)
- }
- DllCall("advapi32\CryptReleaseContext", "Ptr", hProv, "UInt", 0)
- }
- return o
- }
- EnvGet(envname) {
- EnvGet, tempOutput, %envname%
- return tempOutput
- }
- PlayerIsFBI() {
- if(playerName == "SchreibTiscH" or playerName == "Sichelmann")
- return 1
- else
- return 0
- }
- RegStr(String, Needle, Needle2="", Needle3="") {
- StringLower, String, String
- StringLower, Needle, Needle
- StringLower, Needle2, Needle2
- StringLower, Needle3, Needle3
- Pos := RegExMatch(String, "U)^\[\d{2}:\d{2}:\d{2}\].*:.*\Q" . Needle . "\E", output)
- if(output)
- return 0
- if(!Needle2 AND !Needle3) {
- if(InStr(String, Needle))
- return 1
- }
- if(Needle2 AND !Needle3) {
- if(InStr(String, Needle) AND InStr(String, Needle2))
- return 1
- }
- if(Needle2 AND Needle3) {
- if(InStr(String, Needle) AND InStr(String, Needle2) AND InStr(String, Needle3))
- return 1
- }
- return 0
- }
- CalcStringHash(string, algid, encoding = "UTF-8", byref hash = 0, byref hashlength = 0) {
- chrlength := (encoding = "CP1200" || encoding = "UTF-16") ? 2 : 1
- length := (StrPut(string, encoding) - 1) * chrlength
- VarSetCapacity(data, length, 0)
- StrPut(string, &data, floor(length / chrlength), encoding)
- return CalcAddrHash(&data, length, algid, hash, hashlength)
- }
- PlaySound( ByRef Sound ) {
- Return DllCall( "winmm.dll\PlaySound" ( A_IsUnicode ? "W" : "A" ), UInt,&Sound, UInt,0
- , UInt, ((SND_MEMORY:=0x4)|(SND_NODEFAULT:=0x2)) )
- }
- Class CheckBox {
- __New(x, y, text, callbackName, wherePushElems){
- this.x:= x
- this.y:= y
- this.callbackName:= callbackName
- this.wherePushElems:= wherePushElems
- this.text:= text
- this.checked:= 0
- this.elemName1 := "Element" elementCounter
- elementCounter+=1
- this.elemName2 := "Element" elementCounter
- elementCounter+=1
- this.draw()
- }
- draw(){
- global
- font(16)
- thisX:= this.x
- thisY:= this.y
- textX:= this.x+40
- textY:= this.y+2
- callbackName:= this.callbackName
- elemName1:= this.elemName1
- elemName2:= this.elemName2
- elemText:= this.text
- sectionToPush:= this.wherePushElems
- elements[sectionToPush].Push(elemName1)
- elements[sectionToPush].Push(elemName2)
- if(sectionToPush != "login") {
- Gui, Add, Picture, x%thisX% y%thisY% v%elemName1% g%callbackName% +hidden, img/elements/checkUnchecked.png
- Gui, Add, Text, x%textX% y%textY% cPurple v%elemName2% g%callbackName% +hidden, %elemText%
- } else {
- Gui, Add, Picture, x%thisX% y%thisY% v%elemName1% g%callbackName%, img/elements/checkUnchecked.png
- Gui, Add, Text, x%textX% y%textY% cPurple v%elemName2% g%callbackName%, %elemText%
- }
- }
- updateBox() {
- path:= (this.checked = 0 ? "img/elements/checkUnchecked.png" : "img/elements/checkChecked.png")
- elemName:= this.elemName1
- GuiControl,, %elemName%, %path%
- return
- }
- toggle(){
- if(this.checked > 0)
- this.checked:= 0
- else
- this.checked:= 1
- if(sectionToPush != "login")
- saveINI(1)
- this.updateBox()
- return
- }
- set(newVal){
- if(newVal == "")
- newVal:= 0
- this.checked:= newVal
- this.updateBox()
- return
- }
- isChecked(){
- return this.checked
- }
- }
- Class CreditsElement {
- __New(x, y, img, text, subtext, wherePushElems){
- this.x:= x
- this.y:= y
- this.img:= img
- this.text:= text
- this.subtext:= subtext
- this.wherePushElems:= wherePushElems
- this.elemName1:= "Element" elementCounter
- elementCounter+=1
- this.elemName2:= "Element" elementCounter
- elementCounter+=1
- this.elemName3:= "Element" elementCounter
- elementCounter+=1
- this.draw()
- }
- draw(){
- global
- font(16)
- thisX:= this.x
- thisY:= this.y
- textX:= this.x+220
- textY:= this.y+65
- subtextX:= this.x+280
- subtextY:= this.y+130
- thisImg:= this.img
- elemName1:= this.elemName1
- elemName2:= this.elemName2
- elemName3:= this.elemName3
- thisText:= this.text
- thisSubtext:= this.subtext
- sectionToPush:= this.wherePushElems
- elements[sectionToPush].Push(elemName1)
- elements[sectionToPush].Push(elemName2)
- elements[sectionToPush].Push(elemName3)
- Gui, Add, Picture, x%thisX% y%thisY% v%elemName1% +hidden, %thisImg%
- font(40)
- Gui, Add, Text, x%textX% y%textY% v%elemName2% cPurple +hidden, %thisText%
- font(20)
- Gui, Add, Text, x%subtextX% y%subtextY% v%elemName3% cPurple +hidden, %thisSubtext%
- }
- }
- :?:/debug::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- Goto, TestFunc
- return
- :?:/setkills::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- newKills:= playerInputText("Killanzahl: ")
- if(newKills < 0 or newKills == "NaN"){
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Die Zahl muss mindestens 1 betragen.")
- return
- }
- killsGlobalKills:= newKills
- saveINI(2)
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Die Killanzahl wurde auf {0099FF}" newKills " {FFFFFF}gesetzt.")
- return
- :?:/setdeaths::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- newDeaths:= playerInputText("Todanzahl: ")
- if(newDeaths < 0 or newDeaths == "NaN"){
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Die Zahl muss mindestens 1 betragen.")
- return
- }
- killsGlobalDeaths:= newDeaths
- saveINI(2)
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Die Todanzahl wurde auf {0099FF}" newDeaths " {FFFFFF}gesetzt.")
- return
- :?:/killtest::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- handleKillbinder()
- return
- :?:/kd::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- globalDeathsForCalculation:= (killsGlobalDeaths == 0 ? 1 : killsGlobalDeaths)
- dailyDeathsForCalculation:= (killsDailyDeaths == 0 ? 1 : killsDailyDeaths)
- globalKD:= floorDecimal((killsGlobalKills/globalDeathsForCalculation), 2)
- dailyKD:= floorDecimal((killsDailyKills/dailyDeathsForCalculation), 2)
- AddChatMessage("{" textColor "}[AllTime] {0099FF}Kills: {FFFFFF}" killsGlobalKills " {0099FF}Tode: {FFFFFF}" killsGlobalDeaths " {0099FF}K/D: {FFFFFF}" globalKD)
- AddChatMessage("{" textColor "}[Heutige] {0099FF}Kills: {FFFFFF}" killsDailyKills " {0099FF}Tode: {FFFFFF}" killsDailyDeaths " {0099FF}K/D: {FFFFFF}" dailyKD)
- return
- :?:/fkd::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- dailyDeathsForCalculation:= (killsDailyDeaths == 0 ? 1 : killsDailyDeaths)
- dailyKD:= floorDecimal((killsDailyKills/dailyDeathsForCalculation), 2)
- SendChat("/f Kills: " killsDailyKills " Tode: " killsDailyDeaths " K/D: " dailyKD)
- return
- :?:/vs::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- GetCityName(cityName, 50)
- GetZoneName(zoneName, 50)
- vehicleString:= ""
- if(IsPlayerInAnyVehicle())
- vehicleString:= "in einem Fahrzeug!"
- else
- if(IsPlayerInInterior())
- vehicleString:= "in einem Interior!"
- else
- vehicleString:= "zu Fuss!"
- chatToSend:= "/f "
- if(PlayerIsFBI() == 1){
- chatToSend:= "/d "
- }
- SendChat(chatToSend "!! VS !!")
- SendChat(chatToSend cityName " - " zoneName " > " vehicleString)
- SendChat(chatToSend GetPlayerHealth() "HP und " GetPlayerArmor() " Armor!")
- return
- :?:/funcinfo::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}--= Binder - Funktionen =--")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binds] " (keybindsEnabled ? "{00FF00}" : "{FF0000}") "Keybinds")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeKillbinderEnabled.isChecked() ? "{00FF00}" : "{FF0000}") "Killbinder")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeAutoDriveby.isChecked() ? "{00FF00}" : "{FF0000}") "Automatisch /swapgun")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeAutoTicket.isChecked() ? "{00FF00}" : "{FF0000}") "Automatisch /gpayticket")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeAutoEngine.isChecked() ? "{00FF00}" : "{FF0000}") "Automatisch Motor einschalten")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeAutoLicht.isChecked() ? "{00FF00}" : "{FF0000}") "Automatisch Licht einschalten")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeAutoWP.isChecked() ? "{00FF00}" : "{FF0000}") "Automatisch WPs im /f-Chat")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeFriedhofCounter.isChecked() ? "{00FF00}" : "{FF0000}") "Friedhofszeit im Chat")
- Sleep, 40
- AddChatMessage("{" textColor "}[Home] " (homeLSDCounter.isChecked() ? "{00FF00}" : "{FF0000}") "LSD-Cooldown im Chat")
- Sleep, 40
- AddChatMessage("{" textColor "}[Overlays] " (overlaysCheckCardl.isChecked() ? "{00FF00}" : "{FF0000}") "CarDL")
- Sleep, 40
- AddChatMessage("{" textColor "}[Overlays] " (overlaysCheckLSD.isChecked() ? "{00FF00}" : "{FF0000}") "LSD Nebenwirkungen")
- Sleep, 40
- AddChatMessage("{" textColor "}[Overlays] " (overlaysCheckGold.isChecked() ? "{00FF00}" : "{FF0000}") "Gold-Use Cooldown")
- Sleep, 40
- AddChatMessage("{" textColor "}[Overlays] " (overlaysCheckCustom.isChecked() ? "{00FF00}" : "{FF0000}") "Custom Cooldown")
- return
- :?:/togkb::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- homeKillbinderEnabled.toggle()
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Killbinder " (homeKillbinderEnabled.isChecked() ? "{00FF00}aktiviert" : "{FF0000}deaktiviert"))
- return
- :?:/checkfrak::
- :?:/checkfrakid::
- :?:/checkfrak id::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- frakID:= -1
- frak:= playerInputText("Fraktionsname: ")
- For, key, value in fraks {
- StringLower, frak, frak
- if(hasValue(value, frak))
- frakID:= key
- }
- if(frakID == -1){
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Dies ist kein valider Fraktionsname!")
- return
- }
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Lade Daten..")
- Sleep, 40
- r:= WinHTTPRequest("http://pib.pke6.de/binder/checkfrak.php?id=" frakID, html)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Kann Webspace nicht erreichen, bitte Finn kontaktieren")
- return
- }
- htmlData:= StrSplit(html, "|||")
- statsCountMembers:= 0
- statsCountOnline:= 0
- For, index, value in htmlData {
- valueData:= StrSplit(value, "||")
- if(valueData[4] != "0" and valueData[4] != "1")
- continue
- statsCountMembers++
- if(valueData[4] != "1")
- continue
- statsCountOnline++
- }
- AddChatMessage("{" textColor "}Daten der Fraktion {" fraks[frakID][2] "}[ " fraks[frakID][1] " ] {FFFFFF}[" statsCountOnline "/" statsCountMembers " online]")
- Sleep, 40
- AddChatMessage("{404040}------------------------------")
- printID:= InStr(SubStr(A_ThisLabel, 14), "id") ? 1 : 0
- For, index, value in htmlData {
- valueData:= StrSplit(value, "||")
- if(valueData[4] != "1")
- continue
- if(printID == 1) {
- SendChat("/id " valueData[1])
- Sleep, 200
- } else {
- RegExMatch(valueData[3], "\(([^)]+)\)", valueRank)
- AddChatMessage(valueData[1] " {808080}[Rang " SubStr(valueRank, 2, 1) "`; Level " valueData[2] "]")
- Sleep, 40
- }
- }
- AddChatMessage("{404040}------------------------------")
- return
- :?:/membersall::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- frakID:= -1
- frak:= playerInputText("Fraktionsname: ")
- For, key, value in fraks {
- StringLower, frak, frak
- if(hasValue(value, frak))
- frakID:= key
- }
- if(frakID == -1){
- AddChatMessage("{" textColor "}[Input] {FFFFFF}Dies ist kein valider Fraktionsname!")
- return
- }
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Lade Daten..")
- Sleep, 40
- r:= WinHTTPRequest("http://pib.pke6.de/binder/checkfrak.php?id=" frakID, html)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Kann Webspace nicht erreichen, bitte Finn kontaktieren")
- return
- }
- htmlData:= StrSplit(html, "|||")
- statsCountMembers:= 0
- For, index, value in htmlData {
- valueData:= StrSplit(value, "||")
- if(valueData[4] != "0" and valueData[4] != "1")
- continue
- statsCountMembers++
- }
- Sleep, 40
- AddChatMessage("{" textColor "}Daten der Fraktion {" fraks[frakID][2] "}[ " fraks[frakID][1] " ] {FFFFFF}[Mitglieder: " statsCountMembers "]")
- Sleep, 40
- AddChatMessage("{404040}------------------------------")
- For, index, value in htmlData {
- valueData:= StrSplit(value, "||")
- if(valueData[4] != "0" and valueData[4] != "1")
- continue
- RegExMatch(valueData[3], "\(([^)]+)\)", valueRank)
- firstLetter:= SubStr(valueData[1], 1, 1)
- lastLetters:= SubStr(valueData[1], 2)
- AddChatMessage((valueData[4] == 1 ? "{00FF00}" : "{FF0000}") valueData[1] " {808080}[Rang " SubStr(valueRank, 2, 1) "`; Level " valueData[2] "]")
- Sleep, 40
- }
- AddChatMessage("{404040}------------------------------")
- return
- :?:/playerinfo::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- name:= playerInputText("ID/Name des Spielers: ")
- if name is integer
- {
- GetPlayerNameByID(name, name, 50)
- if(name == ""){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Es ist kein Spieler mit dieser ID online.")
- return
- }
- }
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Lade Daten.. ")
- Sleep, 40
- r:= WinHTTPRequest("http://pib.pke6.de/binder/playerinfo.php?name=" name, html)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Webspace kann nicht erreicht werden, bitte Finn kontaktieren")
- return
- }
- if(html == -1 or html == "-1"){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Es wurde kein Spieler mit diesem Namen gefunden. (Level 1er?)")
- return
- }
- AddChatMessage("{" textColor "}--= Spieler-Informationen =-- ")
- Sleep, 20
- htmlData:= StrSplit(html, "||")
- AddChatMessage("{0099FF}Name: {FFFFFF}" htmlData[1] " {0099FF}Status: {FFFFFF}" (htmlData[3] == 1 ? "online" : "offline"))
- Sleep, 40
- AddChatMessage("{0099FF}Level: {FFFFFF}" htmlData[2] " {0099FF}Fraktion: {FFFFFF}" htmlData[6] (htmlData[6] != "Zivilisten" ? " [Rang " htmlData[7] "]" : ""))
- Sleep, 40
- AddChatMessage("{0099FF}Alter: {FFFFFF}" htmlData[4] " {0099FF}Handynummer: {FFFFFF}" htmlData[5])
- Sleep, 40
- if(htmlData[8] != "-1" or htmlData[8] != -1)
- AddChatMessage("{0099FF}Partner: {FFFFFF}" htmlData[8])
- SendChat("/id " name)
- return
- :?:/kcall::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- name:= playerInputText("ID/Name des Spielers: ")
- SendChat("/nummer " name)
- Sleep, 200
- mobile:= "-1"
- Loop, 3 {
- GetChatLine(3-A_Index, chat, 0)
- if(InStr(chat, "Name: ") and InStr(chat, "Ph: ")){
- RegExMatch(chat, "Ph: (.+)", mobile)
- mobile:= SubStr(mobile, 5)
- }
- if(InStr(chat, "Spieler nicht gefunden")){
- mobile:= "-1"
- break
- }
- }
- if(mobile == "-1")
- return
- SendChat("/call")
- Sleep, 200
- Loop, Parse, mobile
- {
- SendInput, {%A_LoopField%}
- }
- SendInput, {enter}
- return
- :?:/ksms::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- name:= playerInputText("ID/Name des Spielers: ")
- SendChat("/nummer " name)
- Sleep, 200
- mobile:= "-1"
- Loop, 3 {
- GetChatLine(3-A_Index, chat, 0)
- if(InStr(chat, "Name: ") and InStr(chat, "Ph: ")){
- RegExMatch(chat, "Ph: (.+)", mobile)
- mobile:= SubStr(mobile, 5)
- }
- if(InStr(chat, "Spieler nicht gefunden")){
- mobile:= "-1"
- break
- }
- }
- if(mobile == "-1")
- return
- keybindsEnabled:= 0
- SendChat("/sms")
- Sleep, 200
- Loop, Parse, mobile
- {
- SendInput, {%A_LoopField%}
- }
- SendInput, {enter}
- return
- :?:/kbl::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- SendChat("/bl")
- Sleep, 200
- GetChatLine(0, chat, 0)
- if(InStr(chat, "Blacklist Spieler Online"))
- return
- chat1:= SubStr(chat, 12)
- chat2:= SubStr(chat1, 1, StrLen(chat1)-2)
- bler:= StrSplit(chat2, ",", " ")
- For, index, value in bler {
- SendChat("/id " value)
- Sleep, 150
- }
- return
- :?:/kclearchat::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- Loop, 25 {
- AddChatMessage(" ")
- Sleep, 20
- }
- return
- :?:/cmds::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}--= Binder ~ Commands =--")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- Sleep, 50
- customCommandsLength:= customCommands.MaxIndex()
- Loop, %customCommandsLength% {
- thisY:= 30 + (40*A_Index)
- command:= customCommands[A_Index]
- desc:= customCommandsDesc[A_Index]
- AddChatMessage("{0099FF}" command " {FFFFFF}-> " desc)
- Sleep, 100
- }
- AddChatMessage("{404040}------------------------------")
- return
- :?:/togflagpos::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- if(automaticFlagposRunning == 1){
- automaticFlagposRunning:= 0
- SetTimer, AutomaticFlagpos, off
- } else {
- automaticFlagposRunning:= 1
- SetTimer, AutomaticFlagpos, 10500
- SendChat("/getflagpos")
- }
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Automatisches /getflagpos " (automaticFlagposRunning == 1 ? "{00FF00}aktiviert" : "{FF0000}deaktiviert"))
- return
- :?:/hwithdraw::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- SendChat("/housewithdraw")
- Sleep, 200
- GetChatLine(0, chat, 0)
- chat0:= SubStr(chat, 10)
- chat00:= StrSplit(chat0, "-")
- if(RegExMatch(chat00[2], "\d+((.|,)\d+)?", houseValue) == 0){
- return
- }
- SendChat("/housewithdraw " StrReplace(houseValue, "."))
- return
- :?:/kame::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- if(kameMessage != ""){
- kameMessage:= ""
- SetTimer, Kame, Off
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}/kame {FF0000}deaktiviert")
- return
- }
- msg:= playerInputText("Gebe eine Nachricht ein: ")
- kameMessage:= msg
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}/kame {00FF00}aktiviert{FFFFFF}: " kameMessage)
- SendChat("/ame " kameMessage)
- SetTimer, Kame, 15000
- return
- :?:/biz::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}--= Binder ~ Bizliste =--")
- Sleep, 100
- AddChatMessage("{66B3FF}[9: BSN Tanke] >> {FFFFFF}AP Tanke {404040}|{FFFFFF} LV Stadion {404040}|{FFFFFF} LV Kuh")
- Sleep, 100
- AddChatMessage("{" textColor "}[10: GS Tanke] >> {FFFFFF}Fort Carson {404040}|{FFFFFF} LV Arena {404040}|{FFFFFF} SF Kraftwerk")
- Sleep, 100
- AddChatMessage("{4DFF4D}[11: Truckstop] >> {FFFFFF}Grube Prison {404040}|{FFFFFF} SnowTigers Schuppen {404040}|{FFFFFF} Schuppen SF Tunnel")
- Sleep, 100
- AddChatMessage("{019FFE}[12: Dillimore] >> {FFFFFF}Shady Cabin (AP) {404040}|{FFFFFF} LV Rockhotel {404040}|{FFFFFF} BS Campingplatz")
- Sleep, 100
- AddChatMessage("{333300}[13: SF Bahnhof] >> {FFFFFF}Staudamm {404040}|{FFFFFF} LS Airport (Helis) {404040}|{FFFFFF} OC Friedhof")
- Sleep, 100
- AddChatMessage("{FF99CC}[14: SFPD Tanke] >> {FFFFFF}Alte FBI Base (Parkplatz) {404040}|{FFFFFF} BS Helipad {404040}|{FFFFFF} ehem. KF Base")
- Sleep, 100
- AddChatMessage("{006622}[15: Carshop Tanke] >> {FFFFFF}Toter Flughafen {404040}|{FFFFFF} Fort Carson Steg {404040}|{FFFFFF} Weisses Haus")
- Sleep, 100
- AddChatMessage("{FF6600}[16: Army Tanke] >> {FFFFFF}LCN Hotel {404040}|{FFFFFF} Playa (Steg) {404040}|{FFFFFF} SF Airport Hangar")
- Sleep, 100
- AddChatMessage("{E6E600}[17: AP Tanke] >> {FFFFFF}SF Airport Landebahn {404040}|{FFFFFF} LV Ost (PB) {404040}|{FFFFFF} LV Erzmine")
- Sleep, 100
- AddChatMessage("{1A1AFF}[21: BS Tanke] >> {FFFFFF}SF Baustelle {404040}|{FFFFFF} Farmgebiet (Bergschuppen) {404040}|{FFFFFF} Montgomery Dach")
- Sleep, 100
- AddChatMessage("{404040}------------------------------")
- return
- :?:/bpos::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- GetPlayerPosition(x,y,z)
- AddChatMessage(x)
- AddChatMessage(y)
- AddChatMessage(z)
- return
- :?:/plantinfo::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {0099FF}Kontaktiere das CP..")
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- r:= WinHTTPRequest("https://finn.ovh/binder2/plantinfo.php?user=" Username "&pass=" Password, response)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Es ist ein Fehler beim Download aufgetreten.")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- if(response == "NOPE"){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Dein Account ist nicht berechtigt die Plantagen anzuzeigen!")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- AddChatMessage("{404040}------------------------------")
- Sleep, 40
- infoSplit:= StrSplit(response, "|||")
- For, index, value in infoSplit {
- thisInfo:= StrSplit(value, "||")
- plantType:= thisInfo[1] == 0 ? "{29A329}Green" : "{E6E600}Gold"
- AddChatMessage(plantType " {404040}>> {0099FF}Reif: {FFFFFF}" thisInfo[3] " {404040}| {0099FF}Von: {FFFFFF}" thisInfo[2])
- Sleep, 500
- }
- AddChatMessage("{404040}------------------------------")
- return
- :?:/showplant::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- plantID:= playerInputText("Plantagennummer: ")
- if(plantID == "" or plantID < 1 or plantID > 4){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Bitte gebe eine Zahl im Bereich [1-4] ein!")
- return
- }
- AddChatMessage("{" textColor "}[Binder] {0099FF}Kontaktiere das CP..")
- GuiControlGet, Username,, LoginUser
- GuiControlGet, Password,, LoginPass
- r:= WinHTTPRequest("https://finn.ovh/binder2/checkplant.php?user=" Username "&pass=" Password "&id=" plantID, response)
- if(r != -1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Es ist ein Fehler beim Download aufgetreten.")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- if(response == "NOPE"){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Dein Account ist nicht berechtigt die Plantagen anzuzeigen!")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- if(response == "NO_PLANT"){
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Es liegt keine {FF0000}" plantID ". {FFFFFF}Plantage!")
- Sleep, 20
- AddChatMessage("{404040}------------------------------")
- return
- }
- thisInfo:= StrSplit(response, "||")
- plantType:= thisInfo[1] == 0 ? "{29A329}Green" : "{E6E600}Gold"
- AddChatMessage(plantType " {404040}>> {0099FF}Reif: {FFFFFF}" thisInfo[3] " {404040}| {0099FF}Von: {FFFFFF}" thisInfo[2])
- Sleep, 200
- AddChatMessage("{404040}------------------------------")
- if(FileExist("temp.png") != ""){
- FileDelete, temp.png
- }
- URLDownloadToFile, http://finn.ovh/binder2/plantimage.php?id=%plantID%&user=%Username%&pass=%Password%, temp.png
- if(overlayPlantImage != -1){
- ImageDestroy(overlayPlantImage)
- overlayPlantImage:= -1
- }
- overlayPlantImage:= ImageCreate("temp.png", 400, 40, 0, 1, 1)
- Sleep, 7000
- ImageDestroy(overlayPlantImage)
- overlayPlantImage:= -1
- FileDelete, temp.png
- return
- :?:/showtextbinds::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}--= Binder Binder - Textbinds =--")
- Sleep, 40
- textbindsCount:= textbindsKeys.MaxIndex()
- if(!textbindsCount) {
- return
- }
- Loop, %textbindsCount% {
- AddChatMessage("{0099FF}" textbindsKeys[A_Index] " {FFFFFF}-> " textbindsValues[A_Index])
- }
- return
- :?:/moveoverlay::
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {0099FF}/movecardl {FFFFFF}-> CarDL verschieben")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/movelsd {FFFFFF}-> LSD Nebenwirkungen verschieben")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/movegold {FFFFFF}-> Gold-Use Cooldown verschieben")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/movecustom {FFFFFF}-> Custom Cooldown verschieben")
- return
- :?:/movecardl::
- :?:/movelsd::
- :?:/movegold::
- :?:/movecustom::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- if(overlayEditMode == 1){
- AddChatMessage("{" textColor "}[Binder] {FF0000}Du verschiebst bereits ein Overlay!")
- return
- }
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Nutze {0099FF}[ENTER] {FFFFFF}um die neue Position zu speichern.")
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Nutze {0099FF}[SHIFT] {FFFFFF}um es schneller zu bewegen.")
- overlayEditWhich:= SubStr(A_ThisLabel, 9)
- if(overlayEditWhich == "cardl") {
- overlayEditX:= overlayCardlX
- overlayEditY:= overlayCardlY
- }
- if(overlayEditWhich == "lsd") {
- overlayEditX:= overlayLSDX
- overlayEditY:= overlayLSDY
- }
- if(overlayEditWhich == "gold") {
- overlayEditX:= overlayGoldX
- overlayEditY:= overlayGoldY
- }
- if(overlayEditWhich == "custom") {
- overlayEditX:= overlayCustomX
- overlayEditY:= overlayCustomY
- }
- overlayEditMode:= 1
- initOverlays()
- return
- :?:/timer::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {0099FF}/timer toggle {FFFFFF}-> Timer starten/stoppen")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/timer command {FFFFFF}-> Command einstellen")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/timer interval {FFFFFF}-> Intervall einstellen")
- Sleep, 40
- AddChatMessage("{404040}------------------------------")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Command: {FFFFFF}" automaticCommandCommand)
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Intervall: {FFFFFF}" automaticCommandInterval)
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Status: {FFFFFF}" (automaticCommandRunning == 1 ? "{00FF00}aktiviert" : "{FF0000}deaktiviert"))
- return
- :?:/timer command::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Gebe nun den Command ein. (~ [Wait] etc. erlaubt)")
- Sleep, 40
- automaticCommandCommand:= playerInputText("Command: ")
- IniWrite, %automaticCommandCommand%, %A_WorkingDir%\PurpleIceSettings.ini, Timer, Command
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Befehl gespeichert. {0099FF}" automaticCommandCommand)
- return
- :?:/timer interval::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Gebe nun den Intervall ein. (in Millisekunden, also 1000 = 1 Sekunde)")
- Sleep, 40
- automaticCommandInterval:= playerInputText("Intervall (in ms): ")
- IniWrite, %automaticCommandInterval%, %A_WorkingDir%\PurpleIceSettings.ini, Timer, Interval
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Intervall gespeichert. {0099FF}" automaticCommandInterval)
- return
- *~End::
- :?:/timer toggle::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- if(automaticCommandRunning == 1){
- automaticCommandRunning:= 0
- SetTimer, TimerCustomCommand, off
- } else {
- automaticCommandRunning:= 1
- SetTimer, TimerCustomCommand, %automaticCommandInterval%
- }
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Timer " (automaticCommandRunning == 1 ? "{00FF00}aktiviert" : "{FF0000}deaktiviert"))
- return
- :?:/customoverlay::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {0099FF}/customoverlay text {FFFFFF}-> Text im Overlay einstellen")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/customoverlay trigger {FFFFFF}-> Trigger im Chat einstellen")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}/customoverlay time {FFFFFF}-> Countdownzeit einstellen")
- Sleep, 40
- AddChatMessage("{404040}------------------------------")
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Text: {FFFFFF}" customOverlayText)
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Zeit: {FFFFFF}" customOverlayTime)
- Sleep, 40
- AddChatMessage("{" textColor "}[Binder] {0099FF}Trigger: {FFFFFF}" customOverlayTrigger)
- return
- :?:/customoverlay text::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Gebe nun den Text vor dem ':' im Overlay ein")
- Sleep, 40
- customOverlayText:= playerInputText("Text: ")
- IniWrite, %customOverlayText%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomText
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Text gespeichert. {0099FF}" customOverlayText)
- return
- :?:/customoverlay time::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Gebe nun die Zeit in Sekunden an")
- Sleep, 40
- customOverlayTime:= playerInputText("Zeit: ")
- IniWrite, %customOverlayTime%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomTime
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Zeit gespeichert. {0099FF}" customOverlayTime)
- return
- :?:/customoverlay trigger::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Gebe nun die Nachricht im Chat an, die den Timer triggern soll")
- Sleep, 40
- customOverlayTrigger:= playerInputText("Trigger: ")
- IniWrite, %customOverlayTrigger%, %A_WorkingDir%\PurpleIceSettings.ini, Overlays, CustomTrigger
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Trigger gespeichert. {0099FF}" customOverlayTrigger)
- return
- :?:/wpbinds::
- if(!WinActive("ahk_exe gta_sa.exe"))
- return
- Suspend Permit
- KeyWait, Enter
- Sleep, 20
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Binder ~ WP-Textbinds")
- Sleep, 20
- For, index, value in wpbindKeys {
- AddChatMessage("{0099FF}" value " {FFFFFF}-> " wpbindWPs[index] " -> " wpbindReasons[index])
- Sleep, 40
- }
- return
- Keybind1:
- Keybind2:
- Keybind3:
- Keybind4:
- Keybind5:
- Keybind6:
- Keybind7:
- Keybind8:
- Keybind9:
- Keybind10:
- Keybind11:
- Keybind12:
- Keybind13:
- Keybind14:
- Keybind15:
- Keybind16:
- Keybind17:
- Keybind18:
- Keybind19:
- Keybind20:
- Keybind21:
- Keybind22:
- Keybind23:
- Keybind24:
- Keybind25:
- Keybind26:
- Keybind27:
- Keybind28:
- handleHotkey(SubStr(A_ThisLabel, 8))
- return
- *XButton1::
- GuiControlGet, thisBind,, KeybindsBind23
- if(thisBind != "" and keybindsEnabled == 1){
- handleHotkey(23)
- }
- return
- *XButton2::
- GuiControlGet, thisBind,, KeybindsBind24
- if(thisBind != "" and keybindsEnabled == 1){
- handleHotkey(24)
- }
- return
- *WheelLeft::
- if(A_TimeSincePriorHotkey < 600)
- return
- GuiControlGet, thisBind,, KeybindsBind25
- if(thisBind != "" and keybindsEnabled == 1){
- handleHotkey(25)
- }
- return
- *WheelRight::
- if(A_TimeSincePriorHotkey < 600)
- return
- GuiControlGet, thisBind,, KeybindsBind26
- if(thisBind != "" and keybindsEnabled == 1){
- handleHotkey(26)
- }
- return
- *Delete::
- if(keybindsEnabled == 0) {
- keybindsEnabled:= 1
- SoundPlay, *64
- } else {
- keybindsEnabled:= 0
- }
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Keybinds " (keybindsEnabled == 1 ? "{00FF00}aktiviert" : "{FF0000}deaktiviert"))
- return
- *~Up::
- y:= -1
- if(GetKeyState("Shift"))
- y:= -10
- changeOverlayPosition(0, y)
- return
- *~Down::
- y:= 1
- if(GetKeyState("Shift"))
- y:= 10
- changeOverlayPosition(0, y)
- return
- *~Left::
- x:= -1
- if(GetKeyState("Shift"))
- x:= -10
- changeOverlayPosition(x, 0)
- return
- *~Right::
- x:= 1
- if(GetKeyState("Shift"))
- x:= 10
- changeOverlayPosition(x, 0)
- return
- *~/::
- recentKeypresses:= recentKeypresses . "/"
- return
- *~0::
- recentKeypresses:= recentKeypresses . "0"
- return
- *~1::
- recentKeypresses:= recentKeypresses . "1"
- return
- *~2::
- recentKeypresses:= recentKeypresses . "2"
- return
- *~3::
- recentKeypresses:= recentKeypresses . "3"
- return
- *~4::
- recentKeypresses:= recentKeypresses . "4"
- return
- *~5::
- recentKeypresses:= recentKeypresses . "5"
- return
- *~6::
- recentKeypresses:= recentKeypresses . "6"
- return
- *~7::
- recentKeypresses:= recentKeypresses . "7"
- return
- *~8::
- recentKeypresses:= recentKeypresses . "8"
- return
- *~9::
- recentKeypresses:= recentKeypresses . "9"
- return
- *~a::
- recentKeypresses:= recentKeypresses . "a"
- return
- *~b::
- recentKeypresses:= recentKeypresses . "b"
- return
- *~c::
- recentKeypresses:= recentKeypresses . "c"
- return
- *~d::
- recentKeypresses:= recentKeypresses . "d"
- return
- *~e::
- recentKeypresses:= recentKeypresses . "e"
- return
- *~f::
- recentKeypresses:= recentKeypresses . "f"
- return
- *~g::
- recentKeypresses:= recentKeypresses . "g"
- return
- *~h::
- recentKeypresses:= recentKeypresses . "h"
- return
- *~i::
- recentKeypresses:= recentKeypresses . "i"
- return
- *~j::
- recentKeypresses:= recentKeypresses . "j"
- return
- *~k::
- recentKeypresses:= recentKeypresses . "k"
- return
- *~l::
- recentKeypresses:= recentKeypresses . "l"
- return
- *~m::
- recentKeypresses:= recentKeypresses . "m"
- return
- *~n::
- recentKeypresses:= recentKeypresses . "n"
- return
- *~o::
- recentKeypresses:= recentKeypresses . "o"
- return
- *~p::
- recentKeypresses:= recentKeypresses . "p"
- return
- *~q::
- recentKeypresses:= recentKeypresses . "q"
- return
- *~r::
- recentKeypresses:= recentKeypresses . "r"
- return
- *~s::
- recentKeypresses:= recentKeypresses . "s"
- return
- *~t::
- recentKeypresses:= recentKeypresses . "t"
- return
- *~u::
- recentKeypresses:= recentKeypresses . "u"
- return
- *~v::
- recentKeypresses:= recentKeypresses . "v"
- return
- *~w::
- recentKeypresses:= recentKeypresses . "w"
- return
- *~x::
- recentKeypresses:= recentKeypresses . "x"
- return
- *~y::
- recentKeypresses:= recentKeypresses . "y"
- return
- *~z::
- recentKeypresses:= recentKeypresses . "z"
- return
- ~enter::
- if(!WinActive("ahk_exe gta_sa.exe")){
- return
- }
- if(overlayEditMode == 1){
- if(overlayEditWhich == "cardl"){
- overlayCardlX:= overlayEditX
- overlayCardlY:= overlayEditY
- }
- if(overlayEditWhich == "lsd"){
- overlayLSDX:= overlayEditX
- overlayLSDY:= overlayEditY
- }
- if(overlayEditWhich == "gold"){
- overlayGoldX:= overlayEditX
- overlayGoldY:= overlayEditY
- }
- if(overlayEditWhich == "custom"){
- overlayCustomX:= overlayEditX
- overlayCustomY:= overlayEditY
- }
- overlayEditMode:= 0
- overlayEditWhich:= ""
- saveINI(4)
- AddChatMessage("{" textColor "}[Binder] {FFFFFF}Das Overlay wurde gespeichert.")
- initOverlays()
- }
- For, index, value in customCommands {
- if(InStr(recentKeypresses, value)){
- recentKeypresses:= ""
- return
- }
- }
- BlockInput On
- KeyWait, Enter
- recentKeypressesTemp:= recentKeypresses
- recentKeypresses:= ""
- For, index, value in wpbindKeys {
- if(InStr(recentKeypressesTemp, value)){
- SendInput, ^a{backspace}{enter}
- Sleep, 40
- BlockInput Off
- handleWPs(index)
- return
- }
- }
- textbindsCount:= textbindsKeys.MaxIndex()
- if(!textbindsCount) {
- SendInput, {enter}
- BlockInput Off
- return
- }
- Loop, %textbindsCount% {
- if(InStr(recentKeypressesTemp, textbindsKeys[A_Index])){
- SendInput, ^a{backspace}{enter}
- Sleep, 40
- BlockInput Off
- handleHotkey(1, textbindsValues[A_Index])
- }
- }
- BlockInput Off
- SendInput, {enter}
- return
- ~backspace::
- recentKeypresses:= SubStr(recentKeypresses, 1, (StrLen(recentKeypresses)-1))
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement