Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

[AMXX] Nice Real Clock

A Config Script for Counter-Strike 1.6

No ads for members. Membership is 100% free. Sign up!
46 770 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Created Nice Real Clock by sector for www.chatbox.do.am
Web Help - www.chatbox.do.am

All ingenious is simple - Nice. Made in Russia.
*/


#include <amxmodx>

new nHud

public plugin_init()
{
        register_plugin("Nice Real Clock", "1.0", "sector")
       
        nHud = CreateHudSyncObj()
       
        set_task(1.0, "nice_real_clock_func", 666, _, _, "b")
}

public nice_real_clock_func()
{
        new nTime[10], nClock[6], nHours[3]
       
        get_time("%H:%M:%S", nTime, 9)
        get_time("%H", nHours, 2)
       
        new nH = str_to_num(nHours)
       
        if(nH < 12)
        {
                nClock = "am"
        }else
        if(nH > 12)
        {
                nClock = "pm"
        }
       
        set_hudmessage(255, 255, 255, 0.90, 0.10, 0, 6.0, 0.8)
        ShowSyncHudMsg(0, nHud, "%s %s.", nTime, nClock)
}

public plugin_end()
{
        remove_task(666)
}
Nice real clock plugin, it works to show the clock in the upper right corner during the game. Clock on the dashboard second working instantly.
Sign up to access this!

No comments yet

Embed

صورة المشاركة
رابط الصورة
تضمين رمز HTML
تضمين رمز التفعيل
تضمين رمز التخفيض

Credits

sector
sector
scripter

Submitter

Rainbowdash98 avatar
Rainbowdash98 Joined 4y ago
Offline
Rainbowdash98
Redistributor
Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 258
  • 2mo

More from Submitter

More AMX/X Scripts Scripts