Jump to content

Search the Community

Showing results for tags 'مساعدة في كود'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. المشكلة سويت اف3 حق سيارات و سويت لها لوحة تحكم سيارات الخ مشكلة ابي اجلب سيارات اللاعب محدد في gridlist ابي سيارات اللاعب محدد الي اضغط عليه يجي سيارته مثل قلت و اسمها و سعرها الي موجوده عنده اف3 ماتجي local EditID = "ID" local EdiPrice = "Price" ------#Manager GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() WindowManager = guiCreateWindow((screenW - 600) / 2, (screenH - 450) / 2, 585, 457, "Give Vehicles Panel", false) guiWindowSetSizable(WindowManager, false) guiSetVisible(WindowManager, false) guiSetAlpha(WindowManager, 1.00) GridlistPlayers = guiCreateGridList(10, 47, 166, 400, false, WindowManager) guiGridListAddColumn(GridlistPlayers, "Players", 0.9) GridlistPlayerVehicles = guiCreateGridList(183, 243, 392, 204, false, WindowManager) guiGridListAddColumn(GridlistPlayerVehicles, "Vehicles", 0.5) guiGridListAddColumn(GridlistPlayerVehicles, "Cost", 0.5) ButtonGivePlayer = guiCreateButton(186, 125, 126, 42, "Give Player", false, WindowManager) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") ButtonGiveAllPlayers = guiCreateButton(322, 125, 126, 42, "Give All Players", false, WindowManager) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") ButtonSetVehicleColor = guiCreateButton(403, 65, 126, 42, "Set Vehicle Color", false, WindowManager) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") ButtonTakePlayerVehicle = guiCreateButton(322, 191, 126, 42, "Take Player Vehicle", false, WindowManager) ButtonCloseManagerPanel = guiCreateButton(529, 29, 25, 22, "X", false, WindowManager) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") EditVehicleID = guiCreateEdit(190, 71, 75, 26, EditID, false, WindowManager) EditVehiclePrice = guiCreateEdit(275, 71, 118, 26, EdiPrice, false, WindowManager) EditSearch = guiCreateEdit(12, 24, 139, 19, "", false, WindowManager) ImageSearch = guiCreateStaticImage(153, 22, 23, 21, ":admin/client/images/search.png", false, WindowManager) LabelVehicleID = guiCreateLabel(214, 46, 51, 15, "ID", false, WindowManager) guiSetFont(LabelVehicleID, "default-bold-small") guiLabelSetColor(LabelVehicleID, 232, 204, 14) LabelVehiclePrice = guiCreateLabel(311, 45, 72, 16, "Price", false, WindowManager) guiSetFont(LabelVehiclePrice, "default-bold-small") guiLabelSetColor(LabelVehiclePrice, 232, 204, 14) end ) function loadAllPlayers() guiGridListClear(GridlistPlayers) for _,v in ipairs(getElementsByType("player")) do local Row = guiGridListAddRow(GridlistPlayers) local Team = getPlayerTeam(v) if not Team then r, g, b = 255, 255, 255 else r, g, b = getTeamColor(getPlayerTeam(v)) end guiGridListSetItemText(GridlistPlayers, Row, 1, getPlayerName(v), false, false) guiGridListSetItemColor(GridlistPlayers, Row, 1, r, g, b) end end function getPlayerVehicles() local data = getElementData(localPlayer, "VehicleInfo") if data then guiGridListClear(GridlistPlayerVehicles) for i, data in ipairs (data) do local carName = getVehicleNameFromModel(data["Model"]) local ID = data["ID"] local Cost = data["Cost"] local HP = math.floor(data["HP"]) local PreCost = math.ceil(Cost*.9*HP/100/10) local Row = guiGridListAddRow(GridlistPlayerVehicles) guiGridListSetItemText(GridlistPlayerVehicles, row, 1, carName, false, true) guiGridListSetItemData(GridlistPlayerVehicles, row, 1, ID) guiGridListSetItemText(GridlistPlayerVehicles, row, 2, PreCost, false, true) guiGridListSetItemColor(GridlistPlayerVehicles, Row, 1, 255, 255, 0) guiGridListSetItemColor(GridlistPlayerVehicles, Row, 2, 255, 0, 0) end end end addEvent ( 'ManagerPanel:OpenWindow', true ) addEventHandler ( 'ManagerPanel:OpenWindow', root, function () guiSetVisible ( WindowManager, true ) showCursor ( true ) loadAllPlayers() end) addEventHandler("onClientGUIClick",guiRoot, function () if source == ButtonCloseManagerPanel then guiSetVisible(WindowManager,false) showCursor(false) elseif (source == EditVehicleID) then if (guiGetText(source) == EditID) then guiSetText(source, "") end elseif (source == EditVehiclePrice) then if (guiGetText(source) == EdiPrice) then guiSetText(source, "") end elseif (source == ButtonGivePlayer) then local vehicle = guiGetText(EditVehicleID) local price = guiGetText(EditVehicleID) local Name = getPlayerName(localPlayer) local r1, g1, b1, r2, g2, b2 = getVehicleColor(vehicle, true) triggerServerEvent("GivePlayerVehicle", localPlayer, vehicle, price, r1, g1, b1, r2, g2, b2) elseif source == ButtonSetVehicleColor then openColorPicker() elseif source == ButtonTakePlayerVehicle then local row = guiGridListGetSelectedItem( GridlistPlayerVehicles ) triggerServerEvent("TakePlayerVehicle", localPlayer, ID) end end) addEventHandler("onClientGUIClick", guiRoot, function() local row = guiGridListGetSelectedItem( GridlistPlayers ) local playerName = guiGridListGetItemText( GridlistPlayers, row, 1 ) local wc = getPlayerFromName(playerName) if source == GridlistPlayers then if row and row ~= -1 then getPlayerVehicles() else exports["guimessages"]:outputClient("#FF0000Please select a player from the players list !", 255, 0, 0) end end end )
  2. سلام عليكم .. معكم كنترول ابغئ مساعدة بسيطة بتفك لي ازمة كبيرة عشان قاعد اشتغل علئ سكربت اتمنئ لو في خطا ف نشر الموضوع يعلمني الطريقة زمان عن المنتدئ
  3. السلام عليكم عندي مشكلة تواجهني من زمان ابي لما واحد يضغط على زر يجب احداثياته ويصير لما يموت ينقله للمكان الي حفظه وشكرا اطرحو الاكواد المستخدمة وانا احوال اسويها وشكرااا
×
×
  • Create New...