PHP Code:
#include <amxmodx>
#include <colorchat>
new PLUGIN[ ] = "Say date"
new VERSION[ ] = "1.0"
new AUTHOR[ ] = "FlyingHorse"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /date", "setDate")
register_clcmd("say_team /date", "setDate")
}
public setDate(id)
{
new GetDate[9]
get_time("%Y-%m-%d", GetDate, 8)
ColorChat(id, GREEN, "^x01The current date is:^x04 %s", GetDate)
}