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

Auto-Alltalk


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Plugin ID:
245
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automatically changed the value of sv_alltalk based on player count.
    Old 01-02-2008 , 12:47   Auto-Alltalk
    Reply With Quote #1

    Auto-Alltalk
    Version 1.0

    By: ferret!

    Description

    This plugin will automatically adjust the value of sv_alltalk based on the number of connected players. It can work both ways, either turning on OR off. Please be aware that when running this plugin you will lose control of sv_alltalk, as the plugin will automatically reset the convar to what it believes should be the value. You can stop this by setting the limit to 0.

    Cvars
    • sm_aatlimit
      • Number of players required to change alltalk. Defaults to 10. Maximum of 64. Set to 0 to disable.
    • sm_aatmode
      • Sets whether alltalk is enabled or disabled when the limit is reached. Default is "0".
      • When set to 0, alltalk will be disabled when the limit is reached, and enabled when you fall below the limit.
      • When set to 1, alltalk will be enabled when the limit is reached, and disabled when you fall below the limit.
    Change Log:
    • Version 1.0
      • Release
    Bugs, Requests, Translations, or Other Issues

    Post bugs here. I do not plan to make any major changes to this plugin or heavily support it. As long as it works, it works. If it breaks, I'll fix it.
    Attached Files
    File Type: sp Get Plugin or Get Source (autoalltalk.sp - 3163 views - 3.4 KB)
    __________________
    I'm a blast from the past!
    ferret is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 01-02-2008 , 12:49   Re: Auto-Alltalk
    Reply With Quote #2

    This plugin compiles. I wrote it at lunch out of boredom. I'm 99.9999999999% confident that it works, but it hasn't actually been tested. It's not exactly rocket science, just fulfilling a small request:

    http://forums.alliedmods.net/showthread.php?t=64938
    __________________
    I'm a blast from the past!
    ferret is offline
    Freelancer
    Senior Member
    Join Date: Jun 2007
    Location: Bristol , uk
    Old 01-02-2008 , 18:45   Re: Auto-Alltalk
    Reply With Quote #3

    Thanks ferret
    Freelancer is offline
    Neo_Bahamut_19
    Senior Member
    Join Date: Dec 2007
    Old 01-02-2008 , 20:07   Re: Auto-Alltalk
    Reply With Quote #4

    as I have already said in my request thread for this, thank you, this helps a lot, i love having fun in small groups, but i also love talking to the team in large groups

    Edit: Uploaded it to my server, and may I make a suggestion for a possible update, shouldn't be hard, but mabe make something that flashes up in the 3 admin chat display areas saying something to the tune of "18 Players Reached. Alltalk Will Now Be Turned Off." or something to that accord when the players is reached for it to be turned on or off. Also, I would put a toggle in the admin menu to turn this script on and off so that admins can override it ;)
    __________________

    Last edited by Neo_Bahamut_19; 01-02-2008 at 21:39.
    Neo_Bahamut_19 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 01-03-2008 , 09:49   Re: Auto-Alltalk
    Reply With Quote #5

    If someone wants to make a more advanced version, they are welcome to take this as a start and add to it. I may add a message saying whether or not Alltalk has been turned on/off.
    __________________
    I'm a blast from the past!
    ferret is offline
    ratty
    SourceMod Donor
    Join Date: Jan 2006
    Old 01-06-2008 , 15:54   Re: Auto-Alltalk
    Reply With Quote #6

    I'm working on this now, using as an excuse to learn sourcepawn.
    Rather than hijack this thread, I started another thread. I'll appreciate your input.

    http://forums.alliedmods.net/showthread.php?p=571089

    Also, in OnClientDisconnect, the SetConVarBool sets alltalk to mode, shouldn't it be !mode?

    Last edited by ratty; 01-06-2008 at 16:06.
    ratty is offline
    tkaway69
    Senior Member
    Join Date: Dec 2004
    Location: Millbrook Alabama
    Old 01-09-2008 , 23:51   Re: Auto-Alltalk
    Reply With Quote #7

    Hello "Ferret". Any idea what this error means?

    Code:
    L 01/09/2008 - 20:59:38: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/09/2008 - 20:59:38: [SM] Debug mode is not enabled for "autoalltalk.smx"
    L 01/09/2008 - 20:59:38: [SM] To enable debug mode, edit plugin_settings.cfg, or type: sm plugins debug 6 on
    __________________
    tkaway69 is offline
    Send a message via AIM to tkaway69 Send a message via MSN to tkaway69 Send a message via Yahoo to tkaway69
    StevenT
    Member
    Join Date: Dec 2007
    Old 01-23-2008 , 11:49   Re: Auto-Alltalk
    Reply With Quote #8

    Code:
    L 01/19/2008 - 13:48:56: SourceMod error session started
    L 01/19/2008 - 13:48:56: Info (map "emp_vehicletraining_rc4") (file "errors_20080119.log")
    L 01/19/2008 - 13:48:56: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 13:48:56: [SM] Native "GetConVarBool" encountered a generic error.
    L 01/19/2008 - 13:48:56: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 13:48:56: [SM]   [0]  Line 108, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 14:15:24: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 14:15:24: [SM] Native "GetConVarInt" encountered a generic error.
    L 01/19/2008 - 14:15:24: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 14:15:24: [SM]   [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 14:16:12: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 14:16:12: [SM] Native "GetConVarInt" encountered a generic error.
    L 01/19/2008 - 14:16:12: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 14:16:12: [SM]   [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 14:53:45: Error log file session closed.
    L 01/19/2008 - 14:53:45: SourceMod error session started
    L 01/19/2008 - 14:53:45: Info (map "emp_vehicletraining_rc4") (file "errors_20080119.log")
    L 01/19/2008 - 14:53:45: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 14:53:45: [SM] Native "GetConVarBool" encountered a generic error.
    L 01/19/2008 - 14:53:45: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 14:53:45: [SM]   [0]  Line 108, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 14:54:41: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 14:54:41: [SM] Native "GetConVarInt" encountered a generic error.
    L 01/19/2008 - 14:54:41: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 14:54:41: [SM]   [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 14:55:09: [SM] Plugin encountered error 8: Not enough space on the stack
    L 01/19/2008 - 14:55:09: [SM] Native "GetConVarInt" encountered a generic error.
    L 01/19/2008 - 14:55:09: [SM] Displaying call stack trace for plugin "autoalltalk.smx":
    L 01/19/2008 - 14:55:09: [SM]   [0]  Line 95, /home/groups/alliedmodders/forums/files/1/4/0/6/8/22586.attach::ConVarChange_Alltalk()
    L 01/19/2008 - 15:14:54: Error log file session closed.

    thx for the nice plugin ferret, doesnt crash my server and works like a charm, but if you have time, take a look at these errors no idea what it means ^^

    oh btw is it possible to add a PrintToAllChat saying sv_alltalk has been turned off or on , just so players know when that happens

    i didnt even know when alltalk was on or off, i kept on talking with the idea of having the other state of alltalk lol
    StevenT is offline
    Neo_Bahamut_19
    Senior Member
    Join Date: Dec 2007
    Old 01-24-2008 , 01:59   Re: Auto-Alltalk
    Reply With Quote #9

    another thing is that sometimes it doesn't turn it off either, so it will hit 20 players (my trigger) and then 6 people will drop off and it will stay with alltalk on...
    __________________
    Neo_Bahamut_19 is offline
    StevenT
    Member
    Join Date: Dec 2007
    Old 01-29-2008 , 13:26   Re: Auto-Alltalk
    Reply With Quote #10

    Quote:
    Originally Posted by Neo_Bahamut_19 View Post
    another thing is that sometimes it doesn't turn it off either, so it will hit 20 players (my trigger) and then 6 people will drop off and it will stay with alltalk on...
    To go into detail in the above post,
    this auto-alltalk doesnt change on-the-fly, whenever there is a mapchange it checks for how many players are connecting (status) and will force sv_alltalk to that value you have set fot that amount of players.
    So whenever the sv_alltalk value should change during the same map, it won't, until mapchange occurs.
    You also cannot override sv_alltalk with admin power, the script keeps overriding the value that the admin wants to change.
    (So atm you just need to turn of the plugin or unload it if you want to override)
    StevenT 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 11:06.


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