View Single Post
newdayonline
Junior Member
Join Date: Sep 2016
Old 09-18-2016 , 00:50   Re: Weapon Restrict remake
Reply With Quote #5

Quote:
Originally Posted by Dr!fter View Post
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.
I tried many configs but flashbang still remain 2, how do I change it to 1 flashbang per player exactly?
newdayonline is offline