Raised This Month: $ Target: $400
 0% 

getting todays date


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 06-08-2010 , 10:32   Re: getting todays date
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <colorchat>

new PLUGIN[ ] = "Say date"
new VERSION[ ] = "1.0"
new AUTHOR[ ] = "FlyingHorse"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /date""setDate")
    
register_clcmd("say_team /date""setDate")
    
}

public 
setDate(id)
{
    new 
GetDate[9
    
get_time("%Y-%m-%d"GetDate8)  
    
ColorChat(idGREEN"^x01The current date is:^x04 %s"GetDate)


Last edited by FlyingHorse; 06-08-2010 at 10:34.
FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
 



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 05:25.


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