Jump to content
Sign in to follow this  
dexxa

make a CSS aimbot

Recommended Posts

i been trying to make an aim bot for css for the past few days. i used autoit window spy to get the pixel color. but it seems that every pixel has its own color code. and the wall might have the same color code has the head. and when i play css with the script open, my fps seems to drop and my system kinda slow down a bit. btw i am only make an aimbot for the fun of it and wont use it online.

here is my code:

;Hotkeyset("{F5}","buyak")
hotkeyset("{F6}","buym4")
hotkeyset("!f","autoaim")

sleep(7200000)
    
;Func buyak()
;send("b42")
;sleep(500)
;send("b82")
;sleep(500)
;send("b83b84{,}")
;EndFunc

Func buym4()
    send("b43")
    sleep(500)
    send("b82")
    sleep(500)
    send("b83b84{,}")
EndFunc

Func autoaim()
    Seterror(0)
    
    $aim=PixelSearch(300,240,600,500,0x090806,20,2)
        ;left, top, right, bottom
    If not @error Then 
        mouseclick("left",$aim[0],$aim[1],3,0)
    EndIf
EndFunc

any advice?

Share this post


Link to post
Share on other sites

First off, what's with the huge sleep?

Use:

While 1
    Sleep(1)
WEnd

for an infinite loop.

The only way you can make use of an auto aim in CSS is if you change the actual files, I suppose. Just make a big green mark on the skin and aim for that. Also you'll have to turn off shadows and stuff so it doesn't turn it to a darker green.


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites

Okay, to do an auto-aim bot for CS a few things must be active.

1. You are sitting still -> you activate a hotkey

2. Someone walks/runs from one side of the screen.

3. A pre-defined amount of screen movement giving you perfect aim.

Else

1. You are sitting still -> you activate a hotkey

2. Someone walks/runs around the corner

3. A pre-defined amount of screen movement based on the number of pixel rows that have changed.

Given these things, using a step variation of _PixelSearch (available in my signature) you just make an array every 500 miliseconds and check to see if it has changed. MouseMove WITH speed and pixel to move to will assist in aiming. Going back to the _PixelSearch you can use the pixel positions that have changed to assist the aim process.

The reason this msg is so long is that what you are trying to do will be extensive.


Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...