1. sayfa (Toplam 1 sayfa)
Oyunda dijital saat eklenti istek
Gönderilme zamanı: Prş May 01, 2025 5:16 pm
gönderen samet0606
Herkeze İyi Forumlar.
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

Oyunda dijital saat eklenti istek
Gönderilme zamanı: Cum May 16, 2025 8:00 pm
gönderen PaZee
Merhabalar,
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)
}
Deneyebilir misiniz?
İyi forumlar dilerim.
Oyunda dijital saat eklenti istek
Gönderilme zamanı: Cmt May 24, 2025 11:59 pm
gönderen samet0606
PaZee yazdı: Cum May 16, 2025 8:00 pm
Merhabalar,
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)
}
Deneyebilir misiniz?
İyi forumlar dilerim.
Evet Calıstı Ama Sunucu Saatinden Dolayı saat Ayarlayamiyoruz

saat yanlış oluyor yani