Raised This Month: $ Target: $400
 0% 

I need a clock, and date plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SuperMan1337
Junior Member
Join Date: Mar 2015
Location: Home
Old 06-10-2015 , 12:20   Re: I need a clock, and date plugin
Reply With Quote #2

Test this one (Not Tested)
Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() {
	register_plugin("TimeandDate", "2.0", "SuperMan1337")
	set_task(1.2, "UpdateTime",_,_,_,"b")
}

public client_authorized(id) UpdateTime(id)

public UpdateTime(id) {
	
	new Time[64], Date[64]
	get_time("%H:%M:%S", Time, 63)
	get_time("%m/%d/%Y", Date,63) 
	set_hudmessage(255, 255, 255, 0.5, 0.93, 0, 6.0, 1.0)
	show_hudmessage(id, "The Time: %s\nDate: %s", Time, Date)
}
SuperMan1337 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 20:03.


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