|
|
A Tut on Restriction! Difficulty: Intermediate |
| Category: CS:S > Server Administration | Author(s): dylanm666 |

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.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 weapon_awp or weapon_m4a1. *Note, if using SDS exclude the word rcon and the line rcon_password*
//Restriction+Notification
rcon_password
rcon ma_restrict "weapon"
rcon ma_restrict "weapon"
rcon ma_restrict "weapon"
rcon ma_say The "weapon" is now restricted!
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. Now add this into the Unrestriction cfg file you just created, make sure to make the "" match up to what you put in your Restrict script earlier.
//Unrestriction+Notification
rcon_password
rcon ma_unrestrict "weapon"
rcon ma_unrestrict "weapon"
rcon ma_unrestrict "weapon"
rcon ma_say The "weapon" is now UNrestricted!
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
rcon_password "rcon pass, for sds dont use this"
alias restrict "rcon exec "restrict scripts name here"
alias unrestrict "rcon exec "unrestrict scripts name here"
alias r_on "restrict"
alias r_off "unrestrict"
bind h "r_on"
bind j "r_off"
// That's it, finally! Enjoy your easy restriction |
| Added: 1 year ago | Tags: tut, restrict, weapons |
 Add Feedback Provide constructive feedback. What is "constructive"?You cannot post yet!Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop. To post in this submission register or login. |
 The community's verdict. Disapproval Warning This submission has been disapproved and will be automatically trashed if more are made. Please check the submission and vote accordingly. Disapproved for Lacking decent screenshots (1 time)
You cannot assess yet!Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure. To vote on this submission register or login. This Tutorial in a nutshell... Detailed & Well Written 1 x Detailed 1 x Well Written 1 x Informative 1 x Helpful You cannot stamp yet!Stamps let you apply characteristics to submissions to help others understand them. To stamp this submission register or login. Want more? Find related tuts. |