0 Üye ve 1 Ziyaretçi konuyu incelemekte.
-- Notifications systemlocal sx,sy = guiGetScreenSize()local r,g,b = 255, 60, 0local lisrMSG = {}-- The same function as outputChatBoxing to make it more easier.function showText(message) if not (message and type(message) == "string") then error("Bad argument @ 'showText' [Expected player at argument 1, got "..type(message).."]") return false end return table.insert(lisrMSG, {message, getTickCount()})endaddEvent("onClientShowText",true)addEventHandler("onClientShowText", root, showText)alpha1 = 0;-- Rendering.addEventHandler("onClientRender", root,function () if (#lisrMSG > 0) then for i, messages in ipairs(lisrMSG) do text, started = unpack(messages) now = getTickCount() progress = (now-started)/1000 x, w, h = sx/2-((sx-20)/2), 360, 20 scale = 1 font = "default-bold" length = dxGetTextWidth(text, scale, font, true) _, y, alpha = interpolateBetween(0, sy, 0, 0, sy-(300+(h*i)), 255, progress, "OutBack") if (progress >= 8) then table.remove(lisrMSG, i) if alpha1 >= 255 then alpha1 = 255 end end alpha1 = alpha1 + 3; if alpha1 >= 255 then alpha1 = 255; end --dxDrawRectangle((x-5)-(tonumber(length)/2)+180, y-1, tonumber(length)+8, h+2, tocolor(r, g, b, alpha1), false) --dxDrawRectangle((x-4)-(tonumber(length)/2)+180, y, tonumber(length)+6, h, tocolor(22, 22, 22, alpha1), false) dxDrawText(tostring(text), x, sy-(280+(h*i)), w+x, h+sy-(280+(h*i)), tocolor(255, 255, 255, alpha1), scale, font, "left", "center", false, false, false, true, false) end endend)addEventHandler('onClientPlayerJoin', root,function() showText(getPlayerName(source).." #FF9900Sunucuya Giriş Yaptı. #999999[#33FF00Giriş#999999]")end) addEventHandler('onClientPlayerQuit', root,function(reason) showText(getPlayerName(source).." #FF9900Sunucudan Çıkış Yaptı.#999999[#FF0000"..reason.."#999999]")end) addEventHandler('onClientPlayerChangeNick', root,function(oldNick, newNick) showText("#FFFFFF"..oldNick.." #FF9900ismini değiştirdi : #FFFFFF" ..newNick.."")end)
-- Notifications systemlocal sx,sy = guiGetScreenSize()local scale = 1local font = "default-bold"local r,g,b = 255, 60, 0local lisrMSG = {}-- The same function as outputChatBoxing to make it more easier.function showText(message) if not (message and type(message) == "string") then error("Bad argument @ 'showText' [Expected player at argument 1, got "..type(message).."]") return false end table.insert(lisrMSG, {message, getTickCount()}) if #lisrMSG > 5 then table.remove(lisrMSG,1) end endaddEvent("onClientShowText",true)addEventHandler("onClientShowText", root, showText)alpha1 = 0;-- Rendering.addEventHandler("onClientRender", root,function() if (#lisrMSG > 0) then for i, messages in ipairs(lisrMSG) do text, started = unpack(messages) now = getTickCount() progress = (now-started)/1000 x, w, h = sx/2-((sx-20)/2), 360, 20 length = dxGetTextWidth(text, scale, font, true) _, y, alpha = interpolateBetween(0, sy, 0, 0, sy-(300+(h*i)), 255, progress, "OutBack") if (progress >= 8) then table.remove(lisrMSG, i) if alpha1 >= 255 then alpha1 = 255 end end alpha1 = alpha1 + 3; if alpha1 >= 255 then alpha1 = 255; end --dxDrawRectangle((x-5)-(tonumber(length)/2)+180, y-1, tonumber(length)+8, h+2, tocolor(r, g, b, alpha1), false) --dxDrawRectangle((x-4)-(tonumber(length)/2)+180, y, tonumber(length)+6, h, tocolor(22, 22, 22, alpha1), false) dxDrawText(tostring(text), x, sy-(280+(h*i)), w+x, h+sy-(280+(h*i)), tocolor(255, 255, 255, alpha1), scale, font, "left", "center", false, false, false, true, false) end endend)addEventHandler('onClientPlayerJoin', root,function() showText(getPlayerName(source).." #FF9900Sunucuya Giriş Yaptı. #999999[#33FF00Giriş#999999]")end) addEventHandler('onClientPlayerQuit', root,function(reason) showText(getPlayerName(source).." #FF9900Sunucudan Çıkış Yaptı.#999999[#FF0000"..reason.."#999999]")end) addEventHandler('onClientPlayerChangeNick', root,function(oldNick, newNick) showText("#FFFFFF"..oldNick.." #FF9900ismini değiştirdi : #FFFFFF" ..newNick.."")end)
yapılan bir iyiliğe karşı duyulan gönül borcunu ve hoşnutluğu sözle ya da davranışla anlatmak, özellikle “teşekkür ederim” demek.