Nickelz Posted August 12, 2013 Share Posted August 12, 2013 (edited) السلآآم عليكم ورحمة الله وبركاته .. يَ شباب انا عندي ليبل, اذا ادمن سجل دخوله يطلع الليبل يقول الادمن "اسم الادمن" سجل دخوله بسس ماعرفت اضبطها لان المود فيه سيرفر وكلنت المهم هذي الكودات --Server addEventHandler ( "onPlayerLogin", root, function ( ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) )then triggerClientEvent("leb1", getRootElement()) end end) --Client GUIEditor = { label = {} } addEvent("leb1", true) addEventHandler("leb1", getRootElement(),function() GUIEditor.label[1] = guiCreateLabel(1163, 381, 180, 33, "الادمن" .. getLocalPlayer() .."سجل دخوله", false) --getLocalPlayer احسسها هي اللي جايبه العيد guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end) Edited August 12, 2013 by Guest Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 -- # Server Side ! addEventHandler ( "onPlayerLogin", root, function ( ) local name = getPlayerName(source):gsub('#%x%x%x%x%x%x', '') if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) )then triggerClientEvent(root,"leb1",root,name) end end) -- # Client Side ! GUIEditor = { label = {} } screenX, screenY = guiGetScreenSize() addEvent("leb1", true) addEventHandler("leb1", getRootElement(),function(name) GUIEditor.label[1] = guiCreateLabel(screenX/7+(screenX/5),screenX/13.5-(screenX/16),300,100, "الادمن " .. name .." سجل دخوله", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end) طبعا انا ضبطته لك على جميع الشاشات يجي فوق .. وخليته يجيب الاعب اللي سجل الدخول يدعم الـ Hex = #ff0000 .. لم تتم التجربة .. جربهـ ورد لي خبر .. Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 قبل لا ترد انت, انا ضبطته بسس انا سويته بشكل اسهل, بسس مدري من الاصحح فيهم, بسس الحين عندي مشكلة صغننة, ابي اذا ادمنين سجلوا دخول مع بعض يسوي ليبل تحت الليبل الاول يعني كذا الادمن .... سجل دخوله الادمن .... سجل دخوله لآآن الحين اذا ادمنين سجلوا دخول تجي كلمتين داخلين في بعضض, ولآآ تفهم شي ضض1 هذا كودي --S addEventHandler ( "onPlayerLogin", root, function ( ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) )then triggerClientEvent("leb1", getRootElement()) end end) --C GUIEditor = { label = {} } addEvent("leb1", true) addEventHandler("leb1", getRootElement(),function() GUIEditor.label[1] = guiCreateLabel(1163, 381, 180, 33, "Admin :" .. getPlayerName(getLocalPlayer()) .." سجل دخوله", false) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end) Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 قبل لا ترد انت, انا ضبطته بسس انا سويته بشكل اسهل, بسس مدري من الاصحح فيهم, بسس الحين عندي مشكلة صغننة, ابي اذا ادمنين سجلوا دخول مع بعض يسوي ليبل تحت الليبل الاول يعني كذا الادمن .... سجل دخوله الادمن .... سجل دخوله لآآن الحين اذا ادمنين سجلوا دخول تجي كلمتين داخلين في بعضض, ولآآ تفهم شي ضض1 هذا كودي --S addEventHandler ( "onPlayerLogin", root, function ( ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) )then triggerClientEvent("leb1", getRootElement()) end end) --C GUIEditor = { label = {} } addEvent("leb1", true) addEventHandler("leb1", getRootElement(),function() GUIEditor.label[1] = guiCreateLabel(1163, 381, 180, 33, "Admin :" .. getPlayerName(getLocalPlayer()) .." سجل دخوله", false) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end) الكود حقك ما راح يضبط .. استخدم حقي لتفادي الاخطاء .. شوي بس واضبطهـ لك مثل ما تبي Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 قبل لا ترد انت, انا ضبطته بسس انا سويته بشكل اسهل, بسس مدري من الاصحح فيهم, بسس الحين عندي مشكلة صغننة, ابي اذا ادمنين سجلوا دخول مع بعض يسوي ليبل تحت الليبل الاول يعني كذا الادمن .... سجل دخوله الادمن .... سجل دخوله لآآن الحين اذا ادمنين سجلوا دخول تجي كلمتين داخلين في بعضض, ولآآ تفهم شي ضض1 هذا كودي --S addEventHandler ( "onPlayerLogin", root, function ( ) if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Admin" ) )then triggerClientEvent("leb1", getRootElement()) end end) --C GUIEditor = { label = {} } addEvent("leb1", true) addEventHandler("leb1", getRootElement(),function() GUIEditor.label[1] = guiCreateLabel(1163, 381, 180, 33, "Admin :" .. getPlayerName(getLocalPlayer()) .." سجل دخوله", false) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) end) الكود حقك ما راح يضبط .. استخدم حقي لتفادي الاخطاء .. شوي بس واضبطهـ لك مثل ما تبي بـ انتظار شنببكك ض1 Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 -- Client Side ! x,y = guiGetScreenSize() lable_1 = guiCreateLabel(15,y - 250,300,300,"",false) lable_2 = guiCreateLabel(15,y - 235,300,300,"",false) lable_3 = guiCreateLabel(15,y - 220,300,300,"",false) lable_4 = guiCreateLabel(15,y - 205,300,300,"",false) lable_5 = guiCreateLabel(15,y - 190,300,300,"",false) function outputTop(msg) local text4 = guiGetText(lable_4) guiSetText(lable_5,text4) local text3 = guiGetText(lable_3) guiSetText(lable_4,text3) local text2 = guiGetText(lable_2) guiSetText(lable_3,text2) local text1 = guiGetText(lable_1) guiSetText(lable_2,text1) guiSetText(lable_1,msg) end addEvent("onCallFun",true) addEventHandler("onCallFun",root, function (msg) outputTop(msg) end ) -- Server Side ! function outputTop(msg) triggerClientEvent("onCallFun",root,msg) end addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Admin")) then outputTop("" .. getPlayerName(source) .. " Has Logged In #") end end ) الحقوق للاخ طلال الله يجزاهـ الف خير .. Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 طيب باقي تايمر ,بعد نص دقيقة يختفي الليبل بشويش, يعني مو تخرشهم تخفيه على طوول ض1 Link to comment
فاّرس Posted August 12, 2013 Share Posted August 12, 2013 استخدم, guiGetPosition guiSetPosition مثال , local Label = guiCreateLabel(...) addCommandHandler('setPosition', function() local x,y = guiGetPosition(Label,false) guiSetPosition(Label,x,y+15,false) end ) واذا تبيها محدده يعني مثلا بعد الاحداثيات 100 ما يتعداها سوي شرط, local Label = guiCreateLabel(...) addCommandHandler('setPosition', function() local x,y = guiGetPosition(Label,false) guiSetPosition(Label,x,y+15,false) if y >= 100 then guiSetPosition(Label,x,y-30,false) end end ) Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 لآآ ابي تايمر يخفيه بشويش, مابيه يتحركك Link to comment
فاّرس Posted August 12, 2013 Share Posted August 12, 2013 لآآ ابي تايمر يخفيه بشويش, مابيه يتحركك ^ ردي الي فوق للسؤال الي قلته وهو انك تبي ينزل تحت كل مره ادمن يسجل الدخول , بالنسبه يختفي بشويش , استخدم, setTimer guiGetAlpha guiSetAlpha Link to comment
./BlackBird# Posted August 12, 2013 Share Posted August 12, 2013 function outputTop(msg) exports.killmessages:outputMessage(msg,255,0,0) end Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 function outputTop(msg) exports.killmessages:outputMessage(msg,255,0,0) end Doesn't work :\ Link to comment
./BlackBird# Posted August 12, 2013 Share Posted August 12, 2013 تاكد ان مود killmessages شغال Link to comment
|Mr|-Talal07-| Posted August 12, 2013 Share Posted August 12, 2013 لآآ ابي تايمر يخفيه بشويش, مابيه يتحركك انا داري انت جاي تطلب و نسوي لك و نزبط لكك بس ابي اعرف انت بتعرف تسويه ؟؟ Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 نفسس الشي, مايشتغل Link to comment
|Mr|-Talal07-| Posted August 12, 2013 Share Posted August 12, 2013 -- Client Side # x,y = guiGetScreenSize() lable_1 = guiCreateLabel(15,y - 250,300,300,"",false) lable_2 = guiCreateLabel(15,y - 235,300,300,"",false) lable_3 = guiCreateLabel(15,y - 220,300,300,"",false) lable_4 = guiCreateLabel(15,y - 205,300,300,"",false) lable_5 = guiCreateLabel(15,y - 190,300,300,"",false) function backAll() guiSetAlpha(lable_1,1) guiSetAlpha(lable_2,1) guiSetAlpha(lable_3,1) guiSetAlpha(lable_4,1) guiSetAlpha(lable_5,1) end setTimer( function () if not isTimer(time) then time = setTimer(desAll,100,0) end end ,30000,0) function desAll() if guiGetAlpha(lable_1) ~= 0 then guiSetAlpha(lable_1,guiGetAlpha(lable_1) - 0.05) guiSetAlpha(lable_2,guiGetAlpha(lable_2) - 0.05) guiSetAlpha(lable_3,guiGetAlpha(lable_3) - 0.05) guiSetAlpha(lable_4,guiGetAlpha(lable_4) - 0.05) guiSetAlpha(lable_5,guiGetAlpha(lable_5) - 0.05) else guiSetText(lable_1,"") guiSetText(lable_2,"") guiSetText(lable_3,"") guiSetText(lable_4,"") guiSetText(lable_5,"") backAll() killTimer(time) end end function outputTop(msg) if isTimer(time) then killTimer(time) backAll() end local text4 = guiGetText(lable_4) guiSetText(lable_5,text4) local text3 = guiGetText(lable_3) guiSetText(lable_4,text3) local text2 = guiGetText(lable_2) guiSetText(lable_3,text2) local text1 = guiGetText(lable_1) guiSetText(lable_2,text1) guiSetText(lable_1,msg) end addEvent("onCallFun",true) addEventHandler("onCallFun",root, function (msg) outputTop(msg) end ) -- Server Side # function outputTop(msg) triggerClientEvent("onCallFun",root,msg) end addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Admin")) then outputTop("" .. getPlayerName(source) .. " Has Logged In #") end end ) Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 -- # Client Side ! x,y = guiGetScreenSize() lable_1 = guiCreateLabel(15,y - 250,300,300,"",false) lable_2 = guiCreateLabel(15,y - 235,300,300,"",false) lable_3 = guiCreateLabel(15,y - 220,300,300,"",false) lable_4 = guiCreateLabel(15,y - 205,300,300,"",false) lable_5 = guiCreateLabel(15,y - 190,300,300,"",false) function outputTop(msg) local text4 = guiGetText(lable_4) guiSetText(lable_5,text4) local text3 = guiGetText(lable_3) guiSetText(lable_4,text3) local text2 = guiGetText(lable_2) guiSetText(lable_3,text2) local text1 = guiGetText(lable_1) guiSetText(lable_2,text1) guiSetText(lable_1,msg) setTimer(function() if (guiGetVisible(lable_1)) then hide1() end end,9999,1) setTimer(function() if (guiGetVisible(lable_2)) then hide2() end end,15000,1) setTimer(function() if (guiGetVisible(lable_3)) then hide3() end end,20000,1) setTimer(function() if (guiGetVisible(lable_4)) then hide4() end end,25000,1) setTimer(function() if (guiGetVisible(lable_5)) then hide5() end end,30000,1) end addEvent("onCallFun",true) addEventHandler("onCallFun",root, function (msg) outputTop(msg) end ) function hide1() guiSetAlpha(lable_1,0.90) setTimer(function() guiSetAlpha(lable_1,0.80) end,100,1) setTimer(function() guiSetAlpha(lable_1,0.70) end,200,1) setTimer(function() guiSetAlpha(lable_1,0.60) end,300,1) setTimer(function() guiSetAlpha(lable_1,0.50) end,400,1) setTimer(function() guiSetAlpha(lable_1,0.40) end,500,1) setTimer(function() guiSetAlpha(lable_1,0.30) end,600,1) setTimer(function() guiSetAlpha(lable_1,0.20) end,700,1) setTimer(function() guiSetAlpha(lable_1,0.10) end,800,1) setTimer(function() guiSetAlpha(lable_1,0) end,900,1) setTimer(function() guiSetAlpha(lable_1,1) end,1000,1) setTimer(function() guiSetText(lable_1,"") end,1000,1) end function hide2() guiSetAlpha(lable_2,0.90) setTimer(function() guiSetAlpha(lable_2,0.80) end,100,1) setTimer(function() guiSetAlpha(lable_2,0.70) end,200,1) setTimer(function() guiSetAlpha(lable_2,0.60) end,300,1) setTimer(function() guiSetAlpha(lable_2,0.50) end,400,1) setTimer(function() guiSetAlpha(lable_2,0.40) end,500,1) setTimer(function() guiSetAlpha(lable_2,0.30) end,600,1) setTimer(function() guiSetAlpha(lable_2,0.20) end,700,1) setTimer(function() guiSetAlpha(lable_2,0.10) end,800,1) setTimer(function() guiSetAlpha(lable_2,0) end,900,1) setTimer(function() guiSetAlpha(lable_2,1) end,1000,1) setTimer(function() guiSetText(lable_2,"") end,1000,1) end function hide3() guiSetAlpha(lable_3,0.90) setTimer(function() guiSetAlpha(lable_3,0.80) end,100,1) setTimer(function() guiSetAlpha(lable_3,0.70) end,200,1) setTimer(function() guiSetAlpha(lable_3,0.60) end,300,1) setTimer(function() guiSetAlpha(lable_3,0.50) end,400,1) setTimer(function() guiSetAlpha(lable_3,0.40) end,500,1) setTimer(function() guiSetAlpha(lable_3,0.30) end,600,1) setTimer(function() guiSetAlpha(lable_3,0.20) end,700,1) setTimer(function() guiSetAlpha(lable_3,0.10) end,800,1) setTimer(function() guiSetAlpha(lable_3,0) end,900,1) setTimer(function() guiSetAlpha(lable_3,1) end,1000,1) setTimer(function() guiSetText(lable_3,"") end,1000,1) end function hide4() guiSetAlpha(lable_4,0.90) setTimer(function() guiSetAlpha(lable_4,0.80) end,100,1) setTimer(function() guiSetAlpha(lable_4,0.70) end,200,1) setTimer(function() guiSetAlpha(lable_4,0.60) end,300,1) setTimer(function() guiSetAlpha(lable_4,0.50) end,400,1) setTimer(function() guiSetAlpha(lable_4,0.40) end,500,1) setTimer(function() guiSetAlpha(lable_4,0.30) end,600,1) setTimer(function() guiSetAlpha(lable_4,0.20) end,700,1) setTimer(function() guiSetAlpha(lable_4,0.10) end,800,1) setTimer(function() guiSetAlpha(lable_4,0) end,900,1) setTimer(function() guiSetAlpha(lable_4,1) end,1000,1) setTimer(function() guiSetText(lable_4,"") end,1000,1) end function hide5() guiSetAlpha(lable_5,0.90) setTimer(function() guiSetAlpha(lable_5,0.80) end,100,1) setTimer(function() guiSetAlpha(lable_5,0.70) end,200,1) setTimer(function() guiSetAlpha(lable_5,0.60) end,300,1) setTimer(function() guiSetAlpha(lable_5,0.50) end,400,1) setTimer(function() guiSetAlpha(lable_5,0.40) end,500,1) setTimer(function() guiSetAlpha(lable_5,0.30) end,600,1) setTimer(function() guiSetAlpha(lable_5,0.20) end,700,1) setTimer(function() guiSetAlpha(lable_5,0.10) end,800,1) setTimer(function() guiSetAlpha(lable_5,0) end,900,1) setTimer(function() guiSetAlpha(lable_5,1) end,1000,1) setTimer(function() guiSetText(lable_5,"") end,1000,1) end -- # Server Side ! function outputTop(msg) triggerClientEvent("onCallFun",root,msg) end addEventHandler("onPlayerLogin",root, function (_,acc) if isObjectInACLGroup("user." .. getAccountName(acc),aclGetGroup("Admin")) then outputTop("" .. getPlayerName(source):gsub('#%x%x%x%x%x%x', '') .. " Has Logged In #") end end ) تعديل ع الاسم + سويته يختفي بخفيف .. Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 شف الطريقة الاسهل والانسبب واخذها .. Link to comment
Nickelz Posted August 12, 2013 Author Share Posted August 12, 2013 يسسسلمؤوؤو شبااب, مبدعيين وربي بوشنبب لبى شنببكك ض1 طلآآل لبى قلبكك مشكؤور Link to comment
AboShanab Posted August 12, 2013 Share Posted August 12, 2013 يسسسلمؤوؤو شبااب, مبدعيين وربي بوشنبب لبى شنببكك ض1 طلآآل لبى قلبكك مشكؤور ربي يسسلمك .. افا عليك شنبي قاااااادح اليوم مدري وش فيه هههههههههههههههههههههههههههههههه .. حياك الله .. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now