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

Auto-Alltalk


Post New Thread Reply   
 
Thread Tools Display Modes
mryoung
Junior Member
Join Date: Feb 2008
Location: Reims, France
Old 04-13-2008 , 05:41   Re: Auto-Alltalk
Reply With Quote #11

hi there !

I'm pretty new to sourcemod and even more new to sourcepawn language ...

I'm pretty interested by this plugin, but, if i'm not wrong, i think there an error in the sourcecode ...
Indeed, when a player disconnects, you check if we reach the "reverse" limit (means, by default, we have less than 10 players)...
If it's the case, you set sv_alltalk to the sm_aatmode value instead of setting it to the "reverse" value of sm_aatmode ...

Imho, the OnClientDisconnect method should be like the following:
Code:
public OnClientDisconnect(client)
{
	if (GetConVarInt(g_Cvar_Limit))

	{

		new cur = GetClientCount(false);



		if (cur < GetConVarInt(g_Cvar_Limit))

		{

			SetConVarBool(g_Cvar_Alltalk, !GetConVarBool(g_Cvar_Mode));

		}		

	}
}
Can you confirm it ?

Thanks in advance for your answer.

cya
__________________
:: mRyOuNg ::
mryoung is offline
Send a message via ICQ to mryoung Send a message via MSN to mryoung Send a message via Skype™ to mryoung
VictorOfSweden
Junior Member
Join Date: Aug 2008
Location: Sweden
Old 08-30-2008 , 18:49   Re: Auto-Alltalk
Reply With Quote #12

Quote:
Originally Posted by ferret
If someone wants to make a more advanced version, they are welcome to take this as a start and add to it.
I did, and here's the result. Enjoy!
Attached Files
File Type: sp Get Plugin or Get Source (SpA-AutoAlltalk.sp - 731 views - 4.6 KB)
VictorOfSweden is offline
curlefry
Senior Member
Join Date: Jun 2008
Location: Georgia, USA
Old 09-06-2008 , 18:24   Re: Auto-Alltalk
Reply With Quote #13

Quote:
Originally Posted by VictorOfSweden View Post
I did, and here's the result. Enjoy!
Ferret's version doesn't work for me at all. It spams sv_alltalk "1" 2 million times in chat/console.

You're works great, but 1 question:

Can you make it to where Alltalk goes back to the previous setting when the limit goes back under what's set?

And you need to add a minimum and maximum value for sm_spa_atlmit...
__________________

Last edited by curlefry; 09-06-2008 at 18:43.
curlefry is offline
Send a message via MSN to curlefry
bangboom
Junior Member
Join Date: Jul 2008
Old 09-28-2008 , 12:51   Re: Auto-Alltalk
Reply With Quote #14

Awesome! I have been looking for this, thanks Ferret.
bangboom is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 11-17-2008 , 21:58   Re: Auto-Alltalk
Reply With Quote #15

Ferrets wont turn all talk off after the limit and swedens wont make the auto config with cvars in it and gives me an error that it needs translation files.
__________________

DontWannaName is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-16-2015 , 21:16   Re: Auto-Alltalk
Reply With Quote #16

I updated this to work with CS:GO, based off of VictorofSweden's update. I haven't gotten a chance to test it, but it should work no problem.

cvars:
sm_spa_atlimit - Number of players needed to toggle alltalk (0 = turn off). Default: 16
sm_spa_atlimitmode - When the player limit is reached, turn alltalk on/off (1/0). Default: 0
sm_spa_atroundend - Turn toggling of alltalk at round end on/off (1/0). Default: 1
sm_spa_atroundendmode - When a round is over, turn alltalk on/off (1/0). Default: 1
Attached Files
File Type: sp Get Plugin or Get Source (autoalltalk.sp - 396 views - 4.5 KB)
File Type: txt autoalltalk.phrases.txt (163 Bytes, 207 views)
__________________

Last edited by sneaK; 05-17-2015 at 03:26.
sneaK is offline
AriaXoria
New Member
Join Date: May 2015
Old 05-28-2015 , 16:52   Re: Auto-Alltalk
Reply With Quote #17

Quote:
Originally Posted by blackhawk74 View Post
I updated this to work with CS:GO, based off of VictorofSweden's update. I haven't gotten a chance to test it, but it should work no problem.

cvars:
sm_spa_atlimit - Number of players needed to toggle alltalk (0 = turn off). Default: 16
sm_spa_atlimitmode - When the player limit is reached, turn alltalk on/off (1/0). Default: 0
sm_spa_atroundend - Turn toggling of alltalk at round end on/off (1/0). Default: 1
sm_spa_atroundendmode - When a round is over, turn alltalk on/off (1/0). Default: 1
Is this supposed to work on the fly, or at the beginning of the next map when conditions are met?
AriaXoria is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 05-29-2015 , 02:26   Re: Auto-Alltalk
Reply With Quote #18

Quote:
Originally Posted by AriaXoria View Post
Is this supposed to work on the fly, or at the beginning of the next map when conditions are met?
On the fly. Once the conditions are met, sv_alltalk will change to whatever you set it to.
__________________
sneaK is offline
z282846139
Member
Join Date: Aug 2018
Old 09-09-2018 , 08:49   Re: Auto-Alltalk
Reply With Quote #19

Quote:
Originally Posted by sneaK View Post
I updated this to work with CS:GO, based off of VictorofSweden's update. I haven't gotten a chance to test it, but it should work no problem.

cvars:
sm_spa_atlimit - Number of players needed to toggle alltalk (0 = turn off). Default: 16
sm_spa_atlimitmode - When the player limit is reached, turn alltalk on/off (1/0). Default: 0
sm_spa_atroundend - Turn toggling of alltalk at round end on/off (1/0). Default: 1
sm_spa_atroundendmode - When a round is over, turn alltalk on/off (1/0). Default: 1
Is this plugin works on L4D2?
z282846139 is offline
eliteroyal
AlliedModders Donor
Join Date: Dec 2016
Location: Moldova
Old 07-06-2019 , 04:44   Re: Auto-Alltalk
Reply With Quote #20

SneaK, can you modifi it so at every begining of map players would vote if they want alltalk 1 or 0 ? csgo server.
__________________
PEACE FROM MOLDOVA
eliteroyal is offline
Reply



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 19:18.


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