Here's the OLD (1.1.4.0) readme file:
Counter Strike:Source Restrict Item Script
This script will set item restrictions on your server
depending on the settings you give it. This script is
just like the original one for AMX Mod X ported for
Sourcemod.
First and forth most, thanks to the original authors who
wrote the script first. I could have not have done this
script without their original code as a guide.
Use at your OWN risk! Please submit your changes of this
script to Shane. Known issues/Submit bug reports at:
http://bugs.alliedmods.net/?project=9&do=index
Thanks.
Name of Author: Shane A. Froebel
Credits: #sourcemod on irc.gamesurge.com
Website:
http://bugssite.org
E-mail:
[email protected]
Credit to who helped create this plugin...
* BAILOPAN - Sourcemod/Help/Issue List And SVN Hosting
* FlyingMongoose - Help with the "Buy"/Suggestions
* Olly - Native Support
* teame06 - KeyVars Functions
* theY4Kman - GUI I/O/Testing Guy
* Knagg0 - Hacks
KEY:
* Anyone can run this command
& Only admins with the ADMFLAG_CONFIG can run it.
# Only admins with the ADMFLAG_RCON can run it.
+ Either ADMFLAG_CONFIG or ADMFLAG_RCON can run it.
@ Not implemented yet.
USAGE:
sm_restrict: Brings up the Restrict Settings menu directly. (&)
sm_unrestrict: Brings you right to the unrestrict menu, by-passing the main menu. (&)
sm_restrict status: Show current status of restrictions script (*)
sm_restrict on: Enable restrictions (#)
sm_restrict off: Disable restrictions (#)
sm_restrict help: Show the usage menu in CS:S itself (*/@)
sm_restrict list: Show restrictions and limits (*)
-- add "player <name>" to see an indiviual's restrictions
-- running in console shows all players restrictions if player is not specified
-- only shows in console
sm_restrict view <global|map|team|player> [ <t|ct> | <playername|userid> ]: View the default restrictions for <global|map|team|player>'s from the server defaults (*/@)
sm_restrict save <global|map|team|player> [ <t|ct> | <playername|userid> ]: Save current restrictions for <global|map|team|player>'s as server defaults (#)
sm_restrict restore <global|map|team|player> [ <t|ct> | <playername|userid> ]: Restore <global|map|team|player>'s defaults. If non-exist, it will clear the current restrictions for thie group. (#)
sm_restrict limit [ global | map | team <t|ct> ] NUMBER <item index|item alias>: Set the number of this item can be used. This is checked second after basic restrictions. (+)
sm_restrict limit [ global | map | team <t|ct> ] <save|restore|view>: Save - Saves the gorup (#)
Retotre -- restore saved defaults (#)
View -- Shows you defaults. (*/@)
VAILD LIST OF ITEMS:
These are the vaild names allowed to be used. Unless recompiled, the knife and C4 are alawys able to be used.
glock
usp
p228
deagle
elite
fiveseven
m3
xm1014
galil
ak47
scout
sg552
awp
g3sg1
famas
m4a1
aug
sg550
mac10
tmp
mp5navy
ump45
p90
m249
priammo
secammo
vest
vesthelm
flashbang
hegrenade
smokegrenade
defuser
nvgs
MAJOR COMMANDS:
sm_(un)restrict all: (un)Restrict all items. Use of Knife and C4 only. (+)
sm_(un)restrict weapon(s): (un)Restrict all weapons. Use of Knife and C4 only plus equipment. (+)
sm_(un)restrict equip(ment): (un)Restrict all equipment. Use of Weapons only. (+)
sm_(un)restrict group <pistols|shotguns|nonfifles|rifles>: Use of Weapons only. (+)
E.g.: sm_restrict group pistols = Use of pistols only. (Will restrict everything else minus equipment and knife)
sm_unrestrict group pistols = Restore the use of just the pistols. (Will now allow you to buy anything AND restore the default settings for this group)
SINGLE ITEM (UN)RESTRICT COMMAND:
Append to this section can be either "global", "team", "map", or "player".
These values will not carry over to the next map.
COMMAND:
sm_(un)restrict item [ global | map | team <t|ct> ] <item index|item alias>: (un)Restrict item. (+)
HOW TO RESTRICT AN ITEM FROM COMMAND LINE:
All weapon restrictions can be set on global or teams or players or map
by perpending the "item" identifier. These are the examples.
1. "global"
-- if either "team", "map", "player" is not added, it is a global map restriction by default.
2. "team <t|ct>"
-- team will do both teams.
3. "map [ team <t|ct> | player <playername|userid> ]".
-- adding "team" will set this map team specific map restriction (You can not save these yet or have them loaded by default)
-- adding "player" will set player specific map restriction (You can not save these yet or have them loaded by default)
4. "player <playername|userid>"
"<item name|item alias>" must be one of the valid names that this script uses to match
up-against the real thing. In theory, you can can force every single person with the knife.
E.g.: sm_restrict item team ct awp = Disables buying/use of the AWP for the CT's
sm_restrict item team awp = Disabled buying/use fo the AWP for both teams.
sm_restrict item player TooT awp = Disables buying/use of the AWP for [EcG-B] TooT
sm_restrict item global awp m4a1 deagle = Disabled buying/use of the AWP, M4A1 and the DEAGLE for everyone.
The hierarchy of this script is as follows: Global --> Map --> Team --> Player. Here is an example.
So buy default your server makes the awp, g3sg1, and sg550 global. So now the map "de_westwood" loads, but the "scout", "sg552", and "aug"
are cheap because it allows them to zoom in on this map. So there is a "de_westwood" section that has "scout", "sg552", and "aug" as a restrict items.
So if you tried to buy any of these items on this map, you would get a nice error message. However, the next round is "de_losttemple", you be able to now
buy "scout", "sg552", and "aug", but still not the "awp", "g3sg1", and "sg550".
HOW TO RESTRICT AN ITEM VIA LIMIT FROM COMMAND LINE:
If you have an item set to a limit, that item will be able to be bought. However, if an item is set to restricted, the item can not be bought and this is by-passed.
For safty messure, if you try to limit something, and it is currenly restricted, it will tell you, however if if a limited item is set to 0, it gets
placed in the restricted group depending on the option. Also if a restriction is set, the value would stay vaild for the map until a new map is changed. This is in place so it
can switch between restricted and limited at ease. E.g: You set the m4a1 to limited 3 per global. All of a sudden it's map or global restricted (not team because these are
different types of checks) the item is not allowed to be used. However now the item comes out of restriction and it's back to 3 global.
It must not be in the "global", "team", or "map" settings for this to work. hierarchy is the same format of: Global --> Map --> Team.
AWP limited 2 times in the global setting will override the AWP limited 4 times to the T team. If there are saved settings, they will be loaded each time the server starts a new map.
E.g.: sm_restrict limit global 2 awp = 2 AWP for the entire map
sm_restrict limit team t 4 awp = 4 AWP for the entire T team.
sm_restrict limit team 2 awp = 2 AWP for both teams.
sm_restrict limit global 0 awp = Makes the AWP a restricted item
sm_restrict limit global -1 awp = Makes the AWP an unrestricted item
sm_restrict limit global save = Saves the current global limits
sm_restrict limit team t = Save the current T team limits
sm_restrict limit map = Save the current map limits
sm_restrict limit team = Save both teams limits