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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Obyboby
Veteran Member
Join Date: Sep 2013
Old 09-15-2017 , 11:24   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1991

Quote:
Originally Posted by Ultralord View Post
for some reason when restricted items has reached the players CAN buy the restricted weapon and after the weapon drops.. and anyone crying for the money lost..
is possible to fix somehow..? to be blocked on buy menu if restricted weapon has reached with allowed number?
use the latest sourcemod build to fix that. 1.8 build 6027 ( I believe it was fixed by 6025 already)
Had the same bug but it's not occuring anymore on my server


Btw still trying to figure out why I can't play grenade warmups anymore.
It only happens with HE grenades.
You throw the first one, and then get stuck with your knife, u cant even swing the knife. Your only option is to rush to your enemy and get killed :C
Anyone else expierencing this? Most likely another plugin interfering but I have way too many to try and remove one by one :C
Any help would be appreciated. It's been more than a month that I had to keep he grenades disabled at warmup :C
__________________

Last edited by Obyboby; 09-15-2017 at 11:30.
Obyboby is offline
Muffik
Junior Member
Join Date: Jul 2017
Old 10-03-2017 , 15:53   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1992

Hello, I have a question.
Is it possible to set this plugin up in the way that would "partially" restrict some weapons (e.g so that let's say awp will be restricted to two per team, although vips will be able to override that restriction) and at the same time restrict some weapons completely (so that not even vips or admins will be able to buy them) ?

I have the partial restriction configured correctly, although I would like to make few weapons not able to use at all. Is this possible ? If so, could someone please explain to me how to do it ?

I mean is it possible to configure so within this plugin, or do I need another one to do that ?
Muffik is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-04-2017 , 15:56   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1993

Quote:
Originally Posted by Muffik View Post
Hello, I have a question.
Is it possible to set this plugin up in the way that would "partially" restrict some weapons (e.g so that let's say awp will be restricted to two per team, although vips will be able to override that restriction) and at the same time restrict some weapons completely (so that not even vips or admins will be able to buy them) ?

I have the partial restriction configured correctly, although I would like to make few weapons not able to use at all. Is this possible ? If so, could someone please explain to me how to do it ?

I mean is it possible to configure so within this plugin, or do I need another one to do that ?
You need to either modify lots of stuff or use the forwards in a new plugin
Dr!fter is offline
Muffik
Junior Member
Join Date: Jul 2017
Old 10-04-2017 , 18:32   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1994

Not sure that I understand how I would do that =/
Muffik is offline
cheating_anime
New Member
Join Date: Oct 2017
Old 10-07-2017 , 16:43   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1995

crashes my server for some reason
cheating_anime is offline
chris1994Op
Member
Join Date: Oct 2017
Old 10-16-2017 , 10:26   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1996

How can i restrict everything for scouts maps that leave deagls and usps lying on map only scouts n knifes strictly
chris1994Op is offline
unknownuser1339
New Member
Join Date: Jul 2017
Old 10-22-2017 , 18:42   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1997

it crashs my server. any help pls
unknownuser1339 is offline
Kammi_
AlliedModders Donor
Join Date: Dec 2007
Old 10-24-2017 , 12:41   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1998

Quote:
Originally Posted by unknownuser1339 View Post
it crashs my server. any help pls
any logs ? and what game ?
__________________



Kammi_ is offline
Send a message via ICQ to Kammi_
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-27-2017 , 10:55   [CSS/CS:GO] Weapon Restrict - Admin weapon restriction v.0.1
Reply With Quote #1999

*bug
Don't use it. I fix later.


[CSS/CS:GO] Weapon Restrict - Admin weapon restriction v.0.1

Here is add on plugin beside Weapon Restrict plugin. Means you need both plugins.
Rant:
- This affect to players who have access to admin override sm_restrict_immunity_level
- Need enable cvar sm_weapon_restrict_immunity to get admin immunity work.
- This should work so it not affect to weapon restrict count, admins bypass this.


- Once you have loaded add on plugin test.smx in server,
players with sm_restrict_immunity_level access lose they immunity to get restricted weapons <- Read this twice and keep it mind!

- To give immunity back for specific weapon, use new admin overrides sm_restrict_immunity_*, replace *asterix with followed word
(new admin override is flagged to "root" by default)
Code:
			"p228",			"glock",		"scout",		
	"hegrenade",	"xm1014",		"c4",			"mac10",		
	"aug",			"smokegrenade",	"elite",		"fiveseven",
	"ump45",		"sg550",		"galil",		"famas",
	"usp",			"awp",			"mp5navy",		"m249",
	"m3",			"m4a1",			"tmp",			"g3sg1",
	"flashbang",	"deagle",		"sg552",		"ak47",
	"knife",		"p90",			"shield",		"vest",			
	"vesthelm",		"nvgs",			"galilar",		"bizon",
	"mag7",			"negev",		"sawedoff",		"tec9",
	"taser",		"hkp2000",		"mp7",			"mp9",
	"nova",			"p250",			"scar17",		"scar20",
	"sg556",		"ssg08",		"knifegg",		"molotov",
	"decoy",		"incgrenade",	"defuser"


- For example in admin groups override,
group called "Admins" get access to restricted weapons ssg08 and awp
admin_groups.cfg
Spoiler


- Alternative way is override admin flags if you can't handle admin groups
admin_overrides.cfg
Spoiler


- For compile this add on plugin source code test.sp, require:
restrict.inc
cstrike_weapons.inc


- For ready use, download compiled plugin test.smx



*edit
0.1v - BUG! there is little flaw, admin can't get restricted weapon even it have opportunity
Attached Files
File Type: smx test.smx (4.6 KB, 529 views)
File Type: sp Get Plugin or Get Source (test.sp - 483 views - 1.9 KB)
__________________
Do not Private Message @me

Last edited by Bacardi; 10-27-2017 at 12:38.
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-27-2017 , 13:50   Re: [CSS/CS:GO] Weapon Restrict - Admin weapon restriction v.0.1
Reply With Quote #2000

Quote:
Originally Posted by Bacardi View Post
*bug
Don't use it. I fix later.


[CSS/CS:GO] Weapon Restrict - Admin weapon restriction v.0.1

Here is add on plugin beside Weapon Restrict plugin. Means you need both plugins.
Rant:
- This affect to players who have access to admin override sm_restrict_immunity_level
- Need enable cvar sm_weapon_restrict_immunity to get admin immunity work.
- This should work so it not affect to weapon restrict count, admins bypass this.


- Once you have loaded add on plugin test.smx in server,
players with sm_restrict_immunity_level access lose they immunity to get restricted weapons <- Read this twice and keep it mind!

- To give immunity back for specific weapon, use new admin overrides sm_restrict_immunity_*, replace *asterix with followed word
(new admin override is flagged to "root" by default)
Code:
			"p228",			"glock",		"scout",		
	"hegrenade",	"xm1014",		"c4",			"mac10",		
	"aug",			"smokegrenade",	"elite",		"fiveseven",
	"ump45",		"sg550",		"galil",		"famas",
	"usp",			"awp",			"mp5navy",		"m249",
	"m3",			"m4a1",			"tmp",			"g3sg1",
	"flashbang",	"deagle",		"sg552",		"ak47",
	"knife",		"p90",			"shield",		"vest",			
	"vesthelm",		"nvgs",			"galilar",		"bizon",
	"mag7",			"negev",		"sawedoff",		"tec9",
	"taser",		"hkp2000",		"mp7",			"mp9",
	"nova",			"p250",			"scar17",		"scar20",
	"sg556",		"ssg08",		"knifegg",		"molotov",
	"decoy",		"incgrenade",	"defuser"


- For example in admin groups override,
group called "Admins" get access to restricted weapons ssg08 and awp
admin_groups.cfg
Spoiler


- Alternative way is override admin flags if you can't handle admin groups
admin_overrides.cfg
Spoiler


- For compile this add on plugin source code test.sp, require:
restrict.inc
cstrike_weapons.inc


- For ready use, download compiled plugin test.smx



*edit
0.1v - BUG! there is little flaw, admin can't get restricted weapon even it have opportunity
I'll just this now. There is a new version in the works for sourcemod 1.9 (that has lots of cs:go fixes) you can find it on the repo. Hopefully it doesn't break any third party plugin that uses it but heads up since you are one of the few that made another plugin using the restrict API.
Dr!fter 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 13:10.


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