Jump to content

SaedAmer

Members
  • Posts

    906
  • Joined

  • Last visited

Everything posted by SaedAmer

  1. انا عاوز ده https://wiki.multitheftauto.com/index.php?title=MTASE
  2. السلام عليكم و رحمة الله و بركاته الي معه برنامج mta script editor يتكرب برفعه علي ميديا فير و يعطيني الرابط
  3. مبدع من يومك ------ اقطرحاتي لو تضيف بقي سهم فوق السيارة و نترو و زر للاشخاص الي معندهمش الاشتراك هيبقي زي لمشاهدة الوحة و زر لمعرفة الناس المشتركة في النظام و تزود زر للتجات في الشات مثلا مكان كلمة كونسول يبقي التاج الي هو عوزو و التاج الي فوق الراس
  4. نصفهم اشتغلو و الباقي لا هنا باقي الخيارت المميزة مبتشتغلش غير لما اشغل الوان عشوائية addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) سيرفر addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer[player] = setTimer(function( pla ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,100 ,player) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) ---------------------------------------------------------- هنا السهم بردو مش بيظهر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) ------------------------------------------------------ هنا الكود شغال تمام بس لما اشيل تحديد الشيك بوكس ما يلتغي الكود يعني ما تتفجر تفضل غير قابلة للكسر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then triggerServerEvent('StopHealth',localPlayer) end end ) addEvent("FixNow" , true) addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 100 then setElementHealth(Veh,100) setVehicleDamageProof(Veh, true) end end ) addEvent("StopHealth", true) addEventHandler('StopHealth',root, function () if getElementHealth(Veh) ~= 100 then return end setVehicleDamageProof(Veh, false) ---------------------------------------------------------------------- و هنا ما يعطيني نترو -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) -------------------------------------------------------- و هنا ما يصلح السيارة -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) -- Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) end ) ----------------------------------------------------- صور الدي بق
  5. مساعده في تصحيح باقي الاكواد
  6. الاكواد مش شغالة و مفيش مشكلة في الدي بق
  7. ايه الخطأ في دول ؟ ---------------------------------------- هنا المفروض غير قابلة للانفجار و الكسر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiComboBoxGetSelected(GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then triggerServerEvent('StopHealth',localPlayer) end end ) --Server addEvent('FixNow',true) addEvent('StopHealth',true) addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 100 then setElementHealth(Veh,100) end end ) addEventHandler('StopHealth',root, function () if getElementHealth(Veh) ~= 100 then return end end ) --------------------------------------- هنا اول ما اضغط علي الشيك بوكس يجي نترو -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiComboBoxGetSelected(GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEvent('nitro',true) addEvent('StopNitro',true) -- Server addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) ---------------------------------------- هنا اول ما اضغط علي البوطن يصلح السيارة -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) --Server -- Server addEvent('FixCar',true) addEventHandler( 'FixCar', root, function ( ) if not isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) هنا تصحيح خطا كود الاوان العشوائية و تكون بطيقة addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) --Server addEvent('StartRandomColor', true) addEvent('StopRandomColor',true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) TimerColor = setTimer( function () setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end,500,1) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEventHandler('StopRandomColor',root, function () if isTimer( TimerColor ) then return killTimer(TimerColor) end end ) --------------------------------- هنا السهم مش بيظهر خالص -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) --server addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end )
  8. لا مفيش مشكلة بادي بق
  9. ولا كود من دول اشتغل
  10. لا مش انا مسويه ده موجود ف مود تاني بس مشفر انا عاوز الكود بتاعه الدخان بس
  11. الصور اهه طيب و ده
  12. مساعده يا ناس
  13. و بلنسبة لطلبي الاول الصور اهه
  14. الطلب الاول مش شغال العربية تتفجر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiComboBoxGetSelected(GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then if isTimer (Timer) then return killTimer (Timer) end end end ) -- Server addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) Timer = setTimer( function () fixVehicle(Veh) end,500,1) end ) ----------------------------------------------------------------------------------------------------------- الطلب الثاني في خطا ؟ -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiComboBoxGetSelected(GUIEditor.checkbox[1]) == true then triggerServerEvent('netro',localPlayer) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then if isTimer (Timer) then return killTimer (Timer) end end end ) -- Server addEventHandler('netro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh) end ) ------------------------------------------------------------------------------------------- الطلب الثالث فيه خطأ ؟؟ -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) -- Server addEventHandler( 'FixCar', root, function ( ) if not isElement(vehicle[source]) then outputChatBox("[RentSystem]: ليس هناك سيارة لاصلاحها", source, 255, 0, 0, true) else if vehicle[source] and isElement(vehicle[source]) then fixVehicle(vehicle[source]) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) end end end ) end ) ---------------------------------------------------------------------------------------------------------------- هنا كل ما اضغط علي الشيك بوكس ما يشتغل اضغط علي شيك بوكس تاني يشتغل --#Client function triggerServerEvent_() triggerServerEvent("VehicleColor", localPlayer,r,g,b) r,g,b = math.random(0,255), math.random(0,255), math.random(0,255) end -- addEventHandler("onClientGUIClick", root,function() if guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then if not isPedInVehicle(localPlayer) then return outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا",255, 0, 0, true) end Timer = setTimer (triggerServerEvent_,500,0) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', 0,255,0,true ) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then if isTimer (Timer) then killTimer (Timer) end end end) --#Server addEvent("VehicleColor", true) addEventHandler("VehicleColor", root,function(r,g,b) local vehicle = getPedOccupiedVehicle(source) setVehicleColor(vehicle, r,g,b) end)
  15. السلام عليكم الطلب الاول في خطا ؟؟ addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiComboBoxGetSelected(GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then if isTimer (Timer) then killTimer (Timer) end end end ) server addEventHandler('FixNow',root, function ( source ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if vehicle[source] and isElement(vehicle[source]) then fixVehicle(vehicle[source]) Timer = setTimer (triggerServerEvent_,500,0) end )
  16. معي شيك بوكس عاوز لما اضغط عليه يجي دخان و لما اضغط عليه تاني يعني اشيل التحديد يختفي الدخان + ----------- معي شيك بوكس عاوز لما اضغط عليه العربية ما تتفجر ولا تتكسر يعمي لما افجر نفسي من محطة الوقود ما تتفجر و لما اضغط عليه تاني يعني اشيل التحديد العربية تتفجر و تتكسر عادي + ------------------- معي شيك بوكس عاوز لما اضغط عليه يجي نيترو و لما اضغط عليه تاني يعني اشيل التحديد يختفي النيترو + -------------- معي بوطن عاوز لما اضغط عليه يصلح السيارة
  17. تمام كلو اشتغل ما عدا السهم addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( source ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEventHandler('Delete',root, function ( source ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end )
  18. ايه الخطاء هنا setTimer(function() guiSetProperty( GUIEditor.checkbox[1], "NormalTextColour", math.random(0,255), math.random(0,255), math.random(0,255)) end, 50, 0) --------------------------------------------------------------------------------------- هنا الكلام يتكرر في الشات كلنت --#Client addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == true then Timer = setTimer(function() triggerServerEvent("VehicleColor", localPlayer) end, 500, 0) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == false then killTimer(Timer) end end) سيرفر --#Server addEvent("VehicleColor", true) addEventHandler("VehicleColor", root, function() if not isPedInVehicle(source) then outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا", source, 255, 0, 0, true) else local vehicle = getPedOccupiedVehicle(source) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source ,0,255,0,true ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255)) end end ) ---------------------------------------------------------------------------------------------------- هنا السهم ما يظهر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) سيرفر addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( thePlayer ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', thePlayer ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[thePlayer] , Interior ) setElementDimension( Object[thePlayer] , Dimension ) end ) addEventHandler('Delete',root, function ( thePlayer ) if ( isElement( Object[thePlayer] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) destroyElement( Object[thePlayer] ) end end )
  19. انا ما طلبت الكود ذا
×
×
  • Create New...