Quote:
Originally Posted by PStar
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 ^^