Raised This Month: $ Target: $400
 0% 

[DONE]How to make permanent HUD message?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 10-30-2011 , 08:49   Re: How to make permanent HUD message?
Reply With Quote #10

Quote:
Originally Posted by Evaldas.Grigas View Post
Maybe there is a perm message plugin already made? I need that it would show date, time, map and timeleft.
PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "HUD Message"
#define VERSION "1.0"
#define AUTHOR "Evaldas.Grigas"
 
 
public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
set_task0.5 "PermanentHUD")
}
 
public 
PermanentHUD()
{
    new 
CurrentDate[32]
    new 
CurrentTime[9]
    new 
CurrentMap[33]
 
    
get_mapname (CurrentMap32
    
get_time("%Y:%m:%d"CurrentDate31)
    
get_time("%H:%M:%S"CurrentTime8)
 
    
set_hudmessage(000, -0.850.0100.50.51.01.0, -1)
    
show_hudmessage(0"Date: %s"CurrentDate)
    
set_hudmessage(000, -0.850.0401.01.00.10.2, -1)
    
show_hudmessage(0"Time: %s"CurrentTime)
    
set_hudmessage(000, -0.850.0701.01.00.10.2, -1)
    
show_hudmessage(0"Map: %s"CurrentMap)
 
    
set_task0.5 "PermanentHUD")

Its dont take more res. its a hud message like zp.

Last edited by .Dare Devil.; 10-30-2011 at 08:49.
.Dare Devil. is offline
 



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 14:26.


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