View Single Post
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-02-2009 , 13:04   Re: Weapon Restrict remake
Reply With Quote #2

Per player restrict:

Per player restrict text file goes in sourcemod/configs/restrict/perplayerrestrict.txt
(perplayerrestrict being the name of the text file used it will automaticly be placed when you extract the zip file from above)

Inside the file should look something like this (by default).
Code:
"PerPlayer"
{
	"awp"
	{
		"default"		"0"
		"10"			"1"
		"18"			"2"
	}
	"usp"
	{
		"default"		"-1"
		"18"			"0"
	}
	"flashbang"
	{
		"default"		"-1"
		"20"			"10"
	}
	"defuser"
	{
		"default"		"-1"
		"20"			"100"
	}
}
the above perplayerrestrict file would do this.

Between 0 and 17 usp will be restricted to -1
Between 18 and 65 usp will be restricted to 0
Between 0 and 9 awp will be restricted to 0
Between 10 and 17 awp will be restricted to 1
Between 18 and 65 awp will be restricted to 2
Between 0 and 19 flashbang will be restricted to -1
Between 20 and 65 flashbang will be restricted to 10
Between 0 and 19 defuser will be restricted to -1
Between 20 and 65 defuser will be restricted to 100

For debug purposes the following server command was added sm_perplayer_debug and will print in the format above

Pre/Post warmup configs:
Pre and post warmup configs are located in addons/sourcemod/configs/restrict simply add cvar or commands you want to be run like you would do in a server config and done.

Last edited by Dr!fter; 01-20-2012 at 17:35.
Dr!fter is offline