Raised This Month: $51 Target: $400
 12% 

no


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shumaxer96
Senior Member
Join Date: Jun 2011
Old 01-04-2013 , 06:18   no
Reply With Quote #1

no

Last edited by Shumaxer96; 01-09-2013 at 05:04.
Shumaxer96 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-04-2013 , 08:20   Re: info message
Reply With Quote #2

there you go... enjoy.
Attached Files
File Type: sma Get Plugin or Get Source (InfoMsg.sma - 661 views - 689 Bytes)
Blizzard_87 is offline
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
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 01-04-2013 , 08:32   Re: info message
Reply With Quote #4

Quote:
Originally Posted by guipatinador View Post
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 ) }
wow thanks... added credit
Blizzard_87 is offline
Reply



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 04:39.


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