Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. Adham

    تعديل

    كلنت نفس سرفر
  2. Adham

    تعديل

    حطيط الكود تبعك وغيرت اسم الزرار ما صارت اللوحة تفتح
  3. سلام عليكم الكود لما لما امسح الشات في القريد لست بيمسح لاي حد مش القروبات المحدده؟ وعاوز ال button يقفل ويفتح للقروبات المجدهه سرفر : groupAdmins = {"Console","Admin"} -- حط القروبات اللي تمسح و يكون البوتون عندها مفتوح function isPlayerAdmin( player ) local aPlayerAccount = getPlayerAccount( player ) if ( not aPlayerAccount or isGuestAccount( aPlayerAccount ) ) then return false end local aPlayerAccountName=getAccountName(aPlayerAccount) for _ , Group in ipairs ( groupAdmins ) do if isObjectInACLGroup("user."..aPlayerAccountName, aclGetGroup(Group)) then return true end end end addEventHandler("onPlayerLogin",root, function () if isPlayerAdmin(source) then setElementData ( source, "isAdmin", true ) end end ) addEventHandler("onPlayerLogout",root, function () if isPlayerAdmin(source) then setElementData ( source, "isAdmin", false ) end end ) addEventHandler("onResourceStart",root, function () for _ , v in ipairs(getElementsByType("player")) do -- جيب كل اللاعبين if isPlayerAdmin(v) then setElementData(v, "isAdmin", true) end end end ) function clearChat() local name = getPlayerName(source) for _ , v in ipairs(getElementsByType("player")) do triggerClientEvent(v, "clearrows", v, name) end end addEvent("clearChat", true) addEventHandler("clearChat", root, clearChat) كلنت addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local text = guiGetText(GUIEditor.edit[1]) if getElementData(localPlayer, "isAdmin") then if text == "clr" then triggerServerEvent("clearChat", localPlayer) end end end end ) function clearChat(name) if guiGridListClear(GridList) then local row = guiGridListAddRow(GridList) local text = name:gsub("#%x%x%x%x%x%x","").." Cleared Chat " local t=guiGridListSetItemText(GridList, row, 1, text, false, false) guiGridListSetItemColor(GridList, row, 1, 255, 0, 0) end end addEvent("clearrows", true) addEventHandler("clearrows", root, clearChat)
  4. ول حطيطه قفل للكل addEventHandler("onClientResourceStart",root, function () if getElementData(localPlayer, "isAdmin") then guiSetEnabled(GUIEditor.button[3],false) end end )
  5. كذا؟ وملحوظه ذا سرفر addEventHandler("onClientResourceStart",root, fuction () if getElementData(localPlayer, "isAdmin") then guiSetEnabled(button,true) end end )
  6. اشتغلت بس ابي تعملي البيتون يتقفل ويتفتح ل النا محدد القروبات
  7. ما شتغلت انا كونسل وبكتب clr ما يتمسح شي
  8. كذا؟ groupAdmins = {"Console","Admin"} -- حط القروبات اللي تمسح و يكون البوتون عندها مفتوح function isPlayerAdmin( player ) local aPlayerAccount = getPlayerAccount( player ) if ( not aPlayerAccount or isGuestAccount( aPlayerAccount ) ) then return false end local aPlayerAccountName=getAccountName(aPlayerAccount) for _ , Group in ipairs ( groupAdmins ) do if isObjectInACLGroup("user."..aPlayerAccountName, aclGetGroup(Group)) then return true end end end addEventHandler("onPlayerLogin",root, function () if isPlayerAdmin(source) setElementData ( source ) end end ) if getElementData(source) guiSetEnabled(button, true) addEventHandler("onResourceStart",root, function () for _ , players in ipairs(getElementsByType("player")) do -- جيب كل اللاعبين if isPlayerAdmin(v) - setElementData(v) end end)
  9. ممكن تعملهولي اخ جينرال الله يوفقكك
  10. شكرا لك جينرال ممكن طلب اخر؟ ابي تعملي دا يفتح لقروب معين addEventHandler ("onClientGUIClick",GUIEditor.button[3], function () if guiGetText (GUIEditor.edit[1]) == "clr" then return triggerServerEvent ("Clear",localPlayer,getPlayerName(localPlayer)) end --sendMessage code end) addEvent ("CLEAR",true) addEventHandler ("CLEAR",root, function (name) guiGridListClear (GUIEditor.gridlist[1]) rw = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rw,1," "..name:gsub("#%x%x%x%x%x%x", "").." - Cleard Chat",false,false) guiGridListSetItemColor(GUIEditor.gridlist[1],rw,1, 0, 0, 1, 0) end) addEvent ("Clear",true) addEventHandler ("Clear",root, function (name) for i,k in ipairs (getElementsByType("player")) do triggerClientEvent (k,"CLEAR",k,name) end end) وعاوز المش معاه القروبتا المحدده يعني لو حد ما معه الرتبة البيتون يكون مقفل يجي في القريد لست * You dont have hh بعدين عاوز الكود كلنت الفوق ما يكتب في الايديت clr يضعط علي البيتون يمسح علطول
  11. برده يخوي باجي ابعت رساله بتختفي برده
  12. انا ابي اعمل لما يضط علي Send وما كتب شي بلايديت ولما كتب شي وضعط علي البيتون تبعت عادي الكود بتاعي اهو اليبعت رساله في القريد لست من بيتون send addEventHandler("onClientGUIClick",GUIEditor.button[1],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText (GUIEditor.edit[1], "" ) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, Name:gsub("#%x%x%x%x%x%x", "") .. " : " .. Text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("#ffff00* [support-System] "..Name:gsub("#%x%x%x%x%x%x", "")..": #ffffff"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end)
  13. طيب انا عاوز لما يكتب شي ويضعط علي Send ما تختفي تبعت الرساله عادي
  14. طيب انا لما بكتب شي بلايديت واضعط send تختفي برده
  15. افهمني انا عاوز حاجة لما ما اكتب شي بالايديت اكتب فاضي واضعط علي button Send تختفي الbutton وترجع
  16. ممكن الكود جاهز بس اذنك ولف لو ما تبي اوك.
  17. سلام عليكم ابي كود لما يضعط علي البيتون اسمه Send وما كتب شي بالاديت تختفي ال button وترجع تاني انا عامل سبورت سيستم وفيه زر اسمه Send عاوز اليضعط عليها وما كتب شي بالايديت تختفي ال Send الbutton وتيجي تاني
×
×
  • Create New...