[YARDIM]bildirim sistemini levele bağlama

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı bensayit

  • Yeni Üye
  • *
    • İleti: 5
bir oyuncu level atladığında sunucuya giriş çıkış yaptığında bildirimde gözükmesini istiyorum fakat bir türlü yapamadım luayı yeni öğreniyorum mazur görün..
Kod
local notifications = {}

notifications.list = {} -- here u save all notifications

-- DESIGN --
notifications.padding = 10
notifications.offset = 90 * relativeScale
notifications.offsetWidth = 5
-- TEXT
notifications.font = "default-bold"
notifications.fontScale = 1 * relativeFontScale
notifications.fontHeight = dxGetFontHeight(notifications.fontScale,notifications.font)

notifications.width, notifications.height = math.floor(360 * relativeScale), math.floor(notifications.fontHeight + notifications.padding * 2)
-- SETTINGS
notifications.max = 6 -- MAX NOTIFICATIONS TO SHOW
notifications.interpolator = "Linear" -- interpolator
notifications.timeMaxToShow = 2500 -- mseconds


local math_min = math.min

function addNotification(text,type,animate)
« Son Düzenleme: 05 Ekim 2022, 22:05:38 Gönderen: bensayit »
 


MTASATURK

[YARDIM]bildirim sistemini levele bağlama
« : 05 Ekim 2022, 22:01:58 »

Çevrimdışı #Savage

  • Yeni Üye
  • *
    • İleti: 93
Yanıtla #1 : 18 Aralık 2022, 10:23:07
-- Serverside
exports.infobox:addNotification(source,"mesaj","mesaj_tipi")

-- Clientside
exports.infobox:addNotification("mesaj","mesaj_tipi")

Mesaj Tipleri;
-- Warning
-- Error
-- Succes
-- İnfo