View Single Post
Author Message
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 09-24-2007 , 12:26   Timeleft Hostname
Reply With Quote #1

Timeleft Hostname
Hell Phoenix
http://www.charliemaurice.com/plugins

Description:
This is a port of Cheap_Suit's amxx plugin to sourcemod. It grabs the timeleft for the map, and
puts it into the hostname so people can see how much time is left on the current map. Note that
because of how the source engine works, this doesnt work until someone joins the server.

Thanks To:
Cheap Suit - for the original plugin
Ferret for pointing out some things to fix =D

Versions:
1.0
* First Public Release!
1.1
* Added missing mapend timer kill
1.2
* Fixed errors in the console
1.3
* Fixed frequency cvar not doing anything if set


Cvars:
sm_timeleft_hostname_frequency 2.0 - How often in seconds to update the hostname with timeleft
****You MUST set this in a config such as sourcemod.cfg or server.cfg...it cannot be changed
"on the fly"

Make sure you are using at least 1474 of sourcemod!
Attached Files
File Type: sp Get Plugin or Get Source (timeleft_hostname.sp - 6318 views - 2.4 KB)
__________________

Last edited by Hell Phoenix; 10-05-2007 at 10:16.
Hell Phoenix is offline