Raised This Month: $ Target: $400
 0% 

Hud msg & timeleft help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-21-2009 , 08:24   Re: Hud msg & timeleft help
Reply With Quote #2

PHP Code:
public show_timer()

    if ( 
get_timeleft( ) <= 120 )
    {
        new 
nextmap[32
        
get_cvar_string("amx_nextmap",nextmap,31
        new 
timeleft get_timeleft()
        
set_hudmessage(255,255,255,0.75,0.05,01.01.00.10.213
        
show_hudmessage(0,"Time remaining: %d:%02d^nNext map: %s",timeleft 60timeleft 60,nextmap
    }
    
set_task(1.0"show_timer"0)


public 
plugin_init() 

    
register_plugin("TimeProjector","0.1","ST4life"
    
set_task(0.1"show_timer",0,"",0,"b")
    return 
PLUGIN_CONTINUE 


Last edited by TheRadiance; 03-21-2009 at 08:27.
TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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 08:58.


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