/* 
*  AMX X Mod script. 
* 
* (c) Copyright 2007, jas0n 
* This file is provided as is (no warranties). 
*/ 

#include <amxmodx> 

/* 
* ShowTime displays the time and date on the top-center of the client 
* display as a hudmessage. 
* 
* History: 
* v0.1: - first release 
*/ 


public show_time(){ 
    
    new ctime[64], cdate[64]
    get_time("%H:%M:%S", ctime, 63)
    get_time("%d.%m.%Y", cdate, 63)
    set_hudmessage(0,200,0,0.83,0.01,0, 1.0, 1.0, 0.1, 0.2, 13) 
    show_hudmessage(0,"Time: %s^nDate: %s", ctime, cdate) 
    return PLUGIN_CONTINUE 
} 

public plugin_init() 
{ 
    register_plugin("ShowTime","0.2","jas0n") 
    set_task(1.0, "show_time",0,"",0,"b") 
    return PLUGIN_CONTINUE 
} 