MR.KFO Posted December 17, 2015 Share Posted December 17, 2015 السلام عليكم عندي مشكلة بلوحة الادمن انا مسوي 3 dxDrawText يعرفو من الي صك ميوت وكم المدة وووش السبب --admin-main function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" sa = guiCreateLabel("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) saa = guiCreateLabel("Mute By : "..getPlayerName(source).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) saaa = guiCreateLabel("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("kfo", true) addEventHandler("kfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent("kfo1", true) addEventHandler("kfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) --admin-server elseif ( action == "mute" ) then if ( isPlayerMuted ( player ) ) then action = "un"..action end if getElementData( player ,"Account") == "kfo" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant mute him", 255, 100, 100) return end local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" aSetPlayerMuted ( player, not isPlayerMuted ( player ), seconds ) if ( isPlayerMuted ( player ) ) then exports["guimessages"]:outputServer(root, "*[Admin]: "..getPlayerName(player).." Has been Muted By "..getPlayerName(source)..""..more.."", 255, 0, 0) exports["guimessages"]:outputServer(root, "#FFFFFFReason:"..reason..".", 255, 180, 0) triggerClientEvent(player, "kfo", player) playSoundFrontEnd(root, 49) else exports["guimessages"]:outputServer(root, "*#EB0B0B[Admin]: #56EB0B"..getPlayerName(player).." #EB0B0BHas been UnMuted By #FFE275"..getPlayerName(source).."!", 1, 254, 10) playSoundFrontEnd(root, 14) triggerClientEvent(player, "kfo1", player) end ما يظهر ممكن حل ؟ Link to comment
EmBaby85 Posted December 17, 2015 Share Posted December 17, 2015 ايش يظهر في debugscript 3 Link to comment
a7zan Posted December 17, 2015 Share Posted December 17, 2015 saaa = guiCreateLabel("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) X شوف السينتاكس element guiCreateLabel ( float x, float y, float width, float height, string text, bool relative, [element parent = nil] ) ومافي كود دي إكس بكودك اساساً Link to comment
MR.KFO Posted December 17, 2015 Author Share Posted December 17, 2015 aAdminForm = nil aLastCheck = 0 aCurrentVehicle = 429 aCurrentWeapon = 30 aCurrentAmmo = 100 aCurrentSlap = 200 aPlayers = {} aBans = {} aLastSync = 0 aResources = {} mmmm = "" function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" dxDrawText("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute By : "..getPlayerName(source).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("mutekfo", true) addEventHandler("mutekfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent(mutekfo1) addEventHandler("mutekfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) اسف تلغبطت الحين خليته دي اكس ما يظهر وهذا الدي بج 3 http://cdn.top4top.co/i_c7e22989321.png Link to comment
Abdul KariM Posted December 17, 2015 Share Posted December 17, 2015 عليكم السلام جرب -- aAdminForm = nil aLastCheck = 0 aCurrentVehicle = 429 aCurrentWeapon = 30 aCurrentAmmo = 100 aCurrentSlap = 200 aPlayers = {} aBans = {} aLastSync = 0 aResources = {} mmmm = "" function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" dxDrawText("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute By : "..getPlayerName(localPlayer).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("mutekfo", true) addEventHandler("mutekfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent("mutekfo1",true) addEventHandler("mutekfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) + بالسيرفر غير اسم الترايقر حقت الكلينت بالموجود بالكود Link to comment
MR.KFO Posted December 17, 2015 Author Share Posted December 17, 2015 دقيقة اخي elseif ( action == "mute" ) then if ( isPlayerMuted ( player ) ) then action = "un"..action end if getElementData( player ,"Account") == "kfo" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant mute him", 255, 100, 100) return end local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" aSetPlayerMuted ( player, not isPlayerMuted ( player ), seconds ) if ( isPlayerMuted ( player ) ) then exports["guimessages"]:outputServer(root, "*[Admin]: "..getPlayerName(player).." Has been Muted By "..getPlayerName(source)..""..more.."", 255, 0, 0) exports["guimessages"]:outputServer(root, "#FFFFFFReason:"..reason..".", 255, 180, 0) triggerClientEvent(player, "mutekfo", player) playSoundFrontEnd(root, 49) else exports["guimessages"]:outputServer(root, "*#EB0B0B[Admin]: #56EB0B"..getPlayerName(player).." #EB0B0BHas been UnMuted By #FFE275"..getPlayerName(source).."!", 1, 254, 10) playSoundFrontEnd(root, 14) triggerClientEvent(player, "mutekfo1", player) end هذا السيرفر تمام ولا triggerClientEvent(player, "mutekfo", player) triggerClientEvent(player, "mutekfo1", player) Link to comment
Abdul KariM Posted December 17, 2015 Share Posted December 17, 2015 ^ يب تمام بس تأكد ان player معرفه Link to comment
MR.KFO Posted December 17, 2015 Author Share Posted December 17, 2015 ^يب تمام بس تأكد ان player معرفه يجيب لي اسم اللاعب الي صكه ميوت + انت مسوي localPlayer بيجيب اسم اللاعب انا ابيه اسم الي صكه ميوت لاهنت وما يجيب السبب ومدة الميوت 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