Raised This Month: $ Target: $400
 0% 

I need a clock, and date plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 06-09-2015 , 16:31   I need a clock, and date plugin
Reply With Quote #1

Hello, i need this plugin. Can anyone make? Clock, and date show in hud.

LithuanianJack is offline
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
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-12-2015 , 07:15   Re: I need a clock, and date plugin
Reply With Quote #3

a close advice, search (do not edit) for this keyword in titles: *clock*. (Notice that the keyword clock won't be able to find this clockmaker plugin).
__________________
ANTICHRISTUS is offline
Reply



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