Jump to content

Abdul KariM

Members
  • Posts

    2,711
  • Joined

  • Days Won

    42

Everything posted by Abdul KariM

  1. مافهمت عليك لاكن في بارتمنز في حدث "onPlayerChat" الي هو التايب في عندك 3 انواع من التايب راجع الويكي وشوفها
  2. يعطيك العافية على السكربت والاهداء https://forum.multitheftauto.com/viewtopic.php?f=161&t=98378&p=883695#p883695 تقريبا نفس الفكرة =<
  3. ماتقدر تجيب اسم الاعب , يمكن تقدر بالوب البارتمنز الاول هو السكربت الي اشتغل فقط
  4. addCommandHandler -- for all functions ! --1-- getPlayerTeam getTeamColor setVehicleColor --2-- getPlayersInTeam for -- loop players team getElementPorisiot -- for source setElementPosition -- for players in the team --3-- getPlayersInTeam for -- loop players team setElementModel -- set skin for the players + getTeamFromName
  5. "onResourceStop" Source The source of this event is the root element in the resource that started. السورس حق الحدث , هو السكربت الي اشتغل كيف تجيب اسم الاعب من السكربت الي اشتغل ؟
  6. المفروض انت تجربه قبل لاتقول لنا , حنا نجرب عنك يعني ؟
  7. local Table = { } -- Table سوينا جدول بأسم addCommandHandler("C_o", -- امر كتابة باف8 function ( p , _ , iD ) -- وظيفة مع تعريف الاعب , وتخطي الكوماند , وتعريف الايدي if ( iD ) and tonumber ( iD ) then -- نتحقق ان الايدي رقم فقط if #Table ~= 0 and #Table == 3 then -- هنا تحققت ان الجدول ماهب فاضي , وتتحقت ان الجدول يساوي 3 , طبعا هذي كيف راح اشرحها تحت Num = #Table - 2 -- هنا نقصت من الجدول 2 عشان يجيب اول اوبجكت سويته destroyElement ( Table [ Num ] ) -- هنا حذفت الاوبجكت الاول table.remove ( Table, Num ) -- هنا حذفت رقم الاوبجكت الى حذفنها , عشان مايصير اخطاء end -- ايند لتحقق من الجدول انه موب فاضي ... الخ Pos = { getElementPosition ( p ) } -- هنا جبت احداثيات الاعب الي كتب الكلمة Object = createObject ( iD , Pos[1] , Pos[2] + 2 , Pos[3] ) -- سوينا اوبجكت بالايدي الي كتبته باف8 , وباحداثيات الاعب table.insert ( Table , Object ) -- حطيت الاوبجكت بالجدول , طبعا هنا راح يحط اوبجكت لين مايوصل 3 ويوقف ومن بعدها يحذف اول واحد سويته ويضيف واحد بداله -- وفوق تحققت ان الجدول مماهب فاضي وانه يساوي 3 , عشان يحذف الاولى ويضيف واحد بداله end -- ايند للتحقق , ان الايدي رقم end -- ايند فنكشن ) ; -- قوس اغلاق الامر اي شي منتب فاهمه تفضل قوله
  8. يفضل تسوي متغير للماركر ويوم تجي تكتب الكلمة تتحقق من وجوده عشان مايكرر الماركرات , واستخدم التيبل اذا تبي تسوي ماركر لواحد كتب الكلمة
  9. ^ هريس + اطرح اكوادك كاملة ي صاحب الموضوع
  10. local Table = { } addCommandHandler("C_o", function ( p , _ , iD ) if ( iD ) and tonumber ( iD ) then if #Table ~= 0 and #Table == 3 then Num = #Table - 2 destroyElement ( Table [ Num ] ) table.remove ( Table, Num ) end Pos = { getElementPosition ( p ) } Object = createObject ( iD , Pos[1] , Pos[2] + 2 , Pos[3] ) table.insert ( Table , Object ) end end ) ; C_o اكتب باف8 مسافة ايدي الاوبجكت خليته لك على 3 يعني تسوي فوق 3 راح يحذف الاول وينزل واحد بداله وكهذا
  11. يب بالضبط , احذف الكود كنت اجرب عليه + العفو
  12. --[[ changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function ' GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(209, 140, 393, 361, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.gridlist[1] = guiCreateGridList(17, 31, 362, 238, false, GUIEditor.window[1]) col = guiGridListAddColumn(GUIEditor.gridlist[1], "players", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 285, 361, 24, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(123, 319, 136, 24, "", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") changeGridListItemToPlayersName ( GUIEditor.gridlist[1], col ) bindKey("F5","down",function() guiSetVisible ( GUIEditor.window[1] , not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing ( ) ) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then if GUIEditor.edit[1] == "" then return end local row = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if row and row ~= -1 then local Player = guiGridListGetItemText ( GUIEditor.gridlist[1] , row, 1 ) triggerServerEvent ("setAccPassword", localPlayer , Player , guiGetText ( GUIEditor.edit[1] ) ) end end end ) --]] open = {} Close = { Button = {} } Spectator = { Note = {} } RemoveAcc = { Button = {}, Note = {} } Line2 = { Label = {} } Management = {} Line = { Label = {} } PlayerSerial = { Note = {} } SetPassword = { Note = {} } ChangePassword = { Button = {} } PlayerAccount = { Note = {} } Players = { Grid = {} } PlayerMoney = { Note = {} } AccManage = { Label = {} } Money = { Label = {} } Kick = { Button = {}, Note = {} } Slap = { Button = {}, Note = {} } Spying = { Button = {} } Password = { Edit = {} } Ping = { Label = {} } Statur = { Label = {} } Search = { Edit = {}, Image = {} } AdminManage = { Label = {} } PlayerPing = { Note = {} } Serial = { Label = {} } Account = { Label = {} } Management.Window = guiCreateWindow(0.25, 0.20, 0.50, 0.60, "#-| Management System |-#", true) guiWindowSetSizable(Management.Window, false) guiSetAlpha(Management.Window, 1.00) guiSetVisible(Management.Window, false) Players.Grid.Window = guiCreateGridList(0.01, 0.11, 0.30, 0.86, true, Management.Window) guiGridListSetSelectionMode ( Players.Grid.Window, 0 ) guiGridListAddColumn(Players.Grid.Window, "# Players ...", 0.9) Search.Edit.Window = guiCreateEdit(0.01, 0.06, 0.26, 0.04, "Search ...", true, Management.Window) Search.Image.Window = guiCreateStaticImage(193, 27, 22, 18, ":admin/client/images/search.png", false, Management.Window) guiSetProperty(Search.Image.Window, "ImageColours", "tl:FF22F500 tr:FF22F500 bl:FF22F500 br:FF22F500") PlayerSerial.Note.Window = guiCreateLabel(0.32, 0.11, 0.13, 0.05, "* Player Serial :", true, Management.Window) guiSetFont(PlayerSerial.Note.Window, "default-bold-small") guiLabelSetColor(PlayerSerial.Note.Window, 0, 224, 245) guiLabelSetVerticalAlign(PlayerSerial.Note.Window, "center") Serial.Label.Window = guiCreateLabel(0.45, 0.11, 0.53, 0.05, "", true, Management.Window) guiSetFont(Serial.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(Serial.Label.Window, "center") PlayerAccount.Note.Window = guiCreateLabel(0.32, 0.16, 0.15, 0.05, "* Player Account :", true, Management.Window) guiSetFont(PlayerAccount.Note.Window, "default-bold-small") guiLabelSetColor(PlayerAccount.Note.Window, 255, 23, 203) guiLabelSetVerticalAlign(PlayerAccount.Note.Window, "center") Account.Label.Window = guiCreateLabel(0.48, 0.16, 0.51, 0.05, "", true, Management.Window) guiSetFont(Account.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(Account.Label.Window, "center") PlayerMoney.Note.Window = guiCreateLabel(0.32, 0.22, 0.14, 0.05, "* Player Money :", true, Management.Window) guiSetFont(PlayerMoney.Note.Window, "default-bold-small") guiLabelSetColor(PlayerMoney.Note.Window, 246, 254, 23) guiLabelSetVerticalAlign(PlayerMoney.Note.Window, "center") Money.Label.Window = guiCreateLabel(0.46, 0.22, 0.52, 0.05, "", true, Management.Window) guiSetFont(Money.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(Money.Label.Window, "center") PlayerPing.Note.Window = guiCreateLabel(0.32, 0.28, 0.12, 0.05, "* Player Ping :", true, Management.Window) guiSetFont(PlayerPing.Note.Window, "default-bold-small") guiLabelSetColor(PlayerPing.Note.Window, 38, 254, 22) guiLabelSetVerticalAlign(PlayerPing.Note.Window, "center") Ping.Label.Window = guiCreateLabel(0.44, 0.28, 0.52, 0.05, "", true, Management.Window) guiSetFont(Ping.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(Ping.Label.Window, "center") Statur.Label.Window = guiCreateLabel(0.32, 0.06, 0.13, 0.04, "#|* Status *|#", true, Management.Window) guiSetFont(Statur.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(Statur.Label.Window, "center") AdminManage.Label.Window = guiCreateLabel(0.32, 0.38, 0.20, 0.05, "#|* Admin Manage *|#", true, Management.Window) guiSetFont(AdminManage.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(AdminManage.Label.Window, "center") Line.Label.Window = guiCreateLabel(0.32, 0.34, 0.67, 0.03, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", true, Management.Window) guiSetFont(Line.Label.Window, "default-bold-small") guiLabelSetColor(Line.Label.Window, 254, 21, 21) guiLabelSetHorizontalAlign(Line.Label.Window, "center", false) guiLabelSetVerticalAlign(Line.Label.Window, "center") Spectator.Note.Window = guiCreateLabel(0.32, 0.45, 0.11, 0.05, "* Spectator :", true, Management.Window) guiSetFont(Spectator.Note.Window, "default-bold-small") guiLabelSetColor(Spectator.Note.Window, 254, 21, 21) guiLabelSetVerticalAlign(Spectator.Note.Window, "center") Spying.Button.Window = guiCreateButton(0.44, 0.45, 0.22, 0.05, "# Spying the player ~", true, Management.Window) guiSetFont(Spying.Button.Window, "default-bold-small") guiSetProperty(Spying.Button.Window, "NormalTextColour", "FFFF1D1D") Kick.Note.Window = guiCreateLabel(0.32, 0.52, 0.12, 0.05, "* Kick player :", true, Management.Window) guiSetFont(Kick.Note.Window, "default-bold-small") guiLabelSetColor(Kick.Note.Window, 61, 255, 29) guiLabelSetVerticalAlign(Kick.Note.Window, "center") Kick.Button.Window = guiCreateButton(0.44, 0.52, 0.22, 0.05, "# Kick the player ~", true, Management.Window) guiSetFont(Kick.Button.Window, "default-bold-small") guiSetProperty(Kick.Button.Window, "NormalTextColour", "FFFFFFFF") Slap.Note.Window = guiCreateLabel(0.32, 0.59, 0.12, 0.05, "* Slap player :", true, Management.Window) guiSetFont(Slap.Note.Window, "default-bold-small") guiLabelSetColor(Slap.Note.Window, 5, 46, 255) guiLabelSetVerticalAlign(Slap.Note.Window, "center") Slap.Button.Window = guiCreateButton(0.44, 0.59, 0.22, 0.05, "# Slap the player ~", true, Management.Window) guiSetFont(Slap.Button.Window, "default-bold-small") guiSetProperty(Slap.Button.Window, "NormalTextColour", "FFFFFFFF") Line2.Label.Window = guiCreateLabel(0.32, 0.65, 0.67, 0.03, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", true, Management.Window) guiSetFont(Line2.Label.Window, "default-bold-small") guiLabelSetColor(Line2.Label.Window, 254, 21, 21) guiLabelSetHorizontalAlign(Line2.Label.Window, "center", false) guiLabelSetVerticalAlign(Line2.Label.Window, "center") AccManage.Label.Window = guiCreateLabel(0.32, 0.69, 0.23, 0.05, "#|* Account Manange *|#", true, Management.Window) guiSetFont(AccManage.Label.Window, "default-bold-small") guiLabelSetVerticalAlign(AccManage.Label.Window, "center") SetPassword.Note.Window = guiCreateLabel(0.32, 0.75, 0.21, 0.04, "* Set Account Password :", true, Management.Window) guiSetFont(SetPassword.Note.Window, "default-bold-small") guiLabelSetColor(SetPassword.Note.Window, 4, 252, 255) guiLabelSetVerticalAlign(SetPassword.Note.Window, "center") Password.Edit.Window = guiCreateEdit(0.54, 0.75, 0.26, 0.04, "Password ...", true, Management.Window) ChangePassword.Button.Window = guiCreateButton(0.80, 0.75, 0.18, 0.04, "# Change ~", true, Management.Window) guiSetFont(ChangePassword.Button.Window, "default-bold-small") guiSetProperty(ChangePassword.Button.Window, "NormalTextColour", "FFFFFFFF") RemoveAcc.Note.Window = guiCreateLabel(0.32, 0.80, 0.23, 0.04, "* Remove Player Account :", true, Management.Window) guiSetFont(RemoveAcc.Note.Window, "default-bold-small") guiLabelSetColor(RemoveAcc.Note.Window, 4, 252, 255) guiLabelSetVerticalAlign(RemoveAcc.Note.Window, "center") RemoveAcc.Button.Window = guiCreateButton(0.56, 0.80, 0.18, 0.04, "# Remove ~", true, Management.Window) guiSetFont(RemoveAcc.Button.Window, "default-bold-small") guiSetProperty(RemoveAcc.Button.Window, "NormalTextColour", "FFFFFFFF") Close.Button.Window = guiCreateButton(0.91, 0.94, 0.07, 0.04, "X", true, Management.Window) guiSetFont(Close.Button.Window, "default-bold-small") guiSetProperty(Close.Button.Window, "NormalTextColour", "FFFF0303") addEventHandler("onClientGUIChanged",root, function () if ( source == Search.Edit.Window ) then local text = string.upper(guiGetText(Search.Edit.Window)) if ( text == "" ) then addPlayers() else guiGridListClear(Players.Grid.Window) for i,v in ipairs(getElementsByType("player")) do local name = string.upper(getPlayerName(v)) if string.find(name,text) then local row = guiGridListAddRow(Players.Grid.Window) guiGridListSetItemText(Players.Grid.Window,row,1,getPlayerName(v),false,false) else end end end end end ) addEvent( 'putINFO', true )
  13. ترا مجربه وشغال , اطرح اكوادك كاملة كلينت وسيرفر ><
  14. هريس addEvent( 'setAccPassword', true ) addEventHandler( 'setAccPassword', root, function( getitem , getPassword ) playerSource = getPlayerFromName( getitem ) if playerSource then playerAccount = getPlayerAccount ( playerSource ) if ( isGuestAccount ( playerAccount ) ) then return end setAccountPassword ( playerAccount, getPassword ) end end ) ; مجربه وشغال , ماشتغل اطرح اكوادك كاملة
  15. رح جرب انا جربتها من زمان ماضبطت وسألت كذا مبرمج كبير وجربتها قبل شوي بعد م ضبطت GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(281, 197, 228, 177, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.button[1] = guiCreateButton(70, 70, 74, 30, "Give Health", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") bindKey("F5","down",function() guiSetVisible ( GUIEditor.window[1] , not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing ( ) ) end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then setElementHealth ( getLocalPlayer ( ) , 100 ) end end ) توني مجربه وعطاه ؟ تأكد من الميتا حقك
  16. ممكن تصور لنا السيت اب وانت فاتح المنتدى ؟
  17. 1615 سطر بالفري روم ملف الكلينت او ابحث عن showMap احذف الكود واستبدل ذا به function showMap() if isWindowOpen(wndSetPos) then return end createWindow(wndSetPos) showCursor(true) end addCommandHandler("Show_Map",showMap) function closeMap () closeWindow(wndSpawnMap) closeWindow(wndSetPos) showCursor(false) end addCommandHandler("Close_Map",closeMap) مثال على اللوحة GUIEditor = { button = {}, window = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 314) / 2, (screenH - 236) / 2, 314, 236, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.button[1] = guiCreateButton(71, 60, 166, 32, "[ Show Map ]", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(71, 148, 166, 32, "[ Close Map ]", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") bindKey("F5","down",function() guiSetVisible ( GUIEditor.window[1] , not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing ( ) ) end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[1] then executeCommandHandler("Show_Map") elseif source == GUIEditor.button[2] then executeCommandHandler("Show_Map") end end ) بالتوفيق
  18. شوف ذا الموضوع , يجيب لك فبس الاعب https://forum.multitheftauto.com/viewtopic.php?f=160&t=49933&p=489161&hilit=%D9%81%D8%A8%D8%B3+%D8%A7%D9%84%D8%A7%D8%B9%D8%A8#p489161
  19. هل تعلم ان اكبر سراق مشاريع هو مصطفى سعدي
  20. اعتقد ما قال شي غلط عشين تسبه و اذا الموضوع ما عجبك ولا يلي كاتبه ما عجبك تقدر ما تدخل و ما تعلق __________ كلام جميل جداً بس يا ريت تغير اسم الموضوع هههههههههههههههه , فاهم الوضع غلط اول ماسوى الموضوع كان كاتب فيه خلاص انقلع ورد عليه كلاسيك بذا الكلام وبيده حق , والحين غير محتوى الموضوع ههههههههههه
×
×
  • Create New...