TD[M]ER Posted December 5, 2012 Share Posted December 5, 2012 السلام عليكم سويت كود جوين اوت لكن مو شغال اتمنى تشوفونه لي :] guiSetFont(join, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(join, "Disabled", "True") ----- guiSetFont(quit, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(quit, "Disabled", "True") ------- function Color ( ) guiLabelSetColor ( join, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiLabelSetColor ( quit, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 100, 0 ) --- addEventHandler ( 'onPlayerJoin', root, function ( ) join = guiCreateLabel(347, 10, 598, 44, "][ " .. pn .. " ][ <|==|> دخل الى السيرفر ][ " .. w .. " ", false) end ) local lp = getLocalPlayer() guiSetText(join,"][ " ..getPlayerName(lp).. " ][ <|==|> دخل الى السيرفر ][ ") function getRHCPlayerName( player ) return string.gsub( getPlayerName( player ), '#%x%x%x%x%x%x', '' ) end guiSetText( join, getRHCPlayerName( localPlayer ) ) addEventHandler('onPlayerQuit', getRootElement(), function(reason) quit = guiCreateLabel(347, 64, 598, 44, "][ playerN ][ <|==|> خرج من السيرفر [ "..reason.." ] ", false) end ) guiSetText(quit,"][ " ..getPlayerName(lp).. " ][ <|==|> خرج من السيرفر [ "..reason.." ] ") function getRHCPlayerName( player ) return string.gsub( getPlayerName( player ), '#%x%x%x%x%x%x', '' ) end guiSetText( quit, getRHCPlayerName( localPlayer ) ) Link to comment
Tete omar Posted December 5, 2012 Share Posted December 5, 2012 استخدم onPlayerJoin onPlayerQuit وعطني نتيجة التركيب Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 addEventHandler ( 'onPlayerJoin', root, function ( ) join = guiCreateLabel(347, 10, 598, 44, "][ " .. pn .. " ][ <|==|> دخل الى السيرفر ][ " .. w .. " ", false) end ) addEventHandler('onPlayerQuit', getRootElement(), function(reason) quit = guiCreateLabel(347, 64, 598, 44, "][ playerN ][ <|==|> خرج من السيرفر [ "..reason.." ] ", false) end ) [/lua] استخدمonPlayerJoin onPlayerQuit وعطني نتيجة التركيب مو هذي هي :\ ؟ Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 سطر 3 و 8 غير "Ture" الى true سطر 26 pn = ??? w = ???? و الكود ملياااااان فرغات شيلها الله يهديك Link to comment
3NAD Posted December 5, 2012 Share Posted December 5, 2012 -- Client Side join = guiCreateLabel(347, 10, 598, 44, "", false) guiSetFont(join, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(join, "Disabled", "True") quit = guiCreateLabel(347, 64, 598, 44, "", false) guiSetFont(quit, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(quit, "Disabled", "True") function Color ( ) guiLabelSetColor ( join, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiLabelSetColor ( quit, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 100, 0 ) addEventHandler ( "onClientPlayerJoin", root, function ( ) guiSetText ( join, "][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> دخل الى السيرفر ][ " ) end ) addEventHandler ( "onClientPlayerQuit", root, function ( reason ) guiSetText ( quit,"][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> خرج من السيرفر [ "..reason.." ] ") end ) Link to comment
Tete omar Posted December 5, 2012 Share Posted December 5, 2012 هههه ما ركزت او انت عدلت على الكود قبل ما اطرح ردي المهم guiCreateLabel(347, 10, 598, 44, "][ " .. pn .. " ][ <|==|> دخل الى السيرفر ][ " .. w .. " ", false) من وين جبت pn ومن وين جبت w Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 -- Client Side join = guiCreateLabel(347, 10, 598, 44, "", false) guiSetFont(join, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(join, "Disabled", "True") quit = guiCreateLabel(347, 64, 598, 44, "", false) guiSetFont(quit, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(quit, "Disabled", "True") function Color ( ) guiLabelSetColor ( join, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiLabelSetColor ( quit, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 100, 0 ) addEventHandler ( "onClientPlayerJoin", root, function ( ) guiSetText ( join, "][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> دخل الى السيرفر ][ " ) end ) addEventHandler ( "onClientPlayerQuit", root, function ( reason ) guiSetText ( quit,"][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> خرج من السيرفر [ "..reason.." ] ") end ) يسسسسسلمووو ظبطط 100% بس المشكلهه الكلام مايروح ض2 Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 ههههما ركزت او انت عدلت على الكود قبل ما اطرح ردي المهم guiCreateLabel(347, 10, 598, 44, "][ " .. pn .. " ][ <|==|> دخل الى السيرفر ][ " .. w .. " ", false) من وين جبت pn ومن وين جبت w انا حاطها عشان تتغير مع guiSetText Link to comment
3NAD Posted December 5, 2012 Share Posted December 5, 2012 إذا تبيه يروح استخدم setTimer + guiSetText Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 (edited) إذا تبيه يروح استخدم setTimer + guiSetText يسلمو والله ماقصرتم مشككووووووووورررررر يعطيكـم اللللف اللف عافيهه Edited December 5, 2012 by Guest Link to comment
Tete omar Posted December 5, 2012 Share Posted December 5, 2012 -- Client Side join = guiCreateLabel(347, 10, 598, 44, "", false) guiSetFont(join, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(join, "Disabled", "True") guiSetVisible(join,false) quit = guiCreateLabel(347, 64, 598, 44, "", false) guiSetFont(quit, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(quit, "Disabled", "True") guiSetVisible(quit,false) function Color ( ) guiLabelSetColor ( join, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiLabelSetColor ( quit, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 100, 0 ) addEventHandler ( "onClientPlayerJoin", root, function ( ) guiSetVisible(join,true) guiSetText ( join, "][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> دخل الى السيرفر ][ " ) setTimer(guiSetVisible,5000,1,join,false) end ) addEventHandler ( "onClientPlayerQuit", root, function ( reason ) guiSetVisible(quit,true) guiSetText ( quit,"][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> خرج من السيرفر [ "..reason.." ] ") setTimer(guiSetVisible,5000,1,quit,false) end ) Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 وش الفرق بين ذذ guiSetProperty(join, "Disabled", "True") و ذذ guiSetEnabled(join,false) Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 -- Client Side join = guiCreateLabel(347, 10, 598, 44, "", false) guiSetFont(join, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(join, "Disabled", "True") guiSetVisible(join,false) quit = guiCreateLabel(347, 64, 598, 44, "", false) guiSetFont(quit, guiCreateFont("TD[M]ER.ttf", 13)) guiSetProperty(quit, "Disabled", "True") guiSetVisible(quit,false) function Color ( ) guiLabelSetColor ( join, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) guiLabelSetColor ( quit, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 100, 0 ) addEventHandler ( "onClientPlayerJoin", root, function ( ) guiSetVisible(join,true) guiSetText ( join, "][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> دخل الى السيرفر ][ " ) setTimer(guiSetVisible,5000,1,join,false) end ) addEventHandler ( "onClientPlayerQuit", root, function ( reason ) guiSetVisible(quit,true) guiSetText ( quit,"][ " ..getPlayerName(source):gsub("#%x%x%x%x%x%x", "").. " ][ <|==|> خرج من السيرفر [ "..reason.." ] ") setTimer(guiSetVisible,5000,1,quit,false) end ) يسسسسسسسسسسلمووو ي لبى تيتي بث الحين ظبط 10000% يعطيكـ الف عافيهه Link to comment
Tete omar Posted December 5, 2012 Share Posted December 5, 2012 العفو بس نصيحة مني لك استخدم guiGetScreenSize عششان تحدد انواع الشاشات واستخدم onPlayerJoin مو onClientPlayerJoin و onPlayerQuit مو onClientPlayerQuit واستخدم triggerServerEvent عشان ترسل للسيرفر و triggerClientEvent عشان ترسل للكلنت اللي انت مسويه ذا ماراح يضبط مع كل اللاعبين اذا كنت تبي الليبل تظهر لكل اللاعبين >> Link to comment
TD[M]ER Posted December 5, 2012 Author Share Posted December 5, 2012 العفو بس نصيحة مني لكاستخدم guiGetScreenSize عششان تحدد انواع الشاشات واستخدم onPlayerJoin مو onClientPlayerJoin و onPlayerQuit مو onClientPlayerQuit واستخدم triggerServerEvent عشان ترسل للسيرفر و triggerClientEvent عشان ترسل للكلنت اللي انت مسويه ذا ماراح يضبط مع كل اللاعبين اذا كنت تبي الليبل تظهر لكل اللاعبين >> ابشر لبى قلبكـ تعبتكم معاي الله يعطيكـم العافيه :] Link to comment
abu5lf Posted December 5, 2012 Share Posted December 5, 2012 وش الفرق بين ذذ guiSetProperty(join, "Disabled", "True") و ذذ guiSetEnabled(join,false) ماش فرق Link to comment
./BlackBird# Posted December 5, 2012 Share Posted December 5, 2012 وش الفرق بين ذذ guiSetProperty(join, "Disabled", "True") و ذذ guiSetEnabled(join,false) ماش فرق مثل ما توقعت 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