Search
Username:
Password:
Register or Reset Password
Remove the ads!
A Tut on Restriction!
Difficulty: Intermediate
Category: CS:S > Server AdministrationAuthor(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 agoTags: tut, restrict, weapons
Feedback (6)
Semp .
Open for map/sound commissionsY2M
Posted 7 months ago
Why are the binds "rcon ma_command"?
If your using mani and have admin flags for restricts, simply "ma_command" works.
kfceater .
i needs a 6 digitY2M
Posted 1 year ago
I know a glitch to get past mani-restrictions. good tutorial tho
dylanm666 .
Awp3r 4 lyf3Y2M
Posted 1 year ago
Better?
dylanm666 .
Awp3r 4 lyf3Y2M
Posted 1 year ago
Will do.
:.
Super ModeratorY2M
Posted 1 year ago
Please provide a screenshot that has some relevance to the tutorial itself.
.
Soi soi soi soi soi soi soiY2M
Posted 1 year ago
Pretty good for your first tutorial, well written as well. Good job, keep it up!
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.
Assessment
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)
User Rating [+]
5/10
bScore
5.0/10
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.
Stamps
This Tutorial in a nutshell...
Detailed & Well Written
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Added by...
dylanm666 .
Awp3r 4 lyf3
Ranked 4255th ( 5) with 332 points.

[+] Donate
Related Tutorials