Jump to content

Mr-M3AND

Members
  • Posts

    312
  • Joined

  • Last visited

Everything posted by Mr-M3AND

  1. القسم الخطأ + افتح ملف admin > client > gui > admin_main حط هذا الكود بسطر 139 guiSetEnabled ( aTab2.Tab, false ) وبعدين روح لسطر 21 وحط هذا الكود addCommandHandler( "text", --- باي كلمة تبيها text هنا بدل كلمة function ( ) guiSetEnabled ( aTab2.Tab, true ) end )
  2. https://forum.multitheftauto.com/viewtopic.php?f=160&t=73697&p=681516&hilit
  3. شوف كودك اللي طرحته فوق الخطا بالتريقر باخر سطر 4 ونفس الشي بسطر 11 اللي هو guiGetText(GUIEditor.edit[1]) -- لليوزر guiGetText(GUIEditor.edit[2]) -- للباس والصحيح guiGetText(GUIEditor.edit[2]) -- لليوزر guiGetText(GUIEditor.edit[3]) -- للباس على كل حال بعطيك الاكواد وجربها -- Client -- GUIEditor = { button = {}, edit = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() malek505 = guiCreateWindow(138, 112, 769, 577, "× = [ Login / Register ] = ×", false) guiWindowSetSizable(malek505, false) guiSetAlpha(malek505, 1.00) guiSetProperty(malek505, "CaptionColour", "FF00A1FF") GUIEditor.label[1] = guiCreateLabel(214, 37, 312, 50, "×حيآإكم الله في سيرفر سعودي زومبي×\n×يجب عليك تسجيل لحف الوقت والفلوس واللفل×\n×شكرا لك على اختيار سيرفرنا×", false, malek505) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 245, 255, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(16, 46, 133, 47, " [ S.Z ]", false, malek505) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) GUIEditor.label[3] = guiCreateLabel(617, 47, 133, 47, " [ S.Z ]", false, malek505) guiSetFont(GUIEditor.label[3], "sa-header") guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) GUIEditor.edit[1] = guiCreateEdit(9, 104, 751, 15, "", false, malek505) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.label[4] = guiCreateLabel(180, 209, 60, 15, "UserName", false, malek505) guiSetFont(GUIEditor.label[4], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(250, 209, 240, 17, "", false, malek505) GUIEditor.label[5] = guiCreateLabel(180, 262, 60, 15, "PassWord", false, malek505) guiSetFont(GUIEditor.label[5], "default-bold-small") GUIEditor.edit[3] = guiCreateEdit(250, 262, 240, 17, "", false, malek505) GUIEditor.button[1] = guiCreateButton(97, 369, 163, 28, "Login .. =>", false, malek505) GUIEditor.button[2] = guiCreateButton(307, 369, 163, 28, "<=..Play Gust .. =>", false, malek505) GUIEditor.button[3] = guiCreateButton(528, 369, 163, 28, "<= .. Register", false, malek505) GUIEditor.edit[4] = guiCreateEdit(9, 440, 750, 15, "", false, malek505) GUIEditor.label[6] = guiCreateLabel(231, 518, 269, 18, "قال الله تعال \"{SMILIES_PATH}/icon_sad.gif\" alt=\"\" title=\"Sad\" />( مَا يَلْفِظُ مِنْ قَوْلٍ إِلَّا لَدَيْهِ رَقِيبٌ عَتِيدٌ))", false, malek505) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onLogin",getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]) ) elseif source == GUIEditor.button[2] then guiSetVisible(malek505,false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[3] then triggerServerEvent("onReg",getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3])) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(malek505,false) showCursor(false) showChat(true) fadeCamera(true,5) end ) -- Server -- addEvent("onLogin", true) addEventHandler("onLogin",root, function (user, pass) local account = getAccount ( user, pass ) local acc = getPlayerAccount(source) if (isGuestAccount(acc)) then if (account) then logIn(source,account,pass) outputChatBox ( "You Successfully Logged in !", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) else outputChatBox ( "Wrong username or password !", source, 255, 0, 0 , true) end else outputChatBox ( "You Are Already Logged in !", source, 255, 255, 0 , true ) triggerClientEvent (source, "Hidewindow", source) end end ) addEvent("onReg", true) addEventHandler("onReg",root, function ( user, pass ) local account = getAccount ( user, pass ) local acc = getPlayerAccount(source) if (isGuestAccount(acc)) then if not (account) then addAccount(user,pass) outputChatBox ( "You have Successfully Registered !", source, 255, 255, 0 , true) else outputChatBox ( "This account allready exists !", source, 255, 255, 0 , true) end else outputChatBox ( "Register Error !", source, 255, 0, 0 , true) triggerClientEvent (source, "Hidewindow", source) end end )
  4. بالكلنت بدل سطر 4 بهذا triggerServerEvent("onLogin",getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]) وبدل سطر 11 بهذا triggerServerEvent("onReg",getLocalPlayer(),guiGetText(GUIEditor.edit[2]),guiGetText(GUIEditor.edit[3]) )
  5. القسم الخطاء نفس موضوعك السابق القسم الصحيح هنا https://forum.multitheftauto.com/viewforum.php?f=160
  6. Client function OpenWin() if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey(getElementData ( resourceRoot, "bindKey" ), "down", OpenWin) Server addEventHandler ( "onResourceStart", resourceRoot, function ( ) setElementData ( resourceRoot, "bindKey", get ( "bind" ) ) end ) meta '*bind' value='F3' />
  7. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateStaticImage(252,197,330,358, "1.png", false ) GUIEditor_Grid[1] = guiCreateGridList(15,26,147,317,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"players",0.85) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Label[1] = guiCreateLabel(168,40,34,24,"Name:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(168,106,55,16,"Amuoont:",false,GUIEditor_Window[1]) Name = guiCreateEdit(204,34,113,33,"",false,GUIEditor_Window[1]) guiSetFont(Name,"default-bold-small") amoo = guiCreateEdit(224,103,92,26,"",false,GUIEditor_Window[1]) guiSetFont(amoo,"default-bold-small") GUIEditor_Button[1] = guiCreateButton(187,169,118,53,"Sand",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(166,323,50,17,"By:xb0",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") addEventHandler("onClientResourceStart", resourceRoot, function () if (column) then for id,Item in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) guiGridListSetItemColor ( GUIEditor_Grid[1], row, column, 0, 0, 255 ) end end end)
  8. GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateStaticImage(252,197,330,358, "1.png", false ) GUIEditor_Grid[1] = guiCreateGridList(15,26,147,317,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"players",0.85) for i = 1, 1 do guiGridListAddRow(GUIEditor_Grid[1]) end GUIEditor_Label[1] = guiCreateLabel(168,40,34,24,"Name:",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(168,106,55,16,"Amuoont:",false,GUIEditor_Window[1]) Name = guiCreateEdit(204,34,113,33,"",false,GUIEditor_Window[1]) guiSetFont(Name,"default-bold-small") amoo = guiCreateEdit(224,103,92,26,"",false,GUIEditor_Window[1]) guiSetFont(amoo,"default-bold-small") GUIEditor_Button[1] = guiCreateButton(187,169,118,53,"Sand",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(166,323,50,17,"By:xb0",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,0,0) guiSetFont(GUIEditor_Label[3],"default-bold-small") addEventHandler("onClientResourceStart", resourceRoot, function () if (column) then for id,Item in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) end end end)
  9. addEventHandler("onClientResourceStart", resourceRoot, function () if (column) then for id,Item in ipairs(getElementsByType("player")) do local row = guiGridListAddRow (GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1],row,column,string.gsub(getPlayerName(Item),'#%x%x%x%x%x%x',''),false,false) end end end)
  10. GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.27, 0.14, 0.44, 0.78, "Panel Shop", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 0.78) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFA6C04") GUIEditor.staticimage[1] = guiCreateStaticImage(0.05, 0.06, 0.34, 0.17, "infernus.png", true, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(0.05, 0.25, 0.35, 0.08, "Infernus", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFA6C04") GUIEditor.staticimage[2] = guiCreateStaticImage(0.05, 0.38, 0.34, 0.17, "turismo.png", true, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(0.04, 0.71, 0.34, 0.13, "sanchez.png", true, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.05, 0.57, 0.35, 0.08, "Turismo", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFA6C04") GUIEditor.button[3] = guiCreateButton(0.05, 0.86, 0.35, 0.08, "Sanchez", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "sa-header") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFA6C04") GUIEditor.label[1] = guiCreateLabel(0.05, 0.34, 0.34, 0.04, " $15000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 47, 254, 0) GUIEditor.label[2] = guiCreateLabel(0.07, 0.66, 0.30, 0.04, " $10000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 47, 254, 0) GUIEditor.label[3] = guiCreateLabel(0.06, 0.94, 0.30, 0.04, " $8000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 47, 254, 0) GUIEditor.staticimage[4] = guiCreateStaticImage(0.63, 0.06, 0.34, 0.17, "m4.png", true, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(0.63, 0.25, 0.35, 0.08, "M4", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "sa-header") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFA6C04") GUIEditor.label[4] = guiCreateLabel(0.63, 0.35, 0.34, 0.04, " $1000", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 47, 254, 0) GUIEditor.staticimage[5] = guiCreateStaticImage(0.63, 0.40, 0.34, 0.17, "sniper.png", true, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(0.63, 0.57, 0.34, 0.08, "Sniper", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "sa-header") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFA6C04") GUIEditor.label[5] = guiCreateLabel(0.66, 0.66, 0.30, 0.04, " $500", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 47, 254, 0) GUIEditor.staticimage[6] = guiCreateStaticImage(0.63, 0.70, 0.34, 0.13, "tec-9.png", true, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(0.63, 0.86, 0.34, 0.08, "Tec-9", true, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "sa-header") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFA6C04") GUIEditor.label[6] = guiCreateLabel(0.66, 0.94, 0.30, 0.04, " $800", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 47, 254, 0) GUIEditor.label[7] = guiCreateLabel(105, 90, 246, 42, "Text", false, GUIEditor.window[1]) end ) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[7],false) xN,xY = x + 2 , y if xN >= 600 then xN = -200 guiLabelSetColor(GUIEditor.label[7],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[7],xN,xY,false) end ) function Jose () guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor( not isCursorShowing() ) end bindKey ("M","down",Jose ) function panel() if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler("onClientGUIClick",root,panel )
  11. شوف هذا الموضوع نفس طلبك https://forum.multitheftauto.com/viewtopic.php?f=160&t=85084&p=771038&hilit=%D9%85%D9%86+%D8%A7%D9%84%D9%8A%D8%B3%D8%A7%D8%B1+%D8%A7%D9%84%D9%89+%D8%A7%D9%84%D9%8A%D9%85%D9%8A%D9%86#p771038
  12. GUIEditor.button[6] = guiCreateButton(0.08, 0.70, 0.20, 0.15, "$50000", true, GUIEditor.window[1]) addEventHandler ("onClientGUIClick",root, function () if (source == GUIEditor.button[6]) then playSoundFrontEnd (46) end end )
  13. addEventHandler ("onClientGUIClick",root, function () if (source == اسم الزر) then playSoundFrontEnd ( 16 ) end end )
  14. GUIEditor.cancelar = guiCreateButton(157, 397, 127, 28, " اغلاق", false, GUIEditor.window) setTimer(function() guiSetProperty(GUIEditor.cancelar, "NormalTextColour", string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 400, 0)
  15. + source بسطر 5 زايد كلمة spawnPlayer(source, x, y, z) source <---
  16. ضيف المود لقروب ادمن
×
×
  • Create New...