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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
Natalie
Junior Member
Join Date: May 2009
Old 06-08-2010 , 02:44   Re: [CSS] Weapon Restrict
Reply With Quote #241

Sorry i am new at this and i wanted to know how i would be able to set myserver for 2 awps per team what is the steps,
Natalie is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-08-2010 , 03:14   Re: [CSS] Weapon Restrict
Reply With Quote #242

Quote:
Originally Posted by Natalie View Post
Sorry i am new at this and i wanted to know how i would be able to set myserver for 2 awps per team what is the steps,
Hellou new guy and if this help, you could read other post to find answer. #2 #181 #224

Notice, this works only now for weapon AWP.
If you want restrict per player other weapons too, you have to use also plugin called Per player commands

To set awp per player restrict:
- Enable Cvar to start use perplayerrestrict.txt (...cstrike\addons\sourcemod\configs\restrict \perplayerrestrict.txt)
Go edit ...cstrike\cfg\sourcemod\weapon_restrict.cfg
Code:
...
// If enabled will restrict awp per player count
// -
// Default: "0"
sm_perplayer_restrict "1"
...
- After this, edit
...cstrike\addons\sourcemod\configs\restrict\perplayerrestrict.txt
There is ready example #2:
Quote:
Code:
"AwpRestrict"
{
    "awp"
    {
        "4"        "1"
        "8"        "3"
        "12"        "4"
    }
}
the above perplayerrestrict file would do this.

4 players or less 1 awp (per team, 1 awp=T and 1 awp=CT)
8 players or less and more than 4 players 3 awps (per team, 3 awps=T and 3 awps=CT)
12 players or less and more than 8 players 4 awps. (per team, 4 awps=T and 4 awps=CT)

If your server has more slots than 12 and there is more than 12 players it will use the default value what ever is assigned in the normal restrict config. (weapon_restrict.cfg)

Hopefully i was clear on how this works. If you have trouble getting it how you want post here what your looking for more or less and ill try and do it for you. I tired to make the system as easy as possible.

Last edited by Bacardi; 06-08-2010 at 03:22.
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-08-2010 , 09:57   Re: [CSS] Weapon Restrict
Reply With Quote #243

Or if he just wants it always to be 2 awps per team he can set it in weapon_restrict.cfg
Dr!fter is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-08-2010 , 15:08   Re: [CSS] Weapon Restrict
Reply With Quote #244

Bacardi is offline
vertexshader
Senior Member
Join Date: Mar 2008
Old 06-09-2010 , 03:06   Re: [CSS] Weapon Restrict
Reply With Quote #245

Particularly about the pic above... I think he's checkin results of his new hairgrowth lotion :}
vertexshader is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-10-2010 , 12:05   Re: [CSS] Weapon Restrict
Reply With Quote #246

1 quick question, has it got ability to exec pre and post warmup cfg or at least cvars?
__________________
shustas is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 06-10-2010 , 13:42   Re: [CSS] Weapon Restrict
Reply With Quote #247

Quote:
Originally Posted by shustas View Post
1 quick question, has it got ability to exec pre and post warmup cfg or at least cvars?
No, what do you need it for? I can add it to the list of things to add for 2.2.8 i got some new fetures added already and some fixes and plan to release it soon so if you want i can add it.
Dr!fter is offline
shustas
SourceMod Donor
Join Date: May 2007
Location: London
Old 06-10-2010 , 14:39   Re: [CSS] Weapon Restrict
Reply With Quote #248

yes please. The ability to exec pre and post warmup cvars or cfg files. I got couple plugins that would need a temp disable during warmup period
__________________
shustas is offline
doa
Member
Join Date: Nov 2007
Old 06-10-2010 , 16:45   Re: [CSS] Weapon Restrict
Reply With Quote #249

How do you disable stats during warmup? I guess there's a way to do that today?

If not, then pre/post would be one way, simply disable the logging in pre and enable in post.
__________________
-- Growing older is mandatory --
----- Growing up is optional -----
doa is offline
doa
Member
Join Date: Nov 2007
Old 06-10-2010 , 16:54   Re: [CSS] Weapon Restrict
Reply With Quote #250

One more question...
What happen with existing weapons when number of players drops below perplayerrestrict?

Let say AWP is restricted when less then 4 players, and during the round the 4th players drop, leaving the server with 3 players. What happen to the AWP's currently in use?

Ideally they should stay until round end, and then refound the owner.
__________________
-- Growing older is mandatory --
----- Growing up is optional -----
doa 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 21:17.


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