Raised This Month: $28 Target: $400
 7% 

Auto-Mute Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shytoos
SourceMod Donor
Join Date: Sep 2013
Old 09-27-2013 , 16:15   Auto-Mute Plugin
Reply With Quote #1

Hi, I want to know if it's possible to create a plugin who automute players from different countries.
Just Mute, no Silence.


With a Cvar like that :

Quote:
sm_automute_immunity "FR BE LU" // Choose countries that they will not be muted
sm_automute "1" // Turn Plugin ON/OFF
sm_automute_phrase "<player name> auto-muted (<country name>)" // Text who appears in chat when a player is auto-muted

Thank you, bye
shytoos is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 09-27-2013 , 17:06   Re: Auto-Mute Plugin
Reply With Quote #2

More than possible; a bit of editing to https://forums.alliedmods.net/showthread.php?p=1363825 to mute vs preventing connection would suffice.
__________________
thetwistedpanda is offline
shytoos
SourceMod Donor
Join Date: Sep 2013
Old 09-28-2013 , 06:54   Re: Auto-Mute Plugin
Reply With Quote #3

Hi Panda, thank you for answer.

I tried but I can't do that.
Someone could make this change, or tell me how to do ?

Thank you, bye.
shytoos is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-28-2013 , 08:50   Re: Auto-Mute Plugin
Reply With Quote #4

https://forums.alliedmods.net/showpo...5&postcount=58
__________________
https://drixevel.dev/ (Semi-retired but never really)
Drixevel is offline
shytoos
SourceMod Donor
Join Date: Sep 2013
Old 09-28-2013 , 10:47   Re: Auto-Mute Plugin
Reply With Quote #5

Thanks a lot !
shytoos is offline
shytoos
SourceMod Donor
Join Date: Sep 2013
Old 09-29-2013 , 08:45   Re: Auto-Mute Plugin
Reply With Quote #6

Sorry for Double Post, but your edited plugin doesn't work r3dw3r3w0lf. :S

I set "cf_mode "1"" and "cf_countries "BE CH GY CA"" (just for test) but me and others French players can speak at mic.

Can you fix it plz ?

Last edited by shytoos; 09-29-2013 at 08:46.
shytoos is offline
Wazman
SourceMod Donor
Join Date: Oct 2012
Location: Michigan
Old 09-29-2013 , 09:35   Re: Auto-Mute Plugin
Reply With Quote #7

Quote:
Originally Posted by shytoos View Post
Sorry for Double Post, but your edited plugin doesn't work r3dw3r3w0lf. :S

I set "cf_mode "1"" and "cf_countries "BE CH GY CA"" (just for test) but me and others French players can speak at mic.

Can you fix it plz ?
Please make sure that you didn't miss spell something in configuration, before claiming the mod is broken.
PHP Code:
I set "cf_mode "1"" and "cf_countries "BE CH GY CA"" 
you put two quotations here "cf_mode "1""< Should be "cf_mode" "1"
also you messed up "cf_countries "BE CH GY CA""< Should be "cf_countries" "BE CH GY CA"
and lastly you need cf_muteorban 0 to tell the mod to mute people from the blacklisted countries.
__________________
My Mods
Add me on steam? ...Also, My Community V


Last edited by Wazman; 09-29-2013 at 09:36.
Wazman is offline
shytoos
SourceMod Donor
Join Date: Sep 2013
Old 09-29-2013 , 09:38   Re: Auto-Mute Plugin
Reply With Quote #8

Quote:
// List countries
// example alpha 2 codes: "GB JP US"
// example alpha 3 codes: "GBR JPN USA"
// -
// Default: ""
cf_countries "BE CH GY CA"

// 0 = Allow all expect cf_countries
// 1 = Allow only cf_countries
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
cf_mode "1"

// 0 = mute, 1 = ban
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
cf_muteorban "0"
That's my config
shytoos is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 09-29-2013 , 11:26   Re: Auto-Mute Plugin
Reply With Quote #9

Quote:
Originally Posted by shytoos View Post
That's my config
Code:
cf_muteorban "1"
Try it with that, think I accidentally mixed the bool around.
__________________
https://drixevel.dev/ (Semi-retired but never really)
Drixevel 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 15:54.


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