Raised This Month: $32 Target: $400
 8% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
panikajo
Member
Join Date: Jan 2013
Old 03-18-2018 , 11:10   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2061

Quote:
Originally Posted by Dr!fter View Post
You were already told how to remove it. Also it only shows up when people try to buy it or pick it up so clearly they don’t know.
Have problem
L 03/18/2018 - 15:55:07: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand L 03/18/2018 - 16:00:55: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55) L 03/18/2018 - 16:00:55: [SM] Blaming: weapon_restrict.smx

i use sm 1.9
panikajo is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 03-18-2018 , 16:36   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2062

cool
Dr!fter is offline
Mistirian
New Member
Join Date: Mar 2018
Old 03-20-2018 , 12:57   Re: Weapon Restrict remake
Reply With Quote #2063

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.
How to apply this part from txt file, so that is active on server? I want to apply part for AWP.

Last edited by Mistirian; 03-20-2018 at 12:58.
Mistirian is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 04-09-2018 , 18:02   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2064

Can't add custom .wav for restricted weapons, does it need specific properties?
Can I use an mp3 instead?

PHP Code:
L 04/09/2018 23:56:40: [weapon_restrict.smxSound sound/buttons/volevi.wav dosnt exist 
The file is in that folder tho... (using FastDL)
__________________
Obyboby is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-23-2018 , 14:59   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2065

Quote:
Originally Posted by Avastis View Post
Hey, I host a surf server and I try to install your plugin to restrict c4 / toxic weapons, but when I put the plugin the weapon restrict work but when I go in buyzone and I try to buy something it crash ( even a weapon not restricted) I have SourceMod 1.8.0.5985.
Update SM
Dr!fter is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 05-19-2018 , 09:48   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2066

Hi, would you consider adding a "random" option to the warmup weapons?
Every player would get a different weapon at each respawn.
There's already a plugin that does that but I don't think it supports warmups.
Thank you
__________________

Last edited by Obyboby; 05-19-2018 at 09:48.
Obyboby is offline
hoycieto
Senior Member
Join Date: Feb 2018
Old 06-28-2018 , 04:36   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2067

Quote:
L 06/28/2018 - 00:17:19: SourceMod error session started
L 06/28/2018 - 00:17:19: Info (map "de_mirage") (file "errors_20180628.log")
L 06/28/2018 - 00:17:19: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55)
L 06/28/2018 - 00:17:19: [SM] Blaming: weapon_restrict.smx
L 06/28/2018 - 00:17:19: [SM] Call stack trace:
L 06/28/2018 - 00:17:19: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
L 06/28/2018 - 001:43: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55)
L 06/28/2018 - 001:43: [SM] Blaming: weapon_restrict.smx
L 06/28/2018 - 001:43: [SM] Call stack trace:
L 06/28/2018 - 001:43: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
L 06/28/2018 - 00:40:43: Error log file session closed.
Latest SM 1.9, CS:GO
hoycieto is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-29-2018 , 08:53   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2068

cool
Dr!fter is offline
csbluepwoer.eu
New Member
Join Date: Jul 2018
Old 07-08-2018 , 04:23   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2069

hi, the plugin is great I only have 1 problem. How to limit the Grenade incediary weapon? I tried both by config files as well as by sm_admin (in this case, it only behaves to the end of the map)

Quote:
// -1 = unrestricted, 0 = restricted, positive numbers = number allowed for Counter-Terrorists. Weapon:incendiary_Grenade
// -
// Default: "-1"
sm_restrict_ incendiary_grenade_ct "1"
csbluepwoer.eu is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-08-2018 , 15:00   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2070

Quote:
Originally Posted by Obyboby View Post
Hi, would you consider adding a "random" option to the warmup weapons?
Every player would get a different weapon at each respawn.
There's already a plugin that does that but I don't think it supports warmups.
Thank you
Have you considered on this, Drifter?
__________________
Obyboby is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode