A Tut on Restriction Scripts

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 rcon marestrict "weapon" rcon marestrict "weapon" rcon marestrict "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<Weapon you're unrestricting here>. 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 rconpassword rcon maunrestrict "weapon" rcon maunrestrict "weapon" rcon maunrestrict "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 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

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Jono0102's Levels
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 4 years ago

    Hey this really helps. Thank you so much

    Photobucket

    Bananite
  • Semp's Levels
    • P3: Peasant
      Points: 18,809
    • E2: Guide
      EF: 33
    • C1: Member
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    Why are the binds "rcon macommand"? If your using mani and have admin flags for restricts, simply "macommand" works.

    User Title
  • kfceater's Levels
    • P2: Drudge
      Points: 1,570
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    I know a glitch to get past mani-restrictions. good tutorial tho

    User Title
    i needs a 6 digit
  • dylanm666's Levels
    • P1: Beggar
      Points: 746
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    Better?

    User Title
    Awp3r 4 lyf3
  • dylanm666's Levels
    • P1: Beggar
      Points: 746
    • C1: Member
    • A6: Elder
      Account Age: 6 years
    Posted 6 years ago

    Will do.

    User Title
    Awp3r 4 lyf3
  • SGT_kick_ur_ass's Levels
    • P2: Drudge
      Points: 5,117
    • E1: Helper
      EF: 10
    • C1: Member
    • A6: Elder
      Account Age: 8 years
    Posted 6 years ago

    Please provide a screenshot that has some relevance to the tutorial itself.

    User Title
    Turbosmooth dat shit.
  • Infallible's Levels
    • P3: Peasant
      Points: 13,380
    • E1: Helper
      EF: 2
    • C1: Member
    • A6: Elder
      Account Age: 7 years
    Posted 6 years ago

    Pretty good for your first tutorial, well written as well. Good job, keep it up!

    User Title
    Fix this broken website.

Credits

Submitter
dylanm666's Levels
  • P1: Beggar
    Points: 746
  • C1: Member
  • A6: Elder
    Account Age: 6 years
dylanm666 (Creator/Co-creator)
Key Authors
dylanm666
Unknown

Rating

10.0/10
Based off 1 rating(s)

Additional Info

Genre
Other/Misc
Difficulty Level
Intermediate

Stats

Post Count
8
ViewCount
3,267
Date Added
6 years ago
Date Modified
2 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share