Thread: no
View Single Post
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 01-04-2013 , 08:30   Re: info message
Reply With Quote #3

Optimized,

Code:
#include < amxmodx > #include < amxmisc > #define PLUGIN "Info Message HUD" #define VERSION "1.0" #define AUTHOR "Blizzard" new g_szMapName[ 32 ] new g_szHostname[ 64 ] public plugin_init( ) {     register_plugin( PLUGIN, VERSION, AUTHOR )         get_mapname( g_szMapName, charsmax( g_szMapName ) )     get_cvar_string( "hostname", g_szHostname, charsmax( g_szHostname ) ) } public client_connect( id ) {     set_task( 1.0, "InfoMsg", id, _, _, "b" ) } public client_disconnect( id ) {     remove_task( id )    } public InfoMsg( id ) {     new iTimeLeft = get_timeleft( )         set_hudmessage( 255, 255, 255, -1.0, 0.0, 0, 6.0, 1.0 )     show_hudmessage( id, "TimeLeft: %d:%02d | %s | Map: %s", iTimeLeft / 60, iTimeLeft % 60, g_szHostname, g_szMapName ) }
guipatinador is offline