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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
templetonpeck
Senior Member
Join Date: Apr 2009
Old 02-19-2010 , 12:00   Re: [CSS] Weapon Restrict
Reply With Quote #121

Ok, i will try this for sure.

Last Question - would this also work?

Code:
"AwpRestrict"
{
    "awp"
    {
        "10"    "0" //restrict it completely until 10 Players
        "24"    "2" //from 10 up to 24 Players just 2 AWPs are allowed
    }
}
I really would like to restrict AWP until Server has filled up a little bit. And from then on i even want only two per team.
__________________

Last edited by templetonpeck; 02-19-2010 at 12:02.
templetonpeck is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-19-2010 , 14:06   Re: [CSS] Weapon Restrict
Reply With Quote #122

Yea that will work but if your server only has 24 slots you can just set it to 2 in the normal config in cfg/sourcemod/ the one in there set the awp to 2 for each and done. If there is no more numbers in the per player and there is more players then the highest in per player it uses the one in there. But the way you said should also work make sure you enable perplayer!!! That's also in the same config in cfg/sourcemod/ look in the first post to see the cvars
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-19-2010 , 14:13   Re: [CSS] Weapon Restrict
Reply With Quote #123

Quote:
Originally Posted by Bacardi View Post
Yes this works
Code:
"AwpRestrict"
{
    "awp"
    {
        "10"    "0" //restrict it completely until there are 10 Players for example
    }
}
I didn't understand this then...
But what ever there samples and do what you like


Then leave previous versio like this also first post. This versio work great.
The only problem is user who can not set these right.
yes the current works fine but the new version if I do it will be much better much more advanced ;) I might make it into a seprate plugin I'm sure people will find it useful. I need to think about it.
Dr!fter is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-20-2010 , 13:20   Re: [CSS] Weapon Restrict
Reply With Quote #124

2.2.3 is now out Fixed the bug with admin root not counting as immunity now if you have root you still get immunity. Added respawn during warmup cvar. Aswell as added something to remove weapons on the ground during warmup Look at the first post for more info. Oh i also hopefully fixed that bug with the grenades during warmup where you couldnt swing your knife or throw grenade or anything. Make sure to overwrite the old config with the new one since cvars have been added. Next update ill aim to add translations. Enjoy.

Last edited by Dr!fter; 02-20-2010 at 13:27.
Dr!fter is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 02-20-2010 , 21:34   Re: [CSS] Weapon Restrict
Reply With Quote #125

Thank you for your continued efforts on this plugin and the respawn on warmup!

Thats big!
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-21-2010 , 05:36   Re: [CSS] Weapon Restrict
Reply With Quote #126

I found TYPO !!

I tried find quick in
...cfg/sourcemod/weapon_restrict.cfg
weapon_sg552
Nope from first time. I ctrl+F search 552
I found it but have been write
Code:
// Restrict/Unrestrict -1 unrestricts vesthelm for ct
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"

// Restrict/Unrestrict -1 unrestricts vesthelm for t
// -
// Default: "-1"
sm_restrict_sg552_t "-1"
I thought must be come with zip file so I renamed old cfg and let plugin create new one.
No, same description

I peek source file and found typo in
...scripting\restrictinc\commands_cvars_tries .sp
Line: 187, 188
PHP Code:
    sg552ct         CreateConVar("sm_restrict_sg552_ct""-1""Restrict/Unrestrict -1 unrestricts vesthelm for ct");
    
sg552t             CreateConVar("sm_restrict_sg552_t""-1""Restrict/Unrestrict -1 unrestricts vesthelm for t"); 
I fix and compiled myself
__________________
Do not Private Message @me
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-21-2010 , 09:30   Re: [CSS] Weapon Restrict
Reply With Quote #127

Quote:
Originally Posted by Bacardi View Post
I found TYPO !!

I tried find quick in
...cfg/sourcemod/weapon_restrict.cfg
weapon_sg552
Nope from first time. I ctrl+F search 552
I found it but have been write
Code:
// Restrict/Unrestrict -1 unrestricts vesthelm for ct
// -
// Default: "-1"
sm_restrict_sg552_ct "-1"
 
// Restrict/Unrestrict -1 unrestricts vesthelm for t
// -
// Default: "-1"
sm_restrict_sg552_t "-1"
I thought must be come with zip file so I renamed old cfg and let plugin create new one.
No, same description

I peek source file and found typo in
...scripting\restrictinc\commands_cvars_tries .sp
Line: 187, 188
PHP Code:
    sg552ct         CreateConVar("sm_restrict_sg552_ct""-1""Restrict/Unrestrict -1 unrestricts vesthelm for ct");
    
sg552t             CreateConVar("sm_restrict_sg552_t""-1""Restrict/Unrestrict -1 unrestricts vesthelm for t"); 
I fix and compiled myself
Weird no one spotted it before cause that didnt change in the new release. But i released a fix, it fixes another bug too with the wrong version number being reported.
Dr!fter is offline
borli
Member
Join Date: Dec 2009
Old 02-24-2010 , 10:58   Re: [CSS] Weapon Restrict
Reply With Quote #128

Which admin flag do admins have to have in order to change the weapon restrict cvars and use the weapon restrict admin commands in game? cos I don't want my regular admins to change it while in game playing. Is it possible to allocate it to cvar flag or any custom flag, so that I can uncheck this flag for my admins.
borli is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 02-24-2010 , 15:18   Re: [CSS] Weapon Restrict
Reply With Quote #129

changing the cvars for any weapon is the cvar flag. So dont allow them the cvar flag and they shouldnt have the commands to do so. The only command i believe that isnt convar is the sm_dropc4 command that is the ban flag.
Dr!fter is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 02-24-2010 , 17:37   Re: [CSS] Weapon Restrict
Reply With Quote #130

Great support on this plugin ...
Thank you for your continued work.
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!


nightrider 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 20:52.


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