Jump to content

jakson

Members
  • Posts

    146
  • Joined

  • Last visited

Everything posted by jakson

  1. ممكن تعطيني مثال ؟ شفت الامثله الي موجوده علي الويكي كلها و ما فهمت منها شيئ
  2. هلا شباب كيفكم انشاء الله بخير كنت ابي حد يساعدني في سكريبت يخلي لو شخص كتب كلمه مثلا زي هلا تتكتب في المين شات ب اسم تاني يعني لما الاعب يكتب هلا في الشات يتنكت هاي بدي اسويها في عدم نشر و مشكورين
  3. للاسف لم استخدمها بس علي حد علمي انه يستخدم فقط في تصحيح النصوص ولا ينصحون ب استخدامه بشكل دائم
  4. لا اخي هذا يحدث كل شوي الاموال في السكور بورد يعني منغيره تصير الاموال 0 فل سكور بورد ما عارف كيف اوصلهالك و هذا معناه انه يجيب فلوس للاعب في التاب فا عندك حل لي نحزف بيه الاق الي بل فنكشن؟
  5. هلا شباب كنت مسوي كود عشان يجيب للاعب المال حقه فل سكور بورد وسويته و اشتغل ولاكن بعرضلكم كود الان يجيب للاعب لاق لما يموت فا ياريت لو حد يساعدي يجد لي حل انو يساعدني في كود تاني او يقلي ايش الي بيجيب لاق فيه setTimer(function() for i, v in ipairs ( getElementsByType ( 'player' ) ) do local money = getPlayerMoney(v) or 0 local newValue = convertNumber(money).."$" if newValue ~= getElementData(v,"Money") then setElementData(v,"Money", newValue) end end end, 100,0)
  6. السلام عليكم شباب عندي مشكله لما الاعب يدوس كليك يمين بل موس و التاب يضرب بل سلاح كيف الغيه يعني لما الاعب يدوس كليك يمين و التاب في نفس الوقت السلاح لا يضرب
  7. انت تستخدم علم البلد في السكوربورد ؟ انا استخدم علم البلد ولا يخفي معي العلم
  8. للاسف لا يعمل
  9. بفتح الكونسل بنل و بكتب الكومند unknown
  10. للاسف لا يعمل
  11. السلام عليكم شباب.. كيف اسوي ازا كتب شخص كومند مثلا unkown يخلي علم بلده في التاب غير معروف
  12. و وين ال end الي نقصاني؟ مشكله ظهرت اني لما اجي اشفر gui يظهرلي مشكله ERROR Could not compile file
  13. هلا شباب كيف حالكم انشاء الله بخير كان عندي مشكله في gui مو راضيه تفتح فا ياريت لو حد يقدر يساعدني فيها كود GUIEditor = { button = {}, window = {}, edit = {}, label = {} } addEvent("showGarage", true) addEventHandler("showGarage", root, function(id, zn, onam, sale, pric, gpk, isown, mapb) gpk2 = gpk setElementData(gpk2, "USE", true) local x, y, z = getElementPosition(gpk2) lcol = createColTube(x, y, z-1, 1, 2) requestHotkey("h", "open garage panel", lcol, id, zn, onam, sale, pric, gpk, isown, mapb) addEventHandler("onClientHotkey", localPlayer, showGarage) addEventHandler("onClientColShapeLeave", lcol, function (p) if p == localPlayer then setElementData(gpk2, "USE", false) removeEventHandler("onClientHotkey", localPlayer, showGarage) destroyElement(source) end end) end ) function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function hideGui() if isElement(GUIEditor.window[1]) then destroyElement(GUIEditor.window[1]) showCursor(false) setElementData(gpk2, "USE", false) setElementFrozen(localPlayer, false) destroyElement(lcol) removeEventHandler("onClientHotkey", localPlayer, showGarage) end end addEvent("hideGarage", true) addEventHandler("hideGarage", root, hideGui) function showGarage(data) local id = data[1] local zn = data[2] local sale = data[3] local pric = data[4] local gpk = data[5] local isown = data[6] local mapb = data[7] gpk2 = gpk local screenW, screenH = guiGetScreenSize() if not isCursorShowing() then showCursor(true) end setElementFrozen(localPlayer, true) GUIEditor.window[1] = guiCreateWindow((screenW - 340) / 2, (screenH - 212) / 2, 340, 212, "Garage System (double-click to close)", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(10, 25, 330, 72, "Garage ID: "..id.." ("..mapb.." maps)\nGarage Location: "..zn.."\nGarage Owner: "..onam.."\nFor Sale: "..sale.."\nGarage Price: "..convertNumber(pric).."$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(0, 92, 498, 15, "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) GUIEditor.label[3] = guiCreateLabel(-1, 87, 498, 15, "---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------", false, GUIEditor.window[1]) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) GUIEditor.button[1] = guiCreateButton(177, 111, 147, 24, "Set Owner", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(9, 145, 158, 26, "Price", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(9, 112, 158, 24, "Toggle Sale", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 178, 158, 24, "Buy Garage", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(177, 145, 150, 26, "New Owner's Account", false, GUIEditor.window[1]) if not isown then guiSetEnabled(GUIEditor.button[1], false) guiSetEnabled(GUIEditor.button[2], false) guiSetEnabled(GUIEditor.edit[1], false) guiSetEnabled(GUIEditor.edit[2], false) end addEventHandler("onClientGUIClick", GUIEditor.button[3], function () if not (getElementType(source) == "gui-button") then return end if(sale == "Yes" and not isown) then if(getPlayerMoney(localPlayer) > pric) then triggerServerEvent("gAct", localPlayer, "Buy", id, {pric, onam}) hideGui(gpk) end end end) addEventHandler("onClientGUIClick", GUIEditor.button[2], function () if not (getElementType(source) == "gui-button") then return end if(isown) then if sale == "No" then nfs = true else nfs = false end if nfs and tonumber(guiGetText(GUIEditor.edit[1])) ~= nil then triggerServerEvent("gAct", localPlayer, "Sale", id, {nfs, tonumber(guiGetText(GUIEditor.edit[1]))}) hideGui(gpk) elseif(not nfs) then triggerServerEvent("gAct", localPlayer, "Sale", id, {nfs, pric}) hideGui(gpk) end end end) addEventHandler("onClientGUIClick", GUIEditor.button[1], function () if not (getElementType(source) == "gui-button") then return end if(isown and guiGetText(GUIEditor.edit[2]) ~= nil) then triggerServerEvent("gAct", localPlayer, "SetOwner", id, guiGetText(GUIEditor.edit[2])) hideGui(gpk) end end) addEventHandler("onClientGUIDoubleClick", GUIEditor.window[1], function () hideGui(gpk) end)
  14. bug fixed, please close the topic.
  15. تم حل المشكله.. شكرا لكم
  16. sim, sem erros no debugscript 3
  17. olá pessoal, eu tenho problema com esse script, quando o clan é None destrua o blip mas não está funcionando .. por favor alguém pode me ajudar? local ClanBlips = {} setTimer( function () local myClan = getElementData(localPlayer,"Clan") for k,thePlayer in ipairs(getElementsByType("player")) do if ( isElement( thePlayer ) ) and ( thePlayer ~= localPlayer ) then if ( getPlayerTeam( thePlayer ) ) then local theirClan = getElementData(thePlayer,"Clan") if myClan ~= theirClan then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementDimension(localPlayer) ~= getElementDimension(thePlayer) then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementInterior(localPlayer) ~= getElementInterior(thePlayer) then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementData(localPlayer,"Clan") == "None" or getElementData(localPlayer,"Clan") == "none" or getElementData(localPlayer,"Clan") == nil then if ( ( ClanBlips[thePlayer] ) ) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil ClanBlips = {} end end if ( myClan == theirClan ) then if not ( ClanBlips[thePlayer] ) then if getElementDimension(localPlayer) == getElementDimension(thePlayer) then if getElementInterior(localPlayer) == getElementInterior(thePlayer) then local x,y,z = getElementPosition(thePlayer) ClanBlips[thePlayer] = exports.customblips:createCustomBlip(x,y, 14, 14, "blip1.png",5000) exports.customblips:setCustomBlipRadarScale(ClanBlips[thePlayer],3) end end else if getElementDimension(localPlayer) == getElementDimension(thePlayer) then local x,y,z = getElementPosition(thePlayer) exports.customblips:setCustomBlipPosition(ClanBlips[thePlayer],x,y) end end end end end end end,1000,0) addEventHandler("onClientPlayerQuit",root, function () if ( ( ClanBlips[source] ) ) then exports.customblips:destroyCustomBlip(ClanBlips[source]) ClanBlips[source] = nil end end) Eu acho que o problema está nessa linha if getElementData(localPlayer,"Clan") == "None" or getElementData(localPlayer,"Clan") == "none" or getElementData(localPlayer,"Clan") == nil then if ( ( ClanBlips[thePlayer] ) ) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil
  18. للاسف لسه تظهر العلامه لو الكلان None انظر تحت بتلاقي الشخص الكريم مخليه مترتب
  19. local ClanBlips = {}setTimer( function () local myClan = getElementData(localPlayer,"Clan") for k,thePlayer in ipairs(getElementsByType("player")) do if ( isElement( thePlayer ) ) and ( thePlayer ~= localPlayer ) then if ( getPlayerTeam( thePlayer ) ) then local theirClan = getElementData(thePlayer,"Clan") if myClan ~= theirClan then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementDimension(localPlayer) ~= getElementDimension(thePlayer) then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementInterior(localPlayer) ~= getElementInterior(thePlayer) then if ( ( ClanBlips[thePlayer] ) ) then if (ClanBlips[thePlayer]) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end end if getElementData(localPlayer,"Clan") == "None" or getElementData(localPlayer,"Clan") == "none" then if ( ( ClanBlips[thePlayer] ) ) then exports.customblips:destroyCustomBlip(ClanBlips[thePlayer]) ClanBlips[thePlayer] = nil end end if ( myClan == theirClan ) then if not ( ClanBlips[thePlayer] ) then if getElementDimension(localPlayer) == getElementDimension(thePlayer) then if getElementInterior(localPlayer) == getElementInterior(thePlayer) then local x,y,z = getElementPosition(thePlayer) ClanBlips[thePlayer] = exports.customblips:createCustomBlip(x,y, 14, 14, "blip1.png",5000) exports.customblips:setCustomBlipRadarScale(ClanBlips[thePlayer],3) end end else if getElementDimension(localPlayer) == getElementDimension(thePlayer) then local x,y,z = getElementPosition(thePlayer) exports.customblips:setCustomBlipPosition(ClanBlips[thePlayer],x,y) end end end end end end end,1000,0)addEventHandler("onClientPlayerQuit",root, function () if ( ( ClanBlips[source] ) ) then exports.customblips:destroyCustomBlip(ClanBlips[source]) ClanBlips[source] = nil end end) هلا شباب كيفكم في مشكله بتواجهني ابي اسوي ازا كان الكلان None يضمر البلب موجود الفنكشن في الاول لاكن لا يعمل و ما يظهر اخطاء في الدي بج
  20. مشكور اخي <3
  21. بيه خطء ... خلاص اخي لا داعي لتعبك معي مشكور...
  22. العلامه مو الهيدرا .. و تقريبا الفنكشن الي يخلي العلامه تختفي موجود و شغال تمام المشكله بس الحين في ان نخلي العلامه تظهر لتيم معين مو لكل الاعبين الي يركبو هيدرا
×
×
  • Create New...