Jump to content

momar5700

Members
  • Posts

    381
  • Joined

  • Last visited

Everything posted by momar5700

  1. وش الي انت كاتبه ذا ؟ ^ انا خليته يخفي زرر يعني يفتح بكلمه من اف8 ومن زر اف5 و لما تفتحه ماتقدر تسوي اي شيء تلاقي زر مخفي علشان تضغط عليه لازم تكون معك رتبت
  2. اخر سوال كيف اسوي لوحة تفتحة لحساب معين او لمجموعة حسابات يعني ابيه مثلا تفتح لحسابي اني بس
  3. انا مسوي في زر لما تضغط عليه كانك كتبت كلمة في اف8 المشكله اني ابي احط زر محد يقد ر يفتحة الا غيرررر بس كدا
  4. فهمت ابي اخلي لوححة تفتح عن طريق كلمه من اف8 بس تفتح لحسابي فقد كيف اسويها غيرت اسمها ماصار شي برضو صارت تفتح لما اكتب انا بس لوحة تانيه اكتب كلمه حجتها ماتفتح وش سبب
  5. كيف اخلي زر ماتقدر تدوس عليه الا لما تكون معك رتبه انا محددها او كيف اخليه تقتح لمجموعة رتب انا محددة مو رتبه وحدا
  6. انا مسوي لوحة كلنت function show() if guiGetVisible(GUIEditor.window[1]) == true then guiSetVisible(GUIEditor.window[1],false) showCursor(false) else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) وسيرفر addCommandHandler('انا', function(thePlayer) if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Control" ) ) then triggerClientEvent(thePlayer,'show',thePlayer) end end ) وفي مود تاني كلنت function show() if guiGetVisible(GppWindow) == true then guiSetVisible(GppWindow,false) showCursor(false) else guiSetVisible(GppWindow,true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) سيرفر addCommandHandler('gpp', function(thePlayer) if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Admin" ) ) then triggerClientEvent(thePlayer,'show',thePlayer) end end ) مشكله انه لو كتبت في اف8 انا ومعك مثل رتبت الاول بس الثنين يفتحوووو لو كتبت انا او gpp الثتنين يفتحوو ليش انا ابس حلل للمشكله
  7. لوحة ماتفتحح ابدا المفروض بعض صورة تيجي لوحة بس ماتيجي
  8. انا حاولت اغير لوحة بس وجهتني مشكله ممكن مساعدة local sX,sY = guiGetScreenSize() local loginData = { loginEdit = false, passwordEdit = false, confirmEdit = false, loginButton = false, registerButton = false, guestButton = false, loginState = "login", loginTick = 0, animState = false, animTick = 0, backgroundAlpha = 255, backgroundAnim = false, font = "default-bold", fontScale = false, colorData = {0,176,255}, rememberState = false, switchTick = 0, switchColor = {255,0,0}, switchPosition = 0, switchHover = false, loginX = sX*0.6, registerX = sX, messagesData = { }, messageTick = 0, } local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim) local now = getTickCount() local endTime = tag + animTime local elapsedTime = now - tag local duration = endTime - tag local progress = elapsedTime / duration local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim) return a, b, c end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time ) if(sm.moov == 1) then return false end sm.object1 = createObject ( 1337, x1, y1, z1 ) sm.object2 = createObject ( 1337, x1t, y1t, z1t ) setElementAlpha ( sm.object1, 0 ) setElementAlpha ( sm.object2, 0 ) setObjectScale(sm.object1, 0.01) setObjectScale(sm.object2, 0.01) moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, "InOutQuad" ) moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, "InOutQuad" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end x, y = guiGetScreenSize() font="default-bold" fontTam=5 spcGam=dxGetTextWidth ("server-SH-3",fontTam,font) -- اسم سيرفرك بالنجليزي function intro() ahora = getTickCount() count=ahora-start dxDrawImage(0, 0, x, y, '',0,0,0,tocolor(255,255,255),false) sizeX=64*1.21 sizeY=64*1.21 varX,varY,varZ = anim(start,1000,spcGam,0,0,0,spcGam,150,"OutBack") dxDrawText("server-SH-3",0+x/2-varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(38,205,0,255),fontTam,font,nil,nil,true) ---- اسم سيرفرك dxDrawText("",1+x/-varY/6-dxGetTextWidth ("i",fontTam,font),y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true) dxDrawText("♥",x/2+varY/2,y/2-100,varY+x/2-varY/2,y,tocolor(255,255,255,255),fontTam,font,nil,nil,false,false,false,true) if (count>1500) then varX2,varY2,varZ2 = anim(start+1500,1000,0,0,0,200,250,360,"OutBack") dxDrawText("اهلا وسهلا بكم في سيرفر عشاق الوناسة",0+x/2-varY/2,y/2-100+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) ---- اسم سيرفرك dxDrawText("نتمنا ان ينال السيرفر اعجابكم",0+x/2-varY/2,y/2-80+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) ---- اسم سيرفرك dxDrawText("Welcome to sever__SH-3 ...",0+x/2-varY/2,y/2-60+dxGetFontHeight(fontTam,font),varY+x/2-varY/2,y,tocolor(255,255,255,varX2),1.5,font,"center",nil,false,false,false,true) end if (count>2000) then varX2,varY3,varZ3 = anim(start+2000,1000*10,0,0,0,200,250,360*5,"Linear") dxDrawImage ( x/2-sizeX/2, y/2+50, sizeX, sizeY, 'img/cargando2.png',180+varZ3) dxDrawText("Loading..",12,y/2+60+sizeY+1,x,y,tocolor(0,0,0,85),1.5,font,"center",nil,false,false,false,true) dxDrawText("Loading..",10,y/2+60+sizeY,x,y,tocolor(255,255,255,255),1.5,font,"center",nil,false,false,false,true) end end function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim) local now = getTickCount() local endTime = tag + animTime local elapsedTime = now - tag local duration = endTime - tag local progress = elapsedTime / duration local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim) return a, b, c end fileDelete("intro_c.lua") local sx, sy = guiGetScreenSize() alpha = 250 MP = "files/1.png" MX = sx MY = sy function adjIntro(adj) _, times = getTimerDetails(IntroTimer) if adj == "M1" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else IntroTimer = setTimer(adjIntro, 50, 26, "M2") end end, 50, 26) end elseif adj == "M2" then if (alpha < 250) and (alpha >= 0) then alpha = alpha + 10 end MX = (MX/0.95)-5 MY = (MY/0.95) MP = "files/2.png" if times == 1 then setTimer(function() MP = "files/3.png" setTimer(function() IntroTimer = setTimer(adjIntro, 50, 26, "M3") end, 3500, 1) end, 4000, 1) end elseif adj == "M3" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then MP = "files/4.png" MX = (MX/0.95)-5 MY = (MY/0.95) setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5) dx = true showCursor(true) addEventHandler("onClientRender", root, onLoginResourceStart); end end, 50, 26) end, 3500, 1) end end end function drawIntro() dxDrawImage(sx/2-(MX/2), sy/2-(MY/2), MX, MY, MP, 0, 0, 0, tocolor(255, 255, 255, alpha)) end function onLoginResourceStart() loginData.loginEdit = createElement("dxEdit") loginData.passwordEdit = createElement("dxEdit") loginData.confirmEdit = createElement("dxEdit") loginData.loginButton = createElement("dxButton") loginData.registerButton = createElement("dxButton") loginData.guestButton = createElement("dxButton") setElementData(localPlayer,"loginState",false,false) triggerServerEvent("onClientWantCheckHisState",localPlayer) end function main() removeEventHandler ("onClientRender",root,Dx) fadeCamera(false); showChat(false) IntroSong = playSound ("files/Intro.mp3") showPlayerHudComponent("all", false) start = getTickCount() addEventHandler("onClientRender",getRootElement(),intro) setTimer ( function() removeEventHandler("onClientRender",getRootElement(),intro) IntroTimer = setTimer(adjIntro, 50, 26, "M1") addEventHandler("onClientRender", root, drawIntro) triggerEvent("onFinishIntro",getRootElement()) setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5) guiSetInputEnabled(true) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end, 5000, 1 ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),main) function renderLoginInterface() loginData.switchHover = false local tick = getTickCount() - loginData.animTick local progress = math.min(tick/1000,1) if loginData.animState then loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,255,0,0,progress,"Linear") else loginData.loginAlpha = interpolateBetween(loginData.loginAlpha,0,0,0,0,0,progress,"Linear") loginData.backgroundAlpha = loginData.loginAlpha end
  9. ليش ماشتغل ALL local window = guiCreateWindow(0.21, 0.15, 0.62, 0.62, "D4MN Website - ©RaysMTA", true) local closebtn = guiCreateButton(0.87, 0.92, 0.11, 0.06, "Close", true, window) guiWindowSetMovable(window, false) guiWindowSetSizable(window, false) guiSetVisible(window, false) local theBrowser = guiGetBrowser(browser) function openBrowser() local browser = guiCreateBrowser(9, 22, 611, 409, false, false, false, window) addEventHandler("onClientBrowserCreated", theBrowser) loadBrowserURL(source, "https://www.youtube.com/watch?v=LqvmvKynU4c&feature=youtu.be") showCursor (true) guiSetVisible(window, true) end bindKey("F2", "down", openBrowser) function closeAll() if source == closebtn then guiSetVisible ( window, false ) showCursor ( false ) end end addEventHandler("onClientGUIClick", getRootElement(), closeAll)
  10. طيب هل اقدر ان اضيف فيديو دي ده في النت واشغله في فيم مود
  11. [*] هل اقدر انا اضيف فيديو يشتغل في قيم مود ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ظظ
  12. لو ابي مثل احط فيديو دخه وش اسوي
  13. طيب ممكن توضيح اقدر
  14. هل اقدر اني ارفع فيديو علي الانترنت واخليه يشتغل بدل من صورة لاني شفت فيديو واحد مسوي لوحة تسجيل فيها فيديو شغال
  15. هل في طريقة بدل مخليه صورة الي فيديو dxDrawImage(sx/2-(MX/2), sy/2-(MY/2), MX, MY, MP, 0, 0, 0, tocolor(255, 255, 255, alpha)) بدل من صيغة files/4.png الي صيغة files/Logo.mpg هل يوجد طريقة اخليه من صورة الي فيديو يشتغل
  16. مشكله هي اني ابي اسوي مود بس مشكله انه مافي وقت انا مبتدي واعرف اعدل بس ولا اسوي كود ماعرف للانه علشان اتعلم لازم اقعد 24 ساعة علي المود فعلشان كدا انا اعتمد علي الجاهز الي الحين انا ماصممت مود بس اخد جاهز واعدل علية واظبطه نسخ ولصق ماعرف اسوي كود
  17. اخوي عدله لي والله م افهم شيء وين احطه طيب احا ماتعرف كيف يعني انسخ كود ده وحطه بدل ملف سيرفر الي عندك علي فكره كود دده يحفظ ساعات علي سيريال فقد مايحفظ ساعات علي الحساب يعني
  18. انا كيف اخلي مثل انت معك رتبت كونسل ما تقدر تعضيه رتبت مخالف
  19. ياخي يعني وش تبي اسوي ياخي والله انا الي سويت الوحة شف هادي الوحة الاصليه -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights -- * thanks to MR.S3D for helping me GppWindow = guiCreateWindow(0.1637,0.3017,0.5975,0.4134,"Give Permissions Panel By |S.s|SoRa",true) guiSetVisible(GppWindow,false) Gpedit = guiCreateEdit(251,54,203,33,"",false,GppWindow) GiveModeratorButton = guiCreateButton(250,91,215,40,"Give Moderator Permissions",false,GppWindow) GiveSuperModeratorButton = guiCreateButton(250,143,215,40,"Give SuperModerator Permissions",false,GppWindow) GiveAdminsButton = guiCreateButton(251,194,210,40,"Give Admin Permissions",false,GppWindow) label = guiCreateLabel(252,31,154,17,"Player :",false,GppWindow) CloseButton = guiCreateButton(445,25,18,16,"X",false,GppWindow) removebutton = guiCreateButton(369,26,65,21,"remove",false,GppWindow) -------------------------- ---Grid list ------------------------- addEventHandler("onClientResourceStart",resourceRoot, function() grid = guiCreateGridList(9,25,228,214,false,GppWindow) guiGridListSetSelectionMode(grid,2) local column = guiGridListAddColumn( grid, "Player Name", 0.89 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( grid ) guiGridListSetItemText ( grid, row, column, getPlayerName(player), false, false ) guiGridListSetItemColor ( grid, row, column, 0, 250, 154, 255 ) end addEventHandler ( "onClientGUIClick", grid, click ) end end) function click () local playerName = guiGridListGetItemText ( grid, guiGridListGetSelectedItem ( grid ), 1 ) guiSetText ( Gpedit, playerName ) end ---------------------------- --Show panel from command -------------------------- function showPanel () guiSetVisible (GppWindow, true) showCursor (true) playSound("open.mp3",false) end addEvent( "showPanel", true ) addEventHandler ( "showPanel", getRootElement(), showPanel) ------------------------ --Event to bindKey ------------------------ function show() if guiGetVisible(GppWindow) == true then guiSetVisible(GppWindow,false) showCursor(false) else guiSetVisible(GppWindow,true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) --------------------- --On Click -------------------- function onGuiClick (button, state, absoluteX, absoluteY) if (source == CloseButton) then guiSetVisible (GppWindow, false) showCursor (false) elseif (source == removebutton) then local name = guiGetText ( Gpedit ) local target = getPlayerFromName(name) triggerServerEvent ("remove", getLocalPlayer(), target) elseif (source == GiveModeratorButton) then local name = guiGetText ( Gpedit ) local target = getPlayerFromName(name) triggerServerEvent("Adminex", getLocalPlayer(), target) playSound("sec.wav",false) elseif (source == GiveSuperModeratorButton) then local name = guiGetText ( Gpedit ) local target = getPlayerFromName(name) triggerServerEvent("SuperModerator", getLocalPlayer(), target) playSound("sec.wav",false) elseif (source == GiveAdminsButton) then local name = guiGetText ( Gpedit ) local target = getPlayerFromName(name) triggerServerEvent("Admin", getLocalPlayer(), target) playSound("sec.wav",false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) ----------------------- --GetPermission --------------------- function GetPermission() triggerServerEvent ("OpenPanel", getLocalPlayer(), OpenPanel) end ---------------------- --Sound --------------------- function nopsound () playSound("np.mp3",false) end addEvent( "nopsound", true ) addEventHandler ( "nopsound", getRootElement(), nopsound) function removedsound () playSound("removed.wav",false) end addEvent( "removedsound", true ) addEventHandler ( "removedsound", getRootElement(), removedsound) -------------------- --Refrsh player list -------------------- function list() guiGridListClear(grid) for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( grid, row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights ياخي انا والله ملف ميتا ماغيرت الحقوق والله قسم لك اني ماغيرت الحقوق وكمان انا اطفت شيء الي لما تغط علي زر اعطاء المخالفة يسحب كل رتبه ويعطي رتبت مخالفة -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights -- * thanks to MR.S3D for helping me local rootElement = getRootElement() -------------------- ---bindKey i to open panel --only who in Console group can open this panel ------------------- addEventHandler("onPlayerJoin",root, function () bindKey(source,"i","down",show) ----- Change "i" to the key you want end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"i","down",show) ----Change "i" to the key you want end end) function show(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Console")) then triggerClientEvent(thePlayer,"showPanel",thePlayer) else outputChatBox ("* GPP: You Don't Have Permission For This Command", source, 255, 0, 0, true) triggerClientEvent ( thePlayer,"nopsound", thePlayer ) end end ------------------------ --Give Admin.Sup,Mod,Remove ----------------------- addEvent("Adminex",true) function Adminex(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "Admin-EX" ) if ( group ) then removeGroups ( source ) aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "ASL: '"..getAccountName(getPlayerAccount(target)).."تم اعطاء مخالفة للحساب '", source, 0, 255 ,0 ) else outputChatBox ( "لم يتم كتابة او تحديد علي الاسم", source, 255, 100 ,100 ) end end addEventHandler("Adminex", getRootElement(), Adminex) addEvent("remove",true) function removee(target) local account = getPlayerAccount ( target ) if ( account ) then aclGroupRemoveObject (aclGetGroup("Admin-EX"), "user."..getAccountName ( account ) ) outputChatBox ( "GPP: all permissons of '"..getAccountName(getPlayerAccount(target)).."' has been removed !", source, 255, 0 ,0 ) triggerClientEvent ( source,"removedsound", source ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("remove", getRootElement(), removee) function removeGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs ( aclGroupList ( ) ) do g = aclGroupGetName ( v ) if g ~= "Console" and g ~= "Managers" and g ~= "Maps" then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) ) end end end end end end ---------------------- --Command ---------------------- function OpenPanel ( player ) local player = player or source local accountname = getAccountName( getPlayerAccount( player ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Managers-ACl" )) then triggerClientEvent ( player,"showPanel", player ) else outputChatBox ("* انت الان مرشح مانجرس وليس لديك رتبت مانجرس :Momar", player, 255, 0, 0, true) triggerClientEvent ( player,"nopsound", player ) end end addEvent( "OpenPanel", true ) addEventHandler ( "OpenPanel", getRootElement(), OpenPanel) addCommandHandler ( "gpp", OpenPanel ) function check() local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Managers" )) then else outputChatBox (" انت معك رتبت مانجرس تقدر تفتح لوحة بطغط عل زر i", player, 255, 0, 0, true) end end addEventHandler("onPlayerLogin",getRootElement(),check ) -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights وبعدين انا كمان حطيت بواسطه سوار في كل ملف ماعدلت عليه يعني الحين
  20. تم الانتهاء من صنع مود ولبين اني ماراح اسرق الحقوق GUIEditor.label[1] = guiCreateLabel(7, 8, 417, 33, "m/BY:SoRa momar", false, GUIEditor.progressbar[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 25, 245, 9) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(6, 55, 416, 32, "قبل عمل اي شيء يجب اولاتحديد لاعب", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[2], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(6, 103, 416, 32, "عند سحب مخالفة تاكد ان لاعب ليس عنده مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[3], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(6, 159, 416, 32, "عندما تريد ان تضع للاعب مخالفة يجب عليك تجديد لاعب ثم دوس علي اعطاء مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[4], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(5, 205, 416, 32, "قوانين: عدم اعطاء الاعبين اكثر من عشر مخالفات باليوم", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[5], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.button[4] = guiCreateButton(242, 253, 181, 39, "عوده لي لوحة مخالفات", false, GUIEditor.progressbar[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA019F") BTN3_close2 = guiCreateButton(18, 255, 170, 39, "اغلاق الوحة تعليمات", false, GUIEditor.progressbar[1]) guiSetProperty(BTN3_close2, "NormalTextColour", "FFFA0000")
  21. ياخي والله انا الي سويت الوحة وكل شيء بس الاكواد اخدتها من مود اعطاء رتبه بس ولاكن مش مطتوب عليه اسمه وثاني شي انا حاطت مود تحت تجربه فخليت رتبه مشرف انا فاهم كل شيء بس كل الي ابيه هو ليه مايعطي رتبت مشرف ومايجي كلام بشات وحتي انت معضني كود غلط addEvent("Admin-EX",true) addEventHandler("Admin-EX",root, function (nAccount) if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(nAccount)), aclGetGroup("Admin-EX") then ---outputChatBox اذا صار مخالف من قبل else aclGroupAddObject(aclGetGroup("Admin-EX"), "user."..getAccountName(getPlayerAccount(nAccount))) ---- outputChatBox اذا تم اعطاءه مخالف ، --- كودك المتبقي لو تبي شيء زيادة ، end end )
  22. ياخي تبي تساعدني ساعدني ماتبي خلاص وانا مش فاهم عليك
  23. اوف ظهرت مشكله GUIEditor = { progressbar = {}, edit = {}, button = {}, window = {}, label = {}, gridlist = {} } local screenW, screenH = guiGetScreenSize() Window2 = guiCreateWindow(189, 144, 446, 336, "لوحة معلومات مانجرس", false) guiWindowSetSizable(Window2, false) guiSetAlpha(Window2, 1.00) guiSetVisible(Window2,false) GUIEditor.progressbar[1] = guiCreateProgressBar(9, 19, 428, 308, false, Window2) GUIEditor.label[1] = guiCreateLabel(7, 8, 417, 33, "mangres server by momar", false, GUIEditor.progressbar[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 25, 245, 9) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(6, 55, 416, 32, "قبل عمل اي شيء يجب اولاتحديد لاعب", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[2], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(6, 103, 416, 32, "عند سحب مخالفة تاكد ان لاعب ليس عنده مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[3], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[3], "center") GUIEditor.label[4] = guiCreateLabel(6, 159, 416, 32, "عندما تريد ان تضع للاعب مخالفة يجب عليك تجديد لاعب ثم دوس علي اعطاء مخالفة", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[4], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[4], "center") GUIEditor.label[5] = guiCreateLabel(5, 205, 416, 32, "قوانين: عدم اعطاء الاعبين اكثر من عشر مخالفات باليوم", false, GUIEditor.progressbar[1]) guiLabelSetColor(GUIEditor.label[5], 243, 81, 10) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[5], "center") GUIEditor.button[4] = guiCreateButton(242, 253, 181, 39, "عوده لي لوحة مخالفات", false, GUIEditor.progressbar[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA019F") BTN3_close2 = guiCreateButton(18, 255, 170, 39, "اغلاق الوحة تعليمات", false, GUIEditor.progressbar[1]) guiSetProperty(BTN3_close2, "NormalTextColour", "FFFA0000") GppWindow = guiCreateWindow(191, 156, 427, 290, "=[ لوحة مانجرس لاعطاء مخالفات وسحبها ]=", false) guiWindowSetSizable(GppWindow, false) guiSetVisible(GppWindow,false) guiSetProperty(GppWindow, "CaptionColour", "FFFF00CC") GUIEditor.edit[2] = guiCreateEdit(9, 22, 195, 31, "بــحــث ....", false, GppWindow) GUIEditor.button[1] = guiCreateButton(225, 64, 176, 51, "=[اعطاء مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.button[2] = guiCreateButton(212, 236, 203, 44, "✖ اغلاق لوحة", false, GppWindow) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "HoverTextColour", "FF990909") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFF2929") GUIEditor.button[3] = guiCreateButton(225, 120, 176, 51, "=[سحب مخالفة]=", false, GppWindow) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF01FD60") GUIEditor.button[5] = guiCreateButton(209, 179, 209, 45, "=[ تعليمات ]=", false, GppWindow) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF01FD60") GUIEditor.label[1] = guiCreateLabel(390, 24, 31, 28, "رتبه:", false, GppWindow) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.progressbar[2] = guiCreateProgressBar(221, 20, 169, 38, false, GppWindow) GUIEditor.label[2] = guiCreateLabel(11, 4, 147, 28, "Admin-EX", false, GUIEditor.progressbar[2]) guiLabelSetColor(GUIEditor.label[2], 254, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") -------------------------- ---Grid list ------------------------- addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor.gridlist[1] = guiCreateGridList(9, 55, 197, 226, false, GppWindow) guiGridListSetSelectionMode(GUIEditor.gridlist[1],2) local column = guiGridListAddColumn( GUIEditor.gridlist[1], "Player Name", 0.5 ) if ( column ) then for id, player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], row, column, getPlayerName(player), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, column, 0, 250, 154, 255 ) end addEventHandler ( "onClientGUIClick", GUIEditor.gridlist[1], click ) end end) function click () local playerName = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) guiSetText ( GUIEditor.edit[2], playerName ) end ---------------------------- --Show panel from command -------------------------- function showPanel () guiSetVisible (GppWindow, true) showCursor (true) playSound("open.mp3",false) end addEvent( "showPanel", true ) addEventHandler ( "showPanel", getRootElement(), showPanel) ------------------------ --Event to bindKey ------------------------ function show() if guiGetVisible(GppWindow) == true then guiSetVisible(GppWindow,false) showCursor(false) else guiSetVisible(GppWindow,true) showCursor(true) end end addEvent("show",true) addEventHandler("show",root,show) addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) ----------------------- --GetPermission --------------------- function GetPermission() triggerServerEvent ("OpenPanel", getLocalPlayer(), OpenPanel) end addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[2] then -- هنا يتحققق بأن الشيء اللي نبيه يشتغل عليه الحدث هو الزر حق الاغلاق guiSetVisible(GppWindow,false) showCursor(false) -- هنا يغلق اللوحة ويشيل المؤشر بعد مايتحقق من الشرط end -- نهاية end -- .. ) -- اقفال الحدث addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[5] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(Window2,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(GppWindow,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[4] then -- هنا يتحقق بأن الشيء اللي نبي الحدث يتطبق عليه هو الزر حق فتح لوحة رقم 2 guiSetVisible(GppWindow,true) showCursor(true) -- هنا يفتح لنا اللوحة guiSetVisible(Window2,false) -- إغلاق نافذة 1 end -- نهاية end -- .. ) -- إقفال function onGuiClick (button, state, absoluteX, absoluteY) if (source == BTN3_close2) then guiSetVisible (Window2, false) showCursor (false) elseif (source == GUIEditor.button[3]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent ("remove", getLocalPlayer(), target) elseif (source == GUIEditor.button[1]) then local name = guiGetText ( GUIEditor.edit[2] ) local target = getPlayerFromName(name) triggerServerEvent("Moderator", getLocalPlayer(), target) playSound("sec.wav",false) end end function nopsound () playSound("np.mp3",false) end addEvent( "nopsound", true ) addEventHandler ( "nopsound", getRootElement(), nopsound) function removedsound () playSound("removed.wav",false) end addEvent( "removedsound", true ) addEventHandler ( "removedsound", getRootElement(), removedsound) function list() guiGridListClear(GUIEditor.gridlist[1]) for id, players in ipairs (getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, getPlayerName(players), false, false) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, 0, 250, 154, 255 ) end end addEventHandler("onClientPlayerJoin", getRootElement(), list) addEventHandler("onClientPlayerQuit", getRootElement(), list) addEventHandler("onClientPlayerChangeNick", getRootElement(), list) سيرفر -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights -- * thanks to MR.S3D for helping me local rootElement = getRootElement() -------------------- ---bindKey i to open panel --only who in Console group can open this panel ------------------- addEventHandler("onPlayerJoin",root, function () bindKey(source,"i","down",show) ----- Change "i" to the key you want end) addEventHandler("onResourceStart",resourceRoot, function () for index, player in ipairs(getElementsByType("player")) do bindKey(player,"i","down",show) ----Change "i" to the key you want end end) function show(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup("Console")) then triggerClientEvent(thePlayer,"showPanel",thePlayer) else outputChatBox ("* GPP: You Don't Have Permission For This Command", source, 255, 0, 0, true) triggerClientEvent ( thePlayer,"nopsound", thePlayer ) end end ------------------------ --Give Admin.Sup,Mod,Remove ----------------------- addEvent("Moderator",true) function Moderator(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "Moderator" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given moderator permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("Moderator", getRootElement(), Moderator) addEvent("SuperModerator",true) function SuperModerator(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "SuperModerator" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given supermoderator permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("SuperModerator", getRootElement(), SuperModerator) addEvent("Admin",true) function Admin(target) local account = getPlayerAccount ( target ) local group = aclGetGroup ( "Admin" ) if ( group ) then aclGroupAddObject ( group, "user."..getAccountName ( account ) ) outputChatBox ( "GPP: '"..getAccountName(getPlayerAccount(target)).."' have been given admin permissions", source, 0, 255 ,0 ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("Admin", getRootElement(), Admin) addEvent("remove",true) function removee(target) local account = getPlayerAccount ( target ) if ( account ) then aclGroupRemoveObject (aclGetGroup("Moderator"), "user."..getAccountName ( account ) ) aclGroupRemoveObject (aclGetGroup("SuperModerator"), "user."..getAccountName ( account ) ) aclGroupRemoveObject (aclGetGroup("Admin"), "user."..getAccountName ( account ) ) outputChatBox ( "GPP: all permissons of '"..getAccountName(getPlayerAccount(target)).."' has been removed !", source, 255, 0 ,0 ) triggerClientEvent ( source,"removedsound", source ) else outputChatBox ( "No account name specified", source, 255, 100 ,100 ) end end addEventHandler("remove", getRootElement(), removee) ---------------------- --Command ---------------------- function OpenPanel ( player ) local player = player or source local accountname = getAccountName( getPlayerAccount( player ) ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then triggerClientEvent ( player,"showPanel", player ) else outputChatBox ("* GPP: You Don't Have Permission For This Command", player, 255, 0, 0, true) triggerClientEvent ( player,"nopsound", player ) end end addEvent( "OpenPanel", true ) addEventHandler ( "OpenPanel", getRootElement(), OpenPanel) addCommandHandler ( "gpp", OpenPanel ) function check() local accountname = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Console" )) then outputChatBox ("Type /gpp or press i to open give permissions panel", source, 255, 0, 0, true) end end addEventHandler("onPlayerLogin",getRootElement(),check ) -- * scripted by |S.s|SoRa -- * please don't remove my Copyrights مشكله هي لما اطغط اعطاء مخالفة مايعضي ولايسجب ليشذ ملاحظه انا طايفة في قروب ادمن والكونسل
×
×
  • Create New...