Raised This Month: $ Target: $400
 0% 

[DONE]How to make permanent HUD message?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-30-2011 , 06:16   Re: How to make permanent HUD message?
Reply With Quote #7

Why this doesn't work then?
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)

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



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