Skip to content

AzaZPPL/Timeleft-in-Hostname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Build status

Timeleft in Hostname

Shows the time left in the servers hostname

Requirements:

Installation:

  1. Copy the .smx to your addons/sourcemod/plugins folder.
  2. Restart your server.
  3. Change settings in cfg/sourcemod/plugin.timeleft-in-hostname.cfg

Usage:

You can either add {{timeleft}} in your hostname and it will replace it with the time thats left Or you dont add anything and it will put the timeleft add the end of the hostname.

Changelog:

These are the changes

1.5

  • Fix: Use OnConfigsExecuted instead of OnMapStart

1.4

  • New: when server is hibernating fallback to mp_timelimit
  • Fix: when a map change occurs the timer would not stop and would infinitely add more timers
  • Fix: when a map change occurs the time would not be set fast enough so you would see {{timeleft}} or no time.

1.3

  • New: when the time is lower than 0 or is not set it will return the values back to 00:00
  • Fix: Fix the strange 29:58 15:23 issue

1.2

  • Fix: Timeleft would get the wrong hostname after a map restart was initiated.

1.1

  • Fixed an issue where the plugin had started but the hostname was not yet loaded into convar hostname
  • Fixed an issue where the {{timeleft}} was not being changed if it was at the beginning of the hostname
  • Increased speed by using FormatEx instead of Format

1.0

  • Initial Release.