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

[ANY] Time Left Actions (3.0, 2015-May-01)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Chanz
Veteran Member
Join Date: Aug 2008
Location: Germany - Stuttgart
Plugin ID:
937
Plugin Version:
3.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    Play sound files, execute commands and print messages, at a given time (map, round and bomb timer).
    Old 06-06-2009 , 22:04   [ANY] Time Left Actions (3.0, 2015-May-01)
    Reply With Quote #1

    Time Left Actions
    aka Timeleft Voice
    Know when the end has come, by using sound, commands and chat messages.


    Index:
    Description:
    This plugin works for any game, if not leave me a message!
    Play sound files, execute commands and print messages, at a given time.
    Supports colors and token replacements for dynamic sounds, commands and chat messages.

    You can continue to read the details:

    Sounds:
    • Play sounds at a given time:
      • When 60 seconds are remaining on the map, everyone hears: "<bell-sound> 60 seconds remaining"
      • A countdown for the bomb in CSS:"5..4..3..2..1..", then the bomb explodes
      • A countdown for the current round, in round based games, can be:"3..2..1..", then a team wins.
    Commands:
    • Execute commands at a given time:
      • Every time the last 60 seconds has been reached of a map you could start a vote.
      • Change the map if it hasn't end after 60 minutes.
    Chat messages:
    • Print chat messages at a given time:
      • Every time when 60 seconds are remaining in the round print:"Chanz, you play on 'Brotcrunshers Server' the next map will be 'de_dust' in 4:36".
      • Print a chat countdown:"5 4 3 2 1"
    Requirements: Known Issues:
    • Double messages when the plugin writes into chat (might be fixed with 2.9)
    How to report issues:
    Please read the 5 latest posts from other users within this thread.
    Post within this thread and try to add the following information, it makes it much easier for me to help you and speeds it up:
    1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
    2. What the problem is:
      • The server is crashing, lagging, etc.
      • The plugin isn't loading.
      • The plugin isn't working right. (mostly you set one of the configuration variables wrong, please be sure to read it again but don't be scared, just ask if something is unclear and I try to explain and add a better description to this post).
    3. What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
      1. "plugin_print"
      2. "meta list"
      3. "sm plugins list"
      4. "sm exts list"
    4. Attach/upload your config file with your post.
    5. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.
    Changelog:
    https://github.com/chanz/time-left-a...commits/master
    Old changelog:
    Spoiler

    Console/Chat commands:
    None atm.
    Todo: time-left-action_list and time-left-action_test <actionId> to test actions
    Console variables:
    PHP Code:
    // This file was auto-generated by SourceMod
    // ConVars for plugin "time-left-actions.smx"


    // Filename of the action config to use (located in <moddir>/addons/sourcemod/configs/time-left-actions/)
    // -
    // Default: "default.conf"
    time-left-actions_config_name "default.conf"

    // Enables or Disables this plugin (1=Enable|0=Disable)
    // -
    // Default: "1"
    // Minimum: "0.000000"
    time-left-actions_enable "1" 

    List of Tokens:
    Info about the current player:
    {STEAM_ID}
    {USER_ID}
    {NAME}
    {IP}
    {RATE} (value of client's rate var)
    {ALIVE_TEAMMATES} (how many teammates are alive)
    {DEAD_TEAMMATES} (how many teammates are dead)
    {ALIVE_ENEMIES} (how many enemies are alive)
    {DEAD_ENEMIES} (how many enemies are dead)
    {TEAM} ('TERRORIST', 'CT', ...)
    {ENEMY_TEAM} ('TERRORIST', 'CT', ...)
    {TEAM_COLOR} (will be replaced with {R} or {B})
    {ENEMY_TEAM_COLOR} (will be replaced with {R} or {B})
    Info about the server:
    {SERVER_IP}
    {SERVER_PORT}
    {SERVER_NAME} (server hostname)
    {L4D_GAMEMODE} (current game mode string on l4d and l4d2)
    {CURRENT_MAP}
    {NEXT_MAP}
    {CURPLAYERS}
    {MAXPLAYERS}
    {ALIVE_PLAYERS}
    {DEAD_PLAYERS}
    {TIME_LEFT}
    Credits:
    Thank you Berni for fixing the Sound Lib, its really great!
    Thank you Brotcrunsher for allowing public testing.
    Thank you psychonic for the token idea.
    Download:
    https://github.com/chanz/time-left-actions/releases
    Installation:
    Fresh installation:
    • Extract the zip into your mod folder.
    • OPTIONAL: When you don't like the default config:
      • Duplicate the default.conf (in <moddir>/addons/sourcemod/configs/time-left-actions/) and rename it into your community name (ex: chanz-community.conf).
      • Navigate to <moddir>/cfg/sourcemod/ and open plugin.timeleftactions.cfg, change sm_timeleftactions_config_name to the new file you created in this example it would be "chanz-community.conf"
    • OPTIONAL: When you like to use your own custom sounds:
      • Upload those into a new folder: <moddir>/sound/timeleft/<your-community-name>/
      • Duplicate the default.conf and rename it into your community name (ex: chanz-community.conf).
      • Open the duplicate of default.conf, in this example it is chanz-community.conf and exchange all sound paths with the ones you uploaded.
      • Navigate to <moddir>/cfg/sourcemod/ and open plugin.timeleftactions.cfg, change sm_timeleftactions_config_name to the new file you created in this example it would be "chanz-community.conf"
    Updating from Timeleft Voice v1.X.X:
    • When updating from Timeleft Voice v1.X.X, be sure to delete the timeleftvoice.smx and plugin.timeleftvoice.cfg file also you may want to remove the timeleft folder in you sound folder, be sure to backup your custom sounds!
    Updating v2.X:
    • Extract the zip into your mod folder, but don't overwrite your plugin.timeleftactions.cfg, if you did so, you may want to change sm_timeleftactions_config_name.
    Important information:
    • BE SURE TO DELETE THE OLD CONFIG FILE (plugin.timeleftactions.cfg in your <moddir>/cfg/sorucemod/ folder)!
    • DON'T CHANGE OR OVERWRITE THE DEFAULT SOUNDS, CREATE YOUR OWN FOLDER LIKE: <moddir>/sound/timeleft/CommunityXYZ/ AND INSERT THERE YOUR CUSTOM SOUNDS!
    __________________
    [ SourceModPlugins.org ][ My Plugins ]

    Thank you for donations: [ Paypal ]

    Video Tutorial (German): [ Gameserver & SourceMod Plugins mit HLSW verwalten ]

    Last edited by Chanz; 05-12-2015 at 04:40.
    Chanz is offline
     



    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 21:17.


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