Malesef Oyun oynarken zamanın nasıl gittiginin farkında olmuyoruz

oyun içinde djital saat ekleyebilecegim bir plugin varmıdır .
Teşekkür Ederim


Moderatör: Moderatörler
Link: | |
Linklerini gizle |
Kod: Tümünü seç
/*
Created Nice Real Clock by sector
*/
#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)
}
Link: | |
Linklerini gizle |
Evet Calıstı Ama Sunucu Saatinden Dolayı saat AyarlayamiyoruzPaZee yazdı: Cum May 16, 2025 8:00 pm Merhabalar,Deneyebilir misiniz?Kod: Tümünü seç
/* Created Nice Real Clock by sector */ #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) }
İyi forumlar dilerim.
Link: | |
Linklerini gizle |