Counter-Strike 2

Counter-Strike 2

Not enough ratings
Create Grenade Line-ups in Minutes! AHK Script
By v7
Hello!
By the end of this guide, you will be able to create your own line-ups for smokes, flashes, molotovs, in literally no time after installing a program, copy-pasting some text and running it!
Don't worry, this looks like some bhop script or walls or whatever, No, don't look at it like that, it's a script that will write multiple commands in your console in offline matches to make it easier for you to figure out line-ups!
Follow along and be ready to make your line-ups!
   
Award
Favorite
Favorited
Unfavorite
1) Download Auto-Hotkey
This is the first step, getting Auto-Hotkey (AHK).
Simply go to https://www.autohotkey.com
(See it here)[prnt.sc]
There will be a green Download button, click it and install AHK. Once you're done, scroll down to the next step!
2) Make a new AHK script
This is an easy step, just follow the steps and you're good to go!

[1] Right click in your Desktop and create a New AHK Script.
(See it here)[prnt.sc]

*You can make one anywhere in your PC, but to make it easier to edit and compile, I chose the desktop.

[2] Name your new script something related to CS:GO Grenades to remember it, if you have multiple scripts, I just named it CSGO Grenade Script.
(See it Here[prnt.sc])

[3] Right Click your new script, Select Open With... and choose Notepad.
(See it here)[prnt.sc]

*This is Very Important! Do Not Open the Script at this stage. To edit it, Right click and Open with notepad. Opening it directly will Run the script, which does nothing because it's empty.

[4] If you opened it with Notepad, you should see This[prnt.sc].
We don't need any of that, so Delete everything.

[5] Copy Paste all the code that is between the "[From Here]" and "[To Here]".
Don't copy "[From Here]" and "[To Here]".
[From Here]---------------------------------------------------------------
F1::
send sv_cheats 1 {return}
sleep 50
send mp_roundtime_defuse 60 {return}
sleep 50
send mp_startmoney 16000 {return}
sleep 50
send mp_afterroundmoney 16000 {return}
sleep 50
send ammo_grenade_limit_total 6 {return}
sleep 50
send sv_grenade_trajectory 1 {return}
sleep 50
send sv_grenade_trajectory_time 8 {return}
sleep 50
send sv_grenade_trajectory_dash 1 {return}
sleep 50
send sv_showimpacts 3 {return}
sleep 50
send sv_showimpacts_time 8 {return}
sleep 50
send sv_infinite_ammo 1 {return}
sleep 50
send sv_autobunnyhopping 1 {return}
sleep 50
send mp_buytime 4500 {return}
sleep 50
send mp_buy_anywhere 1 {return}
sleep 50
send cl_grenadepreview 1 {return}
sleep 50
send mp_restartgame 1 {return}
sleep 2800
send gods {return}
sleep 50
send echo AHK Script done! Press [F1] to execute again. {return}
return
[To Here]---------------------------------------------------------------

Now, paste that whole thing exactly how it is into your new script and save it.
Next step!
3) Compiling and Running the script
Right now, you should have This[prnt.sc].

*Now, the script is still editable which is fine by most people, you can actually just run it and use it right away, but there's one more thing you can do before that (This is optional).

You should Compile the script, which is making the whole script a ".exe" file (Executable).
(See it here)[prnt.sc]

*This only makes it so you can not edit the script again, or make any modifications.
To edit the script in the future, just don't delete the editable script when you compile it.

Now, if you compiled the script, which you should, just open CS:GO, press play, select Practice With Bots, Difficulty should be No Bots so you don't have to fight anyone, Select COMPETITIVE and your favorite Map, then press GO.

Once you are in-game, select your side, and open your console, and press the bind "F1" to run the script.
The script will only Type the commands I wrote earlier very quickly to save you time.
You can always press F1 again or any bind you prefer, to run it again, but you should only run it once per match. And here's a quick note: the command "GOD" or "GODS" only works Once Per Match, which means it turns off every round.

After you are done with the script, you can now close it to not misclick the F1 key, because if you do, it will still Type everything and press Enter key in any window, so be careful! if you are on a messaging app, you might be spamming someone with CS:GO commands which you don't want to happen, so Do This[prnt.sc] to not let that happen.

Next step!
How to edit RUN Bind or Add Commands
***If you want to edit the key used to Run the script (Default: F1):

-Open the Editable script file (The one we created from the beginning)
-The first line should be "F1::"
-F1 is the key that runs the whole script under it.
-You can change it to any key you like, for example if you want it to be "M" key, you should replace the first line with "M::".

I tried to keep it simple but it is very simple anyway.

***If you want to add a command:

Before adding anything, you probably want to understand how it works,which is very simple.

-"send" command followed by anything means the script will Write what is after it.
That does NOT mean it will ENTER the text, It will ONLY write it.

-Adding "{return}" after a send command and some text, means it will press Enter, or send the text.

-"sleep" command only delays the next command by Milliseconds.
Example: (1000 ms --> 1 s) (100 ms --> 0.1 s)

In our case, the default delay is 50 ms which is not too fast, and not too slow, and is mostly compatible with slower devices, you should not make it 0 or remove the whole sleep command though, it could make the script bug out or skip some commands, or miss the Enter key completely, this gives it enough time to realize it has to press Enter.

If this was clear, you can start adding any command you want from the in-game console, just follow how the code is written and it will work flawlessly, even if you entered wrong or false commands, unknown or mistyped ones, because the script does not read anything, only writes what you tell it to.

Make sure you confirm your new commands and test them in the console before adding them!
Benefits / What it does In-Game / Give commands
This script only types in-game already existing console commands which you can use yourself in an offline server with bots or in any server that has "sv_cheats 1" enabled, however; this script enables cheats before typing any commands if it is not enabled by default.

***Benefits from using this instead of typing the commands yourself manually:

-Saves a LOT of time typing various console commands
-Can be Re-Used anytime using the bound key (Default: F1)
-Makes it more easy and simple to create/make any line-up for smokes, molotoves or flashes
-Many more, which you will notice after using it yourself

***What it adds to your session:

-Infinite Ammo and Grenades
-God Mode (Resets every round, type "god" or "gods" in console)
-Every round lasts 1 hour (60 Minutes)
-You can access the buy menu Anywhere and Anytime using your Buy menu key
-Money resets to 16000$ Every round
-You can add commands to give yourself your favorite loadout only by using the give commands:
"give weapon_WEAPONNAME"

A list of what you can use (most popular):
give weapon_ak47
give weapon_m4a4
give weapon_m4a1-silencer
give weapon_awp
give weapon_ssg08
give weapon_aug
give weapon_sg553
give weapon_deserteagle
give weapon_p250
give weapon_usp-silencer
give weapon_p2000
give weapon_tec-9
give weapon_fiveseven
------Grenades:
give weapon_hegrenade (Explosive)
give weapon_smokegrenade (smoke)
give weapon_flashbang (flashbang)
give weapon_molotov (molotov)
give weapon_incendiarygrenade (CT side molotov)
give weapon_decoy (decoy)
give weapon_snowball (snowball)
-----Others:
give weapon_c4
give weapon_breachcharge (Dangerzone breach charges)
give weapon_healthshot (Dangerzone Healing syringes)
give cash (50$ Bills)
give chicken (spawn chicken)

You can search online for a full list of literally everything you can get using commands in console!
Any questions?
If you have any question about how something works, feel free to either ask in the comments of this guide, or add me to talk about it in more depth!

FAQ:

Q: The script does not work.
A: Try following the steps one by one, and do not rush it. Doing anything faster than you should be opens more windows of mistakes and failures, try to be slower, make sure everything is in place, and try again! If nothing works out, add me and we'll discuss.

Q: I changed the default bind (F1) and now it doesn't work.
A: If the script worked Before changing the default bind, then you most likely did not refer the right key. For a full list of the keys you can use, click Here[www.autohotkey.com], official key list from the original site.

Q: I can't edit the script after I create it / When I open it nothing happens (new script)
A: If you want to Edit the script, Right click and Open With... Use any program that can read .txt files like Notepad or Notepad++. I recommend just using Notepad, basic and it's really that simple.

Q: I did not understand how to add my own commands. / How to add commands?
A: It's simple once you understand how the commands work. For this topic, you only need to understand Three (3) different commands.

SEND --> Types Text
SLEEP --> Delays commands in milleseconds
{return} --> Only add this AFTER using SEND command, and in the same line AFTER some TEXT.

Example of {return} :

send examplecommand 1 {return}



For any other questions not mentioned in this FAQ, feel free to add me! I will try my best to help you.
Note that if I'm offline, try to ask for help in this guide's comments or wait until I come online, or google AHK Command "command" or anything aboutt it.

Thanks for reading! Have fun!
1 Comments
v7  [author] 12 Jan, 2022 @ 12:52pm 
jUsT uSe A cFg, FiVe HeAd!!! NoOb StOoPeD cYkA bLyAt!!!