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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
paterinvictus
Senior Member
Join Date: Aug 2012
Old 09-03-2012 , 13:59   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1201

Any way I can restrict weapons on specific maps? ie: making de_westwood shotguns and pistols only?

cheers!
paterinvictus is offline
VJScope
Senior Member
Join Date: Jul 2012
Location: Finland
Old 09-03-2012 , 18:01   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1202

Quote:
Originally Posted by paterinvictus View Post
Any way I can restrict weapons on specific maps? ie: making de_westwood shotguns and pistols only?

cheers!
This plugin works great in CSS and CSGO. Here's my configs for just allowing shotguns, grenades and pistols:

cfg/sourcemod/map-cfg/de_westwood.cfg:
Code:
sm_restrict_ak47_ct "0"
sm_restrict_ak47_t "0"
sm_restrict_aug_ct "0"
sm_restrict_aug_t "0"
sm_restrict_awp_ct "0"
sm_restrict_awp_t "0
sm_restrict_bizon_ct "0"
sm_restrict_bizon_t "0"
sm_restrict_c4 "-1"
sm_restrict_deagle_ct "-1"
sm_restrict_deagle_t "-1"
sm_restrict_decoy_ct "-1"
sm_restrict_decoy_t "-1"
sm_restrict_defuser "-1"
sm_restrict_elite_ct "-1"
sm_restrict_elite_t "-1"
sm_restrict_famas_ct "0"
sm_restrict_famas_t "0"
sm_restrict_fiveseven_ct "-1"
sm_restrict_fiveseven_t "-1"
sm_restrict_flashbang_ct "-1"
sm_restrict_flashbang_t "-1"
sm_restrict_g3sg1_ct "0"
sm_restrict_g3sg1_t "0"
sm_restrict_galilar_ct "0"
sm_restrict_galilar_t "0"
sm_restrict_glock_ct "-1"
sm_restrict_glock_t "-1"
sm_restrict_hegrenade_ct "-1"
sm_restrict_hegrenade_t "-1"
sm_restrict_hkp2000_ct "-1"
sm_restrict_hkp2000_t "-1"
sm_restrict_incgrenade_ct "2
sm_restrict_incgrenade_t "2
sm_restrict_knife_ct "-1"
sm_restrict_knife_t "-1"
sm_restrict_knifegg_ct "-1"
sm_restrict_knifegg_t "-1"
sm_restrict_m249_ct "0"
sm_restrict_m249_t "0"
sm_restrict_m4a1_ct "0"
sm_restrict_m4a1_t "0"
sm_restrict_mac10_ct "0"
sm_restrict_mac10_t "0"
sm_restrict_mag7_ct "-1"
sm_restrict_mag7_t "-1"
sm_restrict_molotov_ct "2
sm_restrict_molotov_t "2
sm_restrict_mp7_ct "0"
sm_restrict_mp7_t "0"
sm_restrict_mp9_ct "0"
sm_restrict_mp9_t "0"
sm_restrict_negev_ct "0"
sm_restrict_negev_t "0"
sm_restrict_nova_ct "-1"
sm_restrict_nova_t "-1"
sm_restrict_nvgs_ct "-1"
sm_restrict_nvgs_t "-1"
sm_restrict_p250_ct "-1"
sm_restrict_p250_t "-1"
sm_restrict_p90_ct "0"
sm_restrict_p90_t "0"
sm_restrict_sawedoff_ct "-1"
sm_restrict_sawedoff_t "-1"
sm_restrict_scar20_ct "0"
sm_restrict_scar20_t "0"
sm_restrict_sg556_ct "0"
sm_restrict_sg556_t "0"
sm_restrict_smokegrenade_ct "-1"
sm_restrict_smokegrenade_t "-1"
sm_restrict_ssg08_ct "0"
sm_restrict_ssg08_t "0"
sm_restrict_taser_ct "-1"
sm_restrict_taser_t "-1"
sm_restrict_tec9_ct "-1"
sm_restrict_tec9_t "-1"
sm_restrict_ump45_ct "0"
sm_restrict_ump45_t "0"
sm_restrict_vest_ct "-1"
sm_restrict_vest_t "-1"
sm_restrict_vesthelm_ct "-1"
sm_restrict_vesthelm_t "-1"
sm_restrict_xm1014_ct "-1"
sm_restrict_xm1014_t "-1"
well... still one problem. You can buy all weapons but you can't use restrict ones (exept molotovs you can buy only 2/team)
__________________
Strange women lying in ponds distributing swords is no basis for a system of government. Supreme executive power derives from a mandate from the masses, not from some farcical aquatic ceremony.

Last edited by VJScope; 09-03-2012 at 18:06.
VJScope is offline
paterinvictus
Senior Member
Join Date: Aug 2012
Old 09-03-2012 , 18:14   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1203

Quote:
Originally Posted by VJScope View Post
This plugin works great in CSS and CSGO. Here's my configs for just allowing shotguns, grenades and pistols:
Do you have to exec this config manually or does it just happen?
paterinvictus is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-03-2012 , 21:21   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1204

Quote:
Originally Posted by paterinvictus View Post
Any way I can restrict weapons on specific maps? ie: making de_westwood shotguns and pistols only?

cheers!
Use weapon restricts built in config loader. In addons/sourcemod/configs/restrict there should be a test.cfg and a te_.cfg Weapon restrict has support for map and map prefix configs already. So in the same folder (addons/sourcemod/configs/restrict) create a cfg named the de_westwood.cfg and put all your cvars in there (same as the main config) and change how you want.
Dr!fter is offline
paterinvictus
Senior Member
Join Date: Aug 2012
Old 09-03-2012 , 22:19   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1205

Quote:
Originally Posted by Dr!fter View Post
Use weapon restricts built in config loader. In addons/sourcemod/configs/restrict there should be a test.cfg and a te_.cfg Weapon restrict has support for map and map prefix configs already. So in the same folder (addons/sourcemod/configs/restrict) create a cfg named the de_westwood.cfg and put all your cvars in there (same as the main config) and change how you want.

<3
You rock!


*edit.
Do I have to manually exec that de_westwood.cfg? Or does it do it automatically?


*edit again......
Maybe this has Already been said in one of the previous posts but weapons like the Sawed-Off, Mp7, Bizon etc don't show up in the weapon_restrict.cfg.....? Can I add these manually?

Last edited by paterinvictus; 09-03-2012 at 22:40.
paterinvictus is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-03-2012 , 23:28   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1206

Quote:
Originally Posted by paterinvictus View Post
<3
You rock!


*edit.
Do I have to manually exec that de_westwood.cfg? Or does it do it automatically?


*edit again......
Maybe this has Already been said in one of the previous posts but weapons like the Sawed-Off, Mp7, Bizon etc don't show up in the weapon_restrict.cfg.....? Can I add these manually?

Its automatic.

Yes they are. I just deleted the config started the server again and it created it again. With them in there. Make sure your not using a cfg for CS:S (like the one in the first posts zip) just delete it and restart the server. The test.cfg and te_cfg however, do not have them since it was from CS:S.

Last edited by Dr!fter; 09-03-2012 at 23:28.
Dr!fter is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 09-04-2012 , 13:10   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1207

What exactly would I have to put in the overrides folder to make it so that only people with adminflag 'o' can buy restricted weapons?
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows
wtfaatp is offline
Jaashua
Junior Member
Join Date: Aug 2012
Old 09-05-2012 , 02:16   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1208

So I want to allow admins to be able to buy restricted weapons but I'm the only one who can. I'm also the only one with full admin powers. Is there anyway to implement this without giving everyone full admin?
Jaashua is offline
kdawgmaster
Member
Join Date: Jul 2009
Old 09-05-2012 , 02:34   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1209

Quote:
Originally Posted by Jaashua View Post
So I want to allow admins to be able to buy restricted weapons but I'm the only one who can. I'm also the only one with full admin powers. Is there anyway to implement this without giving everyone full admin?
Im looking at doing the same thing here, how would i go about making a flag for this plugin so donators and admins aren't effected?
kdawgmaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-05-2012 , 04:13   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1210

Admins who have access to so called command "sm_restrict_immunity_level" get immunity to restrict weapons.
This is flagged by default to "a" (reservation)

- To get it work flawless, don't give anyone root access "z".
- From admin_overrides.cfg you can change command admin flag to else and can also set 2 or more flags to it, admins just need have all these flags also to get access.
- Using admin_groups.cfg you can override this only command "allow" or "deny", not need mess with admin letters
__________________
Do not Private Message @me
Bacardi 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 11:27.


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