Professional Documents
Culture Documents
Source Code
Source Code
releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and
reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#Singleinstance FORCE
#MaxThreadsPerHotKey 2
CoordMode, Pixel, Screen
Color = 0x76C8FC
MidX1 := A_ScreenWidth / 2
MidY1 := A_ScreenHeight / 2
fpx := MidX1 - 70
fpy := MidY1 - 70
spx := MidX1 + 70
spy := MidY1 + 70
PosX := A_ScreenWidth / 2
PosY := A_ScreenHeight / 2
margin = 50
dx = 0
dy = 0
global PBSizeW = 60
global PBSizeH = 90
TargetSetKey = ^q
TargetResetKey = ^e
SpinFireKey = q
AimBotKey = LShift
AACK = ^b
Prediction = 0
AAC = 0
Hotkey,%TargetSetKey%,targetsetkey
Hotkey,%TargetResetKey%,targetresetkey
Hotkey,%AimBotKey%,aimbotkey
Hotkey,%SpinFireKey%,spinfirekey
Hotkey,%AACK%,AACK
TargetSetKey = 0
TargetResetKey = 0
SpinFireKey = 0
AimBotKey = 0
TargetSetKey = ^q
TargetResetKey = ^e
SpinFireKey = q
AimBotKey = LShift
#Persistent
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
msgbox, 0, Credits,
(
CREATED BY HACKERHANSEN
Logo by Shadow (you can find him on my Discord server. He has the "Graphics Design"
role!)
)
msgbox, 1, WARNING!,
(
USE THIS SOFTWARE AT YOUR OWN RISK.
Press CTRL Q while mouse is on a target to set the mouse to lock onto that target
Using aimbot against a moving target at long range WITHOUT PREDICTION may result in
missed shots.
IMPORTANT! Currently this aimbot only searches for things within 50 pixels(you can
change this in the menu) of the mouse. This works on most skins but won't work on
others. NoSkins are the only guaranteed target.
Join the discord to suggest new features and get your questions answered!
)
Gx := A_ScreenWidth - 260
Gy := A_ScreenHeight - 415
; Create the OSD for the hack:
MyColor = EEAA99
Gui OSD:+LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, OSD:Color, %MyColor%
Gui, OSD:Font, s16
Gui, OSD:Add, Text, vMyText cLime, HackerHansen's zombsroyale hack
Gui, OSD:Add, Text, vMyTexty cLimey, Press CTRL+M to open menu
WinSet, TransColor, %MyColor% 155
; Creates aimbot
aimbotkey:
{
While GetKeyState(aimbotkey, "P"){
MouseGetPos, MouseX, MouseY
firstpairx := MouseX - margin
if firstpairx < 0
{
firstpairx = 0
}
targetsetkey:
{
MouseGetPos, MouseX1, MouseY1
PixelGetColor Color, %MouseX1%, %MouseY1%
ToolTip, %Color%
SetTimer, ToolTipOff, 500
}
return
targetresetkey:
{
color = 0x76C8FC
ToolTip, TARGET RESET
SetTimer, ToolTipOff, 500
}
return
ToolTipOff:
{
ToolTip
}
return
spinfirekey:
{
MouseGetPos, MX, MY
MouseMove, 0, 0
sleep, 10
MouseMove, %PosX%, 0
sleep, 10
MouseMove, %A_ScreenWidth%, 0
sleep, 10
MouseMove, %A_ScreenWidth%, %PosY%
sleep, 10
MouseMove, %A_ScreenWidth%, %A_ScreenHeight%
sleep, 10
MouseMove, %PosX%, %A_ScreenHeight%
sleep, 10
MouseMove, 0, %A_ScreenHeight%
sleep, 10
MouseMove, 0, %PosY%
sleep, 10
MouseMove, 0, 0
Sleep, 10
MouseMove, MX, MY
Sleep, 5
Click
Sleep, 2
Click
Click
Sleep, 3
}
return
; Summons menu
^m::
Gui, playerblot:-alwaysontop
Gui, Show
Return
ButtonApply:
Hotkey,%TargetSetKey%,targetsetkey, off
Hotkey,%TargetResetKey%,targetresetkey, off
Hotkey,%AimBotKey%,aimbotkey, off
Hotkey,%SpinFireKey%,spinfirekey, off
Hotkey,%AACK%,AACK, off
TargetSetKey = 0
TargetResetKey = 1
SpinFireKey = 2
AimBotKey = 3
AACK = 4
Hotkey,%TargetSetKey%,targetsetkey, off
Hotkey,%TargetResetKey%,targetresetkey, off
Hotkey,%AimBotKey%,aimbotkey, off
Hotkey,%SpinFireKey%,spinfirekey, off
Hotkey,%AACK%,AACK, off
gui, submit
global PBSizeW := PBSizeW
global PBSizeH := PBSizeH
global TargetSetKey := TargetSetKey
global TargetResetKey := TargetResetKey
If (targetsetkey = "")
{
targetsetkey = ^!#+PgUp
}
If (targetresetkey = "")
{
targetresetkey = ^!#+PgUp
}
If (aimbotkey = "")
{
aimbotkey = ^!#+PgUp
}
If (spinfirekey = "")
{
spinfirekey = ^!#+PgUp
}
If (AACK = "")
{
AACK = ^!#+PgUp
}
Hotkey,%TargetSetKey%,targetsetkey, on
Hotkey,%TargetResetKey%,targetresetkey, on
Hotkey,%AimBotKey%,aimbotkey, on
Hotkey,%SpinFireKey%,spinfirekey, on
Hotkey,%AACK%,AACK, on
Gui, playerblot:+AlwaysOnTop
if (ShouldBlotPlayer = 1) {
BlotPlayer()
}
else {
UnBlotPlayer()
}
if (MenuAlwaysOnTop = 1) {
Gui, +AlwaysOnTop
Gui, Show
}
else {
Gui, -AlwaysOnTop
}
return
ButtonHelp:
msgbox, 0, HELP,
(
Instructions: Hold down Left Shift to activate aimbot(mouse MUST be close to
target). Press CTRL M to open the menu.
Don't use aimbot at long range without prediction because it tends to miss.
This hack may not work on every skin. It also won't work in dark areas of the map
or in the gas.
)
Gui, Show
Return
ButtonDiscord:
RUN, https://discord.gg/Vwxsx3k
Return
ButtonQuit:
Quit()
Return
; Functions
BlotPlayer(){
Gui, playerblot:Show, Center w%PBSizeW% h%PBSizeH% NoActivate, Blotter
Return
}
UnBlotPlayer(){
Gui, playerblot:hide
Return
}
Quit(){
Gui, -AlwaysOnTop
msgbox, 308, Quit Hack, Are you sure you want to quit the hack? Aimbot will no
longer run.
IfMsgBox Yes
exitapp
If (MenuAlwaysOnTop = 1) {
Gui, +AlwaysOnTop
}
Gui, Show
Return
}
; Creates AutoCrate
AACK:
AAC := !AAC
if (AAC = 1)
ToolTip, Auto Open Ammo Crates ON
else
ToolTip, Auto Open Ammo Crates OFF
if (AAC = 1) {
PixelSearch,,, %fpx%, %fpy%, %spx%, %spy%, 0x5B823A,, Fast
if (errorlevel = 0) {
Send e
}
PixelSearch,,, %fpx%, %fpy%, %spx%, %sp%, 0x4A7523,, Fast
if (errorlevel = 0) {
Send e
}
}
}
}
return