0 Üye ve 1 Ziyaretçi konuyu incelemekte.
dawnlodetext1 = " welcome to our server" --- the text updawnlodetext2 = " plz wait to download finish" --- the text in mediumdawnlodetext3 = "enjoy and have fun" --- the text underdis = textCreateDisplay()screentext = textCreateTextItem(dawnlodetext1,0.2,0.2,"medium",255,0,0,255,3)textDisplayAddText(dis,screentext)dis1 = textCreateDisplay()screentext1 = textCreateTextItem(dawnlodetext2,0.3,0.4,"medium",0,255,0,255,3)textDisplayAddText(dis1,screentext1)dis2 = textCreateDisplay()screentext2 = textCreateTextItem(dawnlodetext3,0.4,0.6,"medium",255,255,0,255,3)textDisplayAddText(dis2,screentext2)addEventHandler("onResourceStart",resourceRoot, function () for i,p in ipairs(getElementsByType("player")) do textDisplayAddObserver(dis,p) textDisplayAddObserver(dis1,p) textDisplayAddObserver(dis2,p) end end) addEventHandler("onPlayerJoin",root, function () fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) textDisplayAddObserver(dis,source) textDisplayAddObserver(dis1,source) textDisplayAddObserver(dis2,source) end) addEvent("removeText",true)addEventHandler("removeText",root, function () textDisplayRemoveObserver(dis,source) textDisplayRemoveObserver(dis1,source) textDisplayRemoveObserver(dis2,source) end)
Mb Dolarken Cıkan Yazı ScriptiServer.Lua:Kod: luadawnlodetext1 = " welcome to our server" --- the text updawnlodetext2 = " plz wait to download finish" --- the text in mediumdawnlodetext3 = "enjoy and have fun" --- the text underdis = textCreateDisplay()screentext = textCreateTextItem(dawnlodetext1,0.2,0.2,"medium",255,0,0,255,3)textDisplayAddText(dis,screentext)dis1 = textCreateDisplay()screentext1 = textCreateTextItem(dawnlodetext2,0.3,0.4,"medium",0,255,0,255,3)textDisplayAddText(dis1,screentext1)dis2 = textCreateDisplay()screentext2 = textCreateTextItem(dawnlodetext3,0.4,0.6,"medium",255,255,0,255,3)textDisplayAddText(dis2,screentext2)addEventHandler("onResourceStart",resourceRoot, function () for i,p in ipairs(getElementsByType("player")) do textDisplayAddObserver(dis,p) textDisplayAddObserver(dis1,p) textDisplayAddObserver(dis2,p) end end) addEventHandler("onPlayerJoin",root, function () fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) textDisplayAddObserver(dis,source) textDisplayAddObserver(dis1,source) textDisplayAddObserver(dis2,source) end) addEvent("removeText",true)addEventHandler("removeText",root, function () textDisplayRemoveObserver(dis,source) textDisplayRemoveObserver(dis1,source) textDisplayRemoveObserver(dis2,source) end)
addEventHandler("onClientResourceStart", resourceRoot,function()triggerServerEvent("removeText",localPlayer)end)
Login olunca yazılar kalıyor demişsin ama ben öyle birşey olacağını sanmıyorum öyle olduğuna eminmisin?
dawnlodetext1 = " welcome to our server" --- the text updawnlodetext2 = " plz wait to download finish" --- the text in mediumdawnlodetext3 = "enjoy and have fun" --- the text under dis = textCreateDisplay()screentext = textCreateTextItem(dawnlodetext1,0.2,0.2,"medium",255,0,0,255,3)textDisplayAddText(dis,screentext) dis1 = textCreateDisplay()screentext1 = textCreateTextItem(dawnlodetext2,0.3,0.4,"medium",0,255,0,255,3)textDisplayAddText(dis1,screentext1) dis2 = textCreateDisplay()screentext2 = textCreateTextItem(dawnlodetext3,0.4,0.6,"medium",255,255,0,255,3)textDisplayAddText(dis2,screentext2)function cancel()cancelEvent()endfunction komutengel(_)if _ == "login" thencancel()endendaddEventHandler("onResourceStart",resourceRoot,function() for i,p in ipairs(getElementsByType("player")) do textDisplayAddObserver(dis,p) textDisplayAddObserver(dis1,p) textDisplayAddObserver(dis2,p) endend)addEventHandler("onPlayerJoin",root,function() addEventHandler("onPlayerCommand", root, komutengel) fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) textDisplayAddObserver(dis,source) textDisplayAddObserver(dis1,source) textDisplayAddObserver(dis2,source)end)addEvent("removeText",true)addEventHandler("removeText",root,function () removeEventHandler("onPlayerCommand", root, komutengel) textDisplayRemoveObserver(dis,source) textDisplayRemoveObserver(dis1,source) textDisplayRemoveObserver(dis2,source)end)