View Single Post
Author Message
AzaZPPL
Member
Join Date: Dec 2014
Old 08-02-2016 , 10:33   [ANY] Timeleft in Hostname
Reply With Quote #1

Shows the time left in the servers hostname.

Not enabled:


Enabled:


Enabled with {{timeleft}}:


Installation:
  1. Copy the .smx to your addons/sourcemod/plugins folder.
  2. Restart your server.
    Optional:
  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:
## 1.5
- [x] Fix: Use `OnConfigsExecuted` instead of `OnMapStart`

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

## 1.3
- [x] New: when the time is lower than 0 or is not set it will return the values back to `00:00`
- [x] Fix: Fix the strange `29:58 15:23` issue

## 1.2
- [x] Fix: Timeleft would get the wrong hostname after a map restart was initiated.

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

## 1.0
- [x] Initial Release.

https://github.com/AzaZPPL/Timeleft-in-Hostname
Attached Files
File Type: sp Get Plugin or Get Source (timeleft-in-hostname.sp - 745 views - 2.7 KB)

Last edited by AzaZPPL; 02-18-2019 at 15:25.
AzaZPPL is offline