This is a short tutorial on how to bind any key you choose to exec a restrict weapon script.
Step 1: Creating the CFG file that will be bound to a key to exec
Step 2: The commands and unrestriction
Step 3: Binding this all to a key you choose
Step 1: Creating the CFG file that will later be bound to a key to exec
First, open your "My computer". Now browse up to the "CFG" folder. Open the CFG folder and minimize this window. Go to start>programs>accessories and open "Notepad". In here save this script BLANK to your desktop as "Restrict<Weapon you're restricting here>.cfg", and "All File Types" as the type of file, ANSI encoding. Now you may close notepad. Now go to your desktop and open the CFG file you just saved there. Paste the next portion in it, and fill in where I say "weapon" with for example weaponawp or weaponm4a1. Note, if using SDS exclude the word rcon and the line rcon_password
//Restriction+Notification
rconpassword
Thats all we are putting in "Restrict"Weapon you're restricting here"" for now. Now, create ANOTHER cfg file and save it in cstrike\cfg named UNRestrict<Weapon you're unrestricting here>. Now add this into the Unrestriction cfg file you just created, make sure to make the "
//Unrestriction+Notification
rconpassword
That's it for creating new cfg files, now open your autoexec.cfg (...if you dont have one make one just like we did all the others), and put in it this:
//Restrict+Unrestrict script bind, h = toggle rconpassword "rcon pass, for sds dont use this" alias restrict "rcon exec "restrict scripts name here" alias unrestrict "rcon exec "unrestrict scripts name here" alias ron "restrict" alias roff "unrestrict" bind h "ron" bind j "r_off"
// That's it, finally! Enjoy your easy restriction







