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

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
PStar
Veteran Member
Join Date: Mar 2008
Old 04-13-2010 , 15:26   Re: [CSS] Weapon Restrict
Reply With Quote #201

Quote:
Originally Posted by YouzAMenace View Post
for admin commands? if so ill add it hopefully next version
Don't know, i thin for all.
Cause no i use perplayer to restrict weapons and if player count drops or riser weapons will be restricted and unrestricted, and if to many weapon restriction were changed it simply spams teh chat.
PStar is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-13-2010 , 16:26   Re: [CSS] Weapon Restrict
Reply With Quote #202

Quote:
Originally Posted by YouzAMenace View Post
Ok heres a quick beta version. I fixed the drop the bomb for other players. It actually only worked if the player running the command had the bomb (oops was comparing client and not i) So that is now fixed see if you guys get an error again with sourcetv ingame. I tested with sourcetv and got no errors but i didnt get them the first time. If you guys dont get the error ill pull it out of beta and release it along with another change i plan on making.
Seems working fine now with bots/sourceTV
I haven't find any errors or problems... now
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-13-2010 , 23:55   Re: [CSS] Weapon Restrict
Reply With Quote #203

Quote:
Originally Posted by PStar View Post
Don't know, i thin for all.
Cause no i use perplayer to restrict weapons and if player count drops or riser weapons will be restricted and unrestricted, and if to many weapon restriction were changed it simply spams teh chat.
Is this the seperate per player?
Dr!fter is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 04-14-2010 , 03:13   Re: [CSS] Weapon Restrict
Reply With Quote #204

Quote:
Originally Posted by YouzAMenace View Post
Is this the seperate per player?
Yes.
PStar is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-14-2010 , 08:06   Re: [CSS] Weapon Restrict
Reply With Quote #205

Quote:
Originally Posted by PStar View Post
Don't know, i thin for all.
Cause no i use perplayer to restrict weapons and if player count drops or riser weapons will be restricted and unrestricted, and if to many weapon restriction were changed it simply spams teh chat.
That is good idea silent cvars commands in chat.

I'm not coder , but I get one way silent these cvars_chat messages when perplayer-plugin make action if player count something pla pla plaa.

Look file
...addons\sourcemod\scripting\restrictinc\adm incmds.sp

If you have version 2.2.7 beta=#197, go/look lines 182 - 188
If version 2.2.6 = go/look lines 173 - 179

So what I did I disabled/comment few lines. Like this
Code:
/*        else
*        {
*            if(ammount >= 0)
*                PrintToChatAll("\x04[SM] %s was restricted to %i %s", weapon, ammount, action);
*            else
*                PrintToChatAll("\x04[SM] %s was unrestricted %s", weapon, action);
*        }
*/
Finally compile
...addons\sourcemod\scripting\compile.exe
and take new smx file in ...addons\sourcemod\scripting\compiled\weapon _restrict.smx

*edit
Not mean that this is right way to edit ^^

Last edited by Bacardi; 04-14-2010 at 08:19.
Bacardi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-14-2010 , 08:30   Re: [CSS] Weapon Restrict
Reply With Quote #206

Yes thats a good way to do it that only stops changes made from console(the server it self) to not be announced. I added a cvar already need to test all the changes. With the cvar you would be able to disable it in per player before any changes then just re enable at the end of the per player string
Dr!fter is offline
xiloid
Member
Join Date: Sep 2009
Location: Ukraine
Old 04-15-2010 , 01:08   Re: [CSS] Weapon Restrict
Reply With Quote #207

Hello guys!
Can someone translate this plugin into russsian??
I try translate menu by myself on /restrictinc/adminmenu.sp but unsuccessful
xiloid is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 04-15-2010 , 04:08   Re: [CSS] Weapon Restrict
Reply With Quote #208

Уже всё сделано, смотри сюда
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
xiloid
Member
Join Date: Sep 2009
Location: Ukraine
Old 04-15-2010 , 04:58   Re: [CSS] Weapon Restrict
Reply With Quote #209

Quote:
Originally Posted by Snake60 View Post
Уже всё сделано, смотри сюда
Thank you very much!!! Great job!
(На русском запрещают отвечать, но всеравно спасибо! Все супер.)
xiloid is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-19-2010 , 21:12   Re: [CSS] Weapon Restrict
Reply With Quote #210

I decided to release 2.2.7 before i added any new features since im not sure how long it will be before i can finish adding the new features. The new release only fixes drop bomb command. Enjoy!

@Snake60 if you want to make another translation version (to make it easier for you) the only file that changed is admincmds.sp and only changed 2 things for the function DropC4. So you dont have to do everything over .

As a note my next major release (2.3.0) will have translations and a few other requests ive seen.
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 22:12.


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