Jump to content

iA7bk#

Members
  • Posts

    87
  • Joined

  • Last visited

Everything posted by iA7bk#

  1. والله ما ضبط واضن مافي فرق بسن الكود ذا والاكواد الي فوق خخخ عموماً مشكور دودي ان شاء الله بيطرح الكود واحد من المبرمجين
  2. اخوي دودي مقدر لك في ردودك ومساعدتك لاكن كل الي جربته ما ضبط منه شيء ابد بس جرب المود انت شوف يشتغل معك !!
  3. نفس الشيء + ما اضن الخطأ بالميتا ابد طيب يا دودي .. اذا كان المود عندك ارفعه لي
  4. غيرت نكي ودخلت بس ما جاني شيء ولا اقصد ما جاني نكه السابق ~" ترآهه سيرفر اوب كلينت اذا مازبطط اطرحح الميتآ : ) "KING-ABADY" name="joinquit" version="1.0" type="script" />
  5. غيرت نكي ودخلت بس ما جاني شيء ولا اقصد ما جاني نكه السابق ~"
  6. لا هنت سويه لاني ما فهمت
  7. السلام عليكم ورحمةة الله وبركاته شباب ابي منكم خدمه صغيره الحين ذا مود دخل وخرج من السيرفر في خاصيه اذا سجل دخوله يرجع نكه السابق يعني اذا دخل مثلاً بنك AA وخرج من السيرفر وغير نكه وحطه مثلا BB اذا رجع السيرفر وسجل دخوله يرجع النك طيب انا ابي اضافه للمود ابيه اذا دخل بدون ما يسجل يرجع نكه السابق addEventHandler("onPlayerJoin", root, function() outputChatBox("#6698FF*~| =[ #5E767E" .. getPlayerName( source ) .. "#6698FF ]= #00ff00Join |#ffff00The|#ffffff Server#6698FF |~", root, 255, 255, 255, true) end ) addEventHandler("onPlayerChangeNick", root, function(oldNick, newNick) outputChatBox("#6698FF*~| =[#5E767E " .. oldNick .. "#6698FF ]= #00ff00Changed |#FFFF00His|#FFFFFF Name To#6698FF =[#5E767E " .. newNick .. "#6698FF ]= |~", root, 255, 255, 255, true) end ) addEventHandler("onPlayerQuit", root, function(reason) outputChatBox("#6698FF*~| =[ #5E767E" .. getPlayerName( source ) .. "#6698FF ]= #00ff00Quti |#ffff00The|#ffffff Server#6698FF [#ff0000 " .. reason .. "#6698FF ] |~", root, 255, 255, 255, true) end ) maxPlayer = function() allPlayer = getPlayerCount() outputChatBox("#FFFFFF|#6698FF=[ Number#ffffff [of] pla#6698FFyers in the | #ffffffserver #6698FF[ #ffff00" .. allPlayer .. "#6698FF ]=#ffffff|", root, 255, 255, 255, true) end setTimer(maxPlayer, 60000, 0) addEventHandler('onPlayerQuit',root, function() vAcc = getPlayerAccount(source) if isGuestAccount(vAcc) then return end setAccountData(vAcc,'Name',getPlayerName(source)) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Name') if ( v_Data ) then setPlayerName(source,v_Data) end end )
  8. السلام عليكم ورحمةة الله بركاته شباب ابي شرح للقريد لست كيف ادمج الكود معه يعني مثلا اضيف مواتر بالقريد لست واضغط على المواتر وبعدين اضغط موافق ويجي الموتر لا هنتم بغيت شرح بسيط يا ليت تشرحونه لي
  9. خلاص شباب عرفة اضبط المود شكراُ لكم
  10. جرب الكود هذا اول شي اذا ماضبط جرب الثاني وعطنا تجربتك مع الإكواد local helhRBL = false function addRBL ( ) if not helhRBL then local txd = engineLoadTXD ( "1.txd" ) engineImportTXD ( txd, 4867 ) helhRBL = true else engineRestoreModel ( 4867 ) helhRBL = false end end addEventHandler("onClientGUIClick", root, function () if ( source == A1 ) then addRBL ( ) elseif ( source == A2 ) then addRBL ( ) end end ) الكود الثاني local helhRBL = false function addRBL ( ) if not helhRBL then local txd = engineLoadTXD ( "1.txd" ) engineImportTXD ( txd, 4867 ) local dff = engineLoadDFF("1.dff",4867) engineReplaceModel(dff, 4867) helhRBL = true else engineRestoreModel ( 4867 ) helhRBL = false end end addEventHandler("onClientGUIClick", root, function () if ( source == A1 ) then addRBL ( ) elseif ( source == A2 ) then addRBL ( ) end end ) نفس الشيء ما ضبط تجربتي انا ضبطت اول ما اشغل المود ما يجي التعديل حق الابجكت لما اضغط على الزر تجي الزفلته لاكن لما ابي اشيل الزفلته ما تروح addEventHandler("onClientGUIClick", root, function() if (source == A1) then txd = engineLoadTXD("1.txd") engineImportTXD(txd, 4867) dff = engineLoadDFF("1.dff", 4867 ) engineReplaceModel(dff, 4867) elseif (source == A2) then engineReplaceModel(dff, 4867) end end)
  11. طيب تابل انا اضفت ال dff بس ما ضبط addEventHandler("onClientGUIClick", root, function() if (source == A1) then txd = engineLoadTXD("1.txd") engineImportTXD(txd, 4867) dff = engineLoadDFF("1.dff", 4867 ) engineReplaceModel(dff, 4867) elseif (source == A2) then engineReplaceModel(dff, 4867) end end)
  12. السلام عليكم ورحمةة الله وبركاته شباب ابي تصحيح للكود ذا addEventHandler("onClientGUIClick", root, function () if ( source == A1 ) then txd = engineLoadTXD ( "1.txd" ) engineImportTXD ( txd, 4867 ) elseif ( source == A2 ) then engineRestoreModel ( 4867 ) end end ) الكود عباره عن تشغيل الزفلته وايقافها الحين اضن تشغيل الزفلته مضبوط اما ايقفال الزفلته ما ضبط ابيكم تعدلونه لي
  13. كفوك الطيب الله يعآفيك هذا طلبك الثاني ملف سيرفر addEvent("s",true) addEventHandler("s",getRootElement(),function() setCameraTarget(source) fadeCamera(source,false,1) fadeCamera(source,true,3) end) addEvent("1",true) addEventHandler("1",getRootElement(),function(id) if getElementData(source,"vehB") and isElement(getElementData(source,"vehB")) then destroyElement(getElementData(source,"vehB")) end setCameraTarget(source) fadeCamera(source,false,1) fadeCamera(source,true,3) ve = createVehicle(id, 1865.8835449219,-2620.5539550781,13.546875) setElementData(source,"vehB",ve) warpPedIntoVehicle(source, ve) if getPlayerMoney(source) >= 500000 then takePlayerMoney(source, 500000) outputChatBox("* ~| Buy [ Car ] |~",0,150,250,true) else outputChatBox("* Don't Have Money",250,0,0,true) end setVehicleDamageProof(ve, true) setTimer(function() setVehicleColor(ve, math.random(0, 255),math.random(0, 255),math.random(0, 255)) end, 500,0) end) اشكرك على تعاونك اخوي وما قصرت والله يجزاك الف خير على مساعدتك تمت الافاده مشكور #
  14. GUIEditor = { gridlist = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetFont(GUIEditor.gridlist[1], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") function Spawn() outputChatBox ("* Welcome To Garage ",0,150,250,true) setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) local veh = getPlayerOccupiedVehicle(localPlayer) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) triggerServerEvent("a",localPlayer) setObjectScale ( op, 2) setObjectScale ( ob, 2) guiSetVisible(GUIEditor.window[1], true) showChat(false) showCursor(true) setTimer(function() setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) end, 500,0) end marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) addEventHandler("onClientMarkerHit", marker, function(pla) if pla == getLocalPlayer() then Spawn() end end) addEventHandler("onClientRender",getRootElement(), function() local x,y,z = getElementRotation ( ob ) setElementRotation(ob,x,y,z +1) local x2,y2,z2 = getElementRotation ( car ) setElementRotation(car,x2,y2,z2 +1) local x, y, z = getElementPosition(car) fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) end) addEventHandler("onClientGUIClick",guiRoot, function() if source == GUIEditor.button[2] then showChat(true) showCursor(false) triggerServerEvent("s",localPlayer) guiSetVisible(GUIEditor.window[1], false) destroyElement(car) elseif source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1], false) showChat(true) showCursor(false) triggerServerEvent("1",localPlayer,getElementModel(car)) destroyElement(car) end end) addEventHandler("onClientGUIClick",guiRoot,function() if source == GUIEditor.gridlist[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local get = guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 ) if row and col and row ~= -1 and col ~= -1 then if get == "بي ام" then setElementModel(car, 405) elseif get == "كمارو" then setElementModel(car, 411) end end end end) كفووو والله ضبط يعطيك العافيه بس عندي طلب ثاني الله لا يهينك الحين لو اخذ موتر ورجع مره ثانيه للماركر واخذ موتر ثاني الموتر الاول ما يختفي يبقى موجود انا ابيه يختفي ويكون معه بس الموتر الثاني وكذا اتمنى انك فهمتني واسف اذا تعبتك معي
  15. تقصد استبدلها بدال هذا ؟ addEventHandler("onClientMarkerHit", root, function() if isElementWithinMarker(getLocalPlayer(),marker) then Spawn() end end او حدد لي وين التغير بإي سطر
  16. ما ضبط والماركر ما تظهر
  17. سلام عليكم ورحمة الله وبركاته شباب ابيكم تشوفون الخطأ الي بالمود حق تطوير الحين لما يجي واحد يدخل الماركر بتفتح لوحه اختيار الموتر بس لما يدخلها واحد بتضهر اللوحه لكل الي بالسيرفر ليه كلنت GUIEditor = { gridlist = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(0, 0, 249, 390, ":: Garage Created T6[W]ER ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 22, 225, 262, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Cars :", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "بي ام", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "كمارو", false, false) GUIEditor.button[1] = guiCreateButton(36, 291, 171, 38, ":: oK | موافق ::", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00FBFF") GUIEditor.button[2] = guiCreateButton(36, 340, 171, 38, ":: Close | اغلاق ::", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetFont(GUIEditor.gridlist[1], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF00FBFF") function Spawn() outputChatBox ("* Welcome To Garage ",0,150,250,true) setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) local veh = getPlayerOccupiedVehicle(localPlayer) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) triggerServerEvent("a",localPlayer) setObjectScale ( op, 2) setObjectScale ( ob, 2) guiSetVisible(GUIEditor.window[1], true) showChat(false) showCursor(true) setTimer(function() setVehicleColor(car, math.random(0, 255),math.random(0, 255),math.random(0, 255)) end, 500,0) end marker = createMarker(1871.3981933594,-2622.1108398438,13.546875,"cylinder",3,0,150,250,170) addEventHandler("onClientMarkerHit", root, function() if source == marker then Spawn() end end) addEventHandler("onClientRender",getRootElement(), function() local x,y,z = getElementRotation ( ob ) setElementRotation(ob,x,y,z +1) local x2,y2,z2 = getElementRotation ( car ) setElementRotation(car,x2,y2,z2 +1) local x, y, z = getElementPosition(car) fxAddGlass(x,y,z,math.random(0, 255),math.random(0, 255),math.random(0, 255),a,-3,count) end) addEventHandler("onClientGUIClick",guiRoot, function() if source == GUIEditor.button[2] then showChat(true) showCursor(false) triggerServerEvent("s",localPlayer) guiSetVisible(GUIEditor.window[1], false) destroyElement(car) elseif source == GUIEditor.button[1] then guiSetVisible(GUIEditor.window[1], false) showChat(true) showCursor(false) triggerServerEvent("1",localPlayer,getElementModel(car)) destroyElement(car) end end) addEventHandler("onClientGUIClick",guiRoot,function() if source == GUIEditor.gridlist[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local get = guiGridListGetItemText(GUIEditor.gridlist[1], row, 1 ) if row and col and row ~= -1 and col ~= -1 then if get == "بي ام" then setElementModel(car, 405) elseif get == "كمارو" then setElementModel(car, 411) end end end end) سيرفر addEvent("s",true) addEventHandler("s",getRootElement(),function() setCameraTarget(source) fadeCamera(source,false,1) fadeCamera(source,true,3) end) addEvent("1",true) addEventHandler("1",getRootElement(),function(id) setCameraTarget(source) fadeCamera(source,false,1) fadeCamera(source,true,3) ve = createVehicle(id, 1865.8835449219,-2620.5539550781,13.546875) warpPedIntoVehicle(source, ve) if getPlayerMoney(source) >= 500000 then takePlayerMoney(source, 500000) outputChatBox("* ~| Buy [ Car ] |~",0,150,250,true) else outputChatBox("* Don't Have Money",250,0,0,true) end setVehicleDamageProof(ve, true) setTimer(function() setVehicleColor(ve, math.random(0, 255),math.random(0, 255),math.random(0, 255)) end, 500,0) end)
  18. اسم الزر speed = guiCreateButton(11,350,158,38,"Speed",false,GUIEditor_Tab[2]) guiSetFont(speed,"default-bold-small") الكلنت addEvent("Speed",true) addEventHandler("Speed",root, function () setGameSpeed ( 10 ) setTimer(setGameSpeed, 10000,1,1)--- 10000 = 10 end ) addEventHandler ("onClientGUIClick", getRootElement() function() if ( source == speed ) then triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) سيرفر addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) outputChatBox("#Speed Has Been Ended",source,255,0,0,true) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) بنتظار التعديل #
  19. كذا اضغط على الزر ما يجي شيء
  20. برضو كودك ما يشتغل لاكن انا عدلة على الكود كذا كلنت addEventHandler ("onClientGUIClick", getRootElement(), function() if ( source == speed ) then setGameSpeed ( 10 ) setTimer(setGameSpeed, 100000,1,1)--- 10000 = 10 triggerServerEvent("setPlayerSpeed",getLocalPlayer ( )) end end ) سيرفر addEvent("setPlayerSpeed",true) speed = function() if getPlayerMoney (source) >= 2000 then takePlayerMoney(source, 2000) outputChatBox(getPlayerName(source).." #ffff00Has Bought #00ffff[speed]",root,255,0,0,true) triggerClientEvent(source,"Speed",source) else outputChatBox("#00cc00You don't have #ff0000$2000 #00cc00to buy #ffff00[speed]",source,255,0,0,true) end end addEventHandler("setPlayerSpeed",root,speed) كذا لو شريت السرعه بتجي للسيرفر كله ولالا ؟
  21. برضو ما يشتغل لما اركب الكود المود كامل معد يشتغل مره
  22. شلته وصار يجي بالعالم الحقيقي خخخخخخخخ شكله معقد مررره عموما تابل ما قصرت تعبتك معي
×
×
  • Create New...