View Single Post
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