Raised This Month: $51 Target: $400
 12% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 11-26-2017 , 13:41   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2011

Quote:
Originally Posted by Dr!fter View Post
Fixed the taser (in the SM 1.9 version), the bomb you can use the forwards/natives to disallow.



Its now in the repo inside the compiled folder.
i update to server but i have error

L 11/26/2017 - 20:08:26: [weapon_restrict.smx] Invalid section name found in perplayer.txt
L 11/26/2017 - 20:08:26: [weapon_restrict.smx] Failed to parse Perplayer fully
L 11/26/2017 - 20:08:26: [weapon_restrict.smx] Perplayer parser error on line 11 col 2. Error: Callback error

my perplayerrestrict.txt

"PerPlayer"
{
"awp"
{
"default" "0"
"10" "1"
"18" "2"
"26" "3"
}
"usp"
{
"default" "-1"
}
"flashbang"
{
"default" "-1"
"20" "-1"
}
"defuser"
{
"default" "-1"
}
}
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 11-27-2017 , 08:22   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2012

its usp_silencer. Also not sure why you are setting iit in there if you are just gonna set it to unrestricted, just remove them.

Last edited by Dr!fter; 11-27-2017 at 08:22.
Dr!fter is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-27-2017 , 11:40   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2013

Quote:
Originally Posted by Dr!fter View Post
its usp_silencer. Also not sure why you are setting iit in there if you are just gonna set it to unrestricted, just remove them.
Hey Drifter, have you looked into the grenade warmup bug? It's most likely caused by another plugin but I didn't have time to figure which one is causing that yet.
I can help track it down if needed... I've had grenade warmups disabled for quite a while now.
__________________
Obyboby is offline
maikal92
New Member
Join Date: Jul 2014
Old 12-05-2017 , 10:32   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2014

L 12/05/2017 - 18:29:43: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
L 12/05/2017 - 18:29:43: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55)
L 12/05/2017 - 18:29:43: [SM] Blaming: weapon_restrict.smx
L 12/05/2017 - 18:29:43: [SM] Call stack trace:
L 12/05/2017 - 18:29:43: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand

what is the problem? Help? is version 3.1.7

Last edited by maikal92; 12-05-2017 at 10:32.
maikal92 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-05-2017 , 11:09   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2015

Quote:
Originally Posted by maikal92 View Post
L 12/05/2017 - 18:29:43: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand
L 12/05/2017 - 18:29:43: [SM] Exception reported: Array index out-of-bounds (index 63, limit 55)
L 12/05/2017 - 18:29:43: [SM] Blaming: weapon_restrict.smx
L 12/05/2017 - 18:29:43: [SM] Call stack trace:
L 12/05/2017 - 18:29:43: [SM] [1] Line 202, restrictinc/events.sp::CS_OnBuyCommand

what is the problem? Help? is version 3.1.7
You are using the non SM 1.9 version.
Dr!fter is offline
maikal92
New Member
Join Date: Jul 2014
Old 12-05-2017 , 14:39   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2016

Quote:
Originally Posted by Dr!fter View Post
You are using the non SM 1.9 version.
SourceMod 1.9.0.6208

Last edited by maikal92; 12-05-2017 at 14:39.
maikal92 is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-05-2017 , 14:50   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2017

Quote:
Originally Posted by maikal92 View Post
SourceMod 1.9.0.6208
ok? Like i said you are using the non SM 1.9 version
Dr!fter is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 12-10-2017 , 03:37   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2018

Hy Dr!fter, is it possible for you to add KDR based weapon restricting?
It would be a cool feature for this plugin, cause there are some plugins that did this, but over the time they got abadoned and they are not working, or they sometimes crash the srevers.

Thank you in advance.

Last edited by PStar; 12-10-2017 at 03:38.
PStar is online now
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 12-10-2017 , 08:57   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2019

Quote:
Originally Posted by PStar View Post
Hy Dr!fter, is it possible for you to add KDR based weapon restricting?
It would be a cool feature for this plugin, cause there are some plugins that did this, but over the time they got abadoned and they are not working, or they sometimes crash the srevers.

Thank you in advance.
Not gonna happen, thats why this has an API, so others can do other plugins.
Dr!fter is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-17-2017 , 19:22   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #2020

Quote:
Originally Posted by Obyboby View Post
Hey Drifter, have you looked into the grenade warmup bug? It's most likely caused by another plugin but I didn't have time to figure which one is causing that yet.
I can help track it down if needed... I've had grenade warmups disabled for quite a while now.
Finally found the issue.

sm_warmup_infinite does not work with sv_infinite_ammo 1.
I was forced to set sv_infinite_ammo to 2, in order to get grenades to work in warmups. Otherwise the players would bug and they wouldn't be able to throw any grenades after the first one as described in my previous posts here.

EDIT: I've set sv_infinite_ammo back to 1 and everything works. Nevermind :/
I don't know what was happening then...
The final solution then:

PHP Code:
sm_warmup_infinite "0"
sv_infinite_ammo "1" 
For anyone who had players who got "stuck" and being unable to throw any grenade other than the first one they spawned with.
__________________

Last edited by Obyboby; 12-17-2017 at 19:30.
Obyboby is offline
Reply



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 11:43.


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