saef Posted September 11, 2015 Author Share Posted September 11, 2015 جربته للمرة الثانية وسويت تاج خاص لي وتاج الأدمن رآح يعني ما يكرر ذذذ وحذفت التاج رجع تآج الأدمن ذذهذا الي تبيه ولا شيء ثاني !؟ اسمععع ي حبي تاج الادمن م يجي بي الشات فهمت يعني الان انا لم م يكون معي تاج خاص م يشتغل تاج الادمن بي العربي تاج الادمن م يشتغل اا التاج الخا يشتغل شوف هو م يكررر صصار ب تاج اادددمن م يطلع بي الشات ابدا خرب شكله اما التاج م يكرر صار ي ليت تكون فهمت Link to comment
iMr.SFA7 Posted September 11, 2015 Share Posted September 11, 2015 بالنسبة للتاج الأدمن يعني أنت تبي لما يتكلم واحد يجي تاج الأدمن والسيريال معه؟ كذا بيكرر!؟ بالنسبة للوحة التاج الخاص أنت موب مسوي لها زر فتح خليتها لكـ تفتح من اف5 GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22") guiSetVisible (GUIEditor.window[1] , false) end ) bindKey ("F5","down", function ( ) if ( guiGetVisible (GUIEditor.window[1]) == true ) then guiSetVisible (GUIEditor.window[1],false) showCursor ( false ) else guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) local Serial = guiGetText ( GUIEditor.edit[2] ) local Tag = guiGetText ( GUIEditor.edit[1] ) if ( source == GUIEditor.button[2] ) then if ( string.len ( Serial ) == 32 ) then setSerialData ( Serial, "TagState", "Enable" ) setSerialData ( Serial, "playerTag",Tag ) end else if ( source == GUIEditor.button[1] ) then setSerialData ( Serial, "TagState", "Disable" ) end end end ) function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end Link to comment
saef Posted September 12, 2015 Author Share Posted September 12, 2015 بالنسبة للتاج الأدمن يعني أنت تبي لما يتكلم واحد يجي تاج الأدمن والسيريال معه؟ كذا بيكرر!؟بالنسبة للوحة التاج الخاص أنت موب مسوي لها زر فتح خليتها لكـ تفتح من اف5 GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22") guiSetVisible (GUIEditor.window[1] , false) end ) bindKey ("F5","down", function ( ) if ( guiGetVisible (GUIEditor.window[1]) == true ) then guiSetVisible (GUIEditor.window[1],false) showCursor ( false ) else guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) local Serial = guiGetText ( GUIEditor.edit[2] ) local Tag = guiGetText ( GUIEditor.edit[1] ) if ( source == GUIEditor.button[2] ) then if ( string.len ( Serial ) == 32 ) then setSerialData ( Serial, "TagState", "Enable" ) setSerialData ( Serial, "playerTag",Tag ) end else if ( source == GUIEditor.button[1] ) then setSerialData ( Serial, "TagState", "Disable" ) end end end ) function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end لا انا خليته تفتح من اف ثمنيه بي كلمه فهمت لا م ابيه يكرر بي لم حطية كوادك انا الي حقت تاج الادمن طلع تاج الادمن م يشتغل Link to comment
iMr.SFA7 Posted September 12, 2015 Share Posted September 12, 2015 -- # Client Side : GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(369, 181, 507, 463, "x[لـــوحـــة تـــآجــآت خـــآصــه]x", false) GUIEditor.edit[1] = guiCreateEdit(110, 63, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(110, 116, 319, 31, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(44, 67, 95, 33, "PlayerTag", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 35, 243, 7) GUIEditor.label[2] = guiCreateLabel(48, 116, 95, 33, "PlayerSerial", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 250, 0, 0) GUIEditor.button[1] = guiCreateButton(293, 218, 157, 47, "STOP-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC8F108") GUIEditor.button[2] = guiCreateButton(110, 218, 157, 47, "Start-Tag", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF65E22") guiSetVisible (GUIEditor.window[1] , false) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) local Serial = guiGetText ( GUIEditor.edit[2] ) local Tag = guiGetText ( GUIEditor.edit[1] ) if ( source == GUIEditor.button[2] ) then if ( string.len ( Serial ) == 32 ) then setSerialData ( Serial, "TagState", "Enable" ) setSerialData ( Serial, "playerTag",Tag ) end else if ( source == GUIEditor.button[1] ) then setSerialData ( Serial, "TagState", "Disable" ) end end end ) function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end -- # Server Side : timer = {} addEventHandler ( "onPlayerChat", root, function ( msg ) if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then local name = getPlayerName( source ) cancelEvent ( ) local Tag = getSerialData ( getPlayerSerial ( source ), "playerTag" ) outputChatBox (" "..Tag.." "..getPlayerName ( source )..": #FFFFFF"..msg, root, 255, 255, 255, true ) end end ) addCommandHandler("77", function (player) if hasObjectPermissionTo(player,"command.kick",true) then if isTimer(timer[player]) then outputChatBox("[ Chat ] : الرجاء عدم تكرر مسح الشات *",player,255,0,0) return end for i=1,15 do outputChatBox(" ") end outputChatBox("#FF9868# #FFFFFF' #c1c1c1[ #FF9868G.N Chat #c1c1c1] #FFFFFF' #c1c1c1[ #FF9868" .. getPlayerName(player) .. "#c1c1c1 ] #FF9868Cleared The Chat .",root,255,0,0,true) timer[player] = setTimer(function () end,5000,1) else outputChatBox("[ Chat ] : انت لست ادمن *",player,255,0,0) end end ) function chatbox(text, msgtype) if ( getSerialData ( getPlayerSerial ( source ), "TagState" ) == "Enable" ) then return end local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) cancelEvent ( ) if isObjectInACLGroup("user." .. account, aclGetGroup("NO")) then outputChatBox("NO" .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then cancelEvent() outputChatBox("*#FF0000 [ Console #FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ManagerS")) then cancelEvent() outputChatBox("#665566[ManagerS] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Criminal")) then cancelEvent() outputChatBox("#66FF55[Criminal] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.Admin")) then cancelEvent() outputChatBox("#66FYBC[Dieputy.Admin] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Dieputy.SeRvEr")) then cancelEvent() outputChatBox("#FFFFFF[#66FFYYDieputy.SeRvEr#FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager")) then cancelEvent() outputChatBox("#FFFFFF[#66FFDCManager#FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Manager-Acl")) then cancelEvent() outputChatBox("#FFFFFF[#66FFFFManager-Acl#FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Leader.Admin")) then cancelEvent() outputChatBox("#66FFCC[Leader.Admin] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P-Admin")) then cancelEvent() outputChatBox("#990099[V.I.P-Admin] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("BesT.Admin")) then cancelEvent() outputChatBox("#CC3399[besT.Admin] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Super.Admin")) then cancelEvent() outputChatBox("#CCFF33[super.Admin] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.SeRvEr")) then cancelEvent() outputChatBox("* [#FF5566KinG.SeRvEr #FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prote.Admin")) then cancelEvent() outputChatBox("* [ #ff0000Prince.admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.FeatUreD")) then cancelEvent() outputChatBox("* [ #CC0099Admin.FeatUreD#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Big.Admin")) then cancelEvent() outputChatBox("* [ #990066Big.Admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Plus")) then cancelEvent() outputChatBox("* [ #CC9933Admin.Plus#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.V.I.P")) then cancelEvent() outputChatBox("* [ #FFFF00Prince.V.I.P#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.admin")) then cancelEvent() outputChatBox("* [ #ff0000Prince.admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Prince.Server")) then cancelEvent() outputChatBox("* [ #00ff00Prince.Server#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("KinG.Admin")) then cancelEvent() outputChatBox("* [ #990000KinG.Admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.TOP")) then cancelEvent() outputChatBox("* [#660000Admin.TOP#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.Black")) then cancelEvent() outputChatBox("* [#99CC00 Admin.Black#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.SPORT")) then cancelEvent() outputChatBox("* [#FFFF00 Admin.SPORT #FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.BOOS")) then cancelEvent() outputChatBox("#0099ff* [ Admin.BOOS ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.MFA")) then cancelEvent() outputChatBox("* [ #669999Admin.MFA#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin.General")) then cancelEvent() outputChatBox("* [ #00FFCCAdmin.General#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Professional.Admin")) then cancelEvent() outputChatBox("* [ #000066Professional.Admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Head.Admin")) then cancelEvent() outputChatBox("* [ #000066Head.Admin#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("ADMIN")) then cancelEvent() outputChatBox("* [ #000066ADMIN#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("SuperModerator")) then cancelEvent() outputChatBox("* [ #00FF00 SuperModerator#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then cancelEvent() outputChatBox("* [ #FF0000 Moderator#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Police")) then cancelEvent() outputChatBox("* [#00FF00Police#FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("V.I.P")) then cancelEvent() outputChatBox("* [#FF0000 V.I.P#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("King.Drift")) then cancelEvent() outputChatBox("* [ #CC0000king Dirft#FFFFFF ] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then cancelEvent() outputChatBox("#669966[ play #FFFFFF] x" .. name .. " :#FFFFFF " .. text, root, 255, 255, 255, true) end end addEventHandler("onPlayerChat", root, chatbox) function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end Link to comment
Rockyz Posted September 12, 2015 Share Posted September 12, 2015 بس حاب اقول لك addEventHandler("onClientResourceStart", resourceRoot, function() مالها داعي تقدر تحذفها Link to comment
iMr.SFA7 Posted September 12, 2015 Share Posted September 12, 2015 بس حاب اقول لك addEventHandler("onClientResourceStart", resourceRoot, function() مالها داعي تقدر تحذفها ? وليه يحذفها؟ Link to comment
` Allawi Posted September 12, 2015 Share Posted September 12, 2015 بس حاب اقول لك addEventHandler("onClientResourceStart", resourceRoot, function() مالها داعي تقدر تحذفها لها داعي في ترتيب الكود اذا يبي كود مرتب لازم يستعملها Link to comment
Rockyz Posted September 12, 2015 Share Posted September 12, 2015 ? وليه يحذفها؟ فيه مره جربته على سكربت ماشتغل يوم شلتها اشتغل + يمكن يصير لاق يعني مسوي حدث ادا اشتغل الريسورس بيسوي الاوامر يمكن يصير لاق Link to comment
iMr.SFA7 Posted September 12, 2015 Share Posted September 12, 2015 بيسوي الاوامر يمكن يصير لاق لا ما راح يصير شيء cache بالنسبة للحدث فـ هو مهم يوم تبي تحذف الملف بأستعمال خاصية اذا ما حطيت الحدث هذا فـ من الممكن أن تصير مشآكل باللوحة اللبل والأحداثيات تخرب ذذذ 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