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

Timeleft


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Plugin ID:
37
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays time remaining in the map
    Unapprover:
    Reason for Unapproving:
    comes with sourcemod now
    Old 06-24-2007 , 12:27   Timeleft
    #1

    TimeLeft
    Version 1.1

    By: ferret!

    Description

    When a player says "timeleft", the time remaining for the current map will be displayed in MM:SS format.

    Installation
    1. Place the timeleft.smx file inside of the addons/sourcemod/plugins/ folder.
    2. Place the plugins.timeleft.txt file inside of the addons/sourcemod/translations/ folder.
    Cvars
    • sm_timeleft_show
      • Controls whether or not everyone sees the time.
      • Default value is 1, set to 0 to turn off.
    • sm_timeleft_interval
      • When non-zero, causes timeleft to be shown every x seconds.
      • Default value is 0.0, set to 1.0 to 1800.0
    Changelog
    • Version 1.1 (July 5th)
      • Abandoned hungarian notation
      • Added thetime
      • New Cvar: sm_timeleft_interval: Displays "timeleft" every x seconds
      • French translation currently missing for thetime
    • Version 1.0 (June 29th)
      • Conformed to plugin submission standards
      • Added sm_timeleft_version Cvar
    __________________
    I'm a blast from the past!

    Last edited by ferret; 07-26-2007 at 20:43.
    ferret is offline
    Knagg0
    SourceMod Donor
    Join Date: Dec 2005
    Location: Germany
    Old 06-24-2007 , 12:30   Re: [PLUGIN] Timeleft
    #2

    "StartTime" does not only begin on MapStart.
    You have to hook the round_end event and check if the reason is 16 (#Game_Commencing)
    __________________

    MFZB Gaming Community

    [ www.mfzb.de ]

    Knagg0 is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-24-2007 , 12:33   Re: [PLUGIN] Timeleft
    #3

    Quote:
    Originally Posted by Knagg0 View Post
    "StartTime" does not only begin on MapStart.
    You have to hook the round_end event and check if the reason is 16 (#Game_Commencing)
    Thanks. I figured that was the case but was being lazy. If players are in the map at start, it shouldn't matter. I'll update shortly.
    __________________
    I'm a blast from the past!
    ferret is offline
    Isias
    Senior Member
    Join Date: Apr 2006
    Old 06-24-2007 , 14:36   Re: [PLUGIN] Timeleft
    #4

    Translated into german
    Attached Files
    File Type: cfg plugin.timeleft.cfg (120 Bytes, 706 views)
    Isias is offline
    kill0r
    Junior Member
    Join Date: Jun 2007
    Old 06-24-2007 , 15:05   Re: [PLUGIN] Timeleft
    #5

    Works if game was paused?
    kill0r is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-24-2007 , 15:15   Re: [PLUGIN] Timeleft
    #6

    Updated. Implemented Knagg0's suggestion and put up Isias's translation.
    __________________
    I'm a blast from the past!
    ferret is offline
    Floppe
    Junior Member
    Join Date: Jun 2007
    Old 06-25-2007 , 06:25   Re: [PLUGIN] Timeleft
    #7

    Quote:
    Originally Posted by ferret View Post
    Updated. Implemented Knagg0's suggestion and put up Isias's translation.
    is source file updated?
    Floppe is offline
    magicyan
    Member
    Join Date: Nov 2005
    Old 06-25-2007 , 07:51   Re: [PLUGIN] Timeleft
    #8

    Quote:
    Originally Posted by Floppe View Post
    is source file updated?
    Updated
    Attached Files
    File Type: cfg plugin.timeleft.cfg (162 Bytes, 599 views)
    __________________
    Serveur Test SourceMod => 77.111.201.216:27015

    Tuto 'SourceMod' in french
    http://www.support-cssource.info/viewtopic.php?t=184
    magicyan is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 06-26-2007 , 09:59   Re: [PLUGIN] Timeleft
    #9

    Plugin updated. Magicyan's translations added, and fixed to use new filenames for Sourcemod core translation files. Also, remembered to actually SAVE the round_end reason 16 code this time.

    MAKE SURE TO REDOWNLOAD THE TRANSLATION FILE.
    __________________
    I'm a blast from the past!
    ferret is offline
    Kaschenko
    SourceMod Donor
    Join Date: Apr 2006
    Location: Country: Russia; City: M
    Old 06-27-2007 , 17:12   Re: [PLUGIN] Timeleft
    #10

    Not secret in a chat and so many write, for example: rank, bet, nextmap, bank, settings, timeleft and much many other things. It would be desirable, that other players did not see these commands in a chat to not litter a chat. Could make timeleft not visible in a chat ?
    In advance thanks.
    __________________
    Kaschenko is offline
    Send a message via ICQ to Kaschenko Send a message via MSN to Kaschenko Send a message via Skype™ to Kaschenko
    Closed Thread



    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 09:06.


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