AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   I need a clock, and date plugin (https://forums.alliedmods.net/showthread.php?t=264128)

LithuanianJack 06-09-2015 16:31

I need a clock, and date plugin
 
Hello, i need this plugin. Can anyone make? :) Clock, and date show in hud.

http://www.part.lt/img/a527c6d9e727b...ec4c250656.png

SuperMan1337 06-10-2015 12:20

Re: I need a clock, and date plugin
 
Test this one :D (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)
}


ANTICHRISTUS 06-12-2015 07:15

Re: I need a clock, and date plugin
 
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).


All times are GMT -4. The time now is 20:03.

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