Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. Max+

    Vehicle id

    i think he want to type command to create vehicle and check if the vehicle is valid or not
  2. Max+

    getKeyState

    it's when the player press the button it wont check every time only when he press .
  3. تسوي ماركر داخل البيت وتنقله بنفس الطريقة اللي دخلته فيها بس تغير الاحداثيات للخارج
  4. Login First , https://bugs.multitheftauto.com/login_p ... age.php%3F
  5. Check this , https://forum.multitheftauto.com/viewtopic.php?f ... 0&p=680002
  6. try this , serverside addEventHandler ( "onResourceStart", resourceRoot, function () for _,veh in ipairs ( getElementsByType ( "vehicle" ) ) do if not ( getElementData ( veh, "doNotRespawn" ) ) then toggleVehicleRespawn ( veh, true ) setVehicleRespawnDelay ( veh, 10000 ) setVehicleIdleRespawnDelay ( veh, 60000 ) local color1, color2, color3, color4 = getVehicleColor ( veh ) setVehicleColor ( veh, color1, color2, color3, color4 ) setVehiclePlateText ( veh, "Saruhan" ) setElementData ( veh, "vehPaintJob", getVehiclePaintjob ( veh ) ) setElementData ( veh, "vehColor1", color1 ) setElementData ( veh, "vehColor2", color2 ) setElementData ( veh, "vehColor3", color3 ) setElementData ( veh, "vehColor4", color4 ) end end end) addEventHandler ( "onVehicleRespawn", root, function () if not ( getElementData ( source, "doNotRespawn" ) ) then for _,veh in ipairs ( getElementsByType ( "vehicle" ) ) do local vehPaintJob = getElementData ( source, "vehPaintJob" ) local color1 = getElementData ( veh, "vehColor1" ) local color2 = getElementData ( veh, "vehColor2" ) local color3 = getElementData ( veh, "vehColor3" ) local color4 = getElementData ( veh, "vehColor4" ) setVehiclePaintjob ( veh, vehPaintJob ) setVehicleColor ( veh, color1, color2, color3, color4 ) setVehicleEngineState (source, false ) playerVehicle = getPedOccupiedVehicle ( source ) if ( playerVehicle ) then if ( getVehicleOverrideLights ( playerVehicle ) ~= 2 ) then setVehicleOverrideLights ( playerVehicle, 2 ) setVehicleLocked ( source, false ) setVehiclePlateText ( source, "Saruhan" ) setVehicleDoorOpenRatio ( source, 0, 0, 0.5 ) setVehicleDoorOpenRatio ( source, 1, 0, 0.5 ) setVehicleDoorOpenRatio ( source, 2, 0, 0.5 ) setVehicleDoorOpenRatio ( source, 3, 0, 0.5 ) setVehicleDoorOpenRatio ( source, 4, 0, 0.5 ) setVehicleDoorOpenRatio ( source, 5, 0, 0.5 ) for i=1000,1193 do removeVehicleUpgrade (source, i) end end end end end end ) /debugscript 3
  7. Max+

    طلب

    ما ابغا اشتري انا ابي حل ض1 يا مبرمجين يا شاطرين والله ياشاطر انت انا كلمت تابل وقال يبيع ب10 دولار بس اذا تعرف بالبرمجة كويس انا متأكد لو تاخذ فره على اوامر الازرار تسويه
  8. Max+

    طلب

    طيب وش الحل ؟ والله كلم تابل هو اللي مسوي السكربت يبيعه ب 10 دولار
  9. myMarker2 = createMarker ( 1299.6129150391, -796.72637939453, 1084.2080078125, "cylinder", 1.5, 0, 144, 255 ) addEventHandler( "onMarkerHit", myMarker2, function ( element ) if ( getElementType ( element ) == "player" ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( element ) ), aclGetGroup ( "Class" ) ) ) then setElementInterior ( element, 5, 1302.2878417969, -789.06280517578, 1083.9079589844 ) setElementDimension ( element, 12345 ) else outputChatBox( "* Classic & Prince House", element ) end end end end ) -- سيرفر
  10. مآيشتغل آبد نزل لي الكود حق الدخول بالكلينت
  11. Max+

    اكواد

    اوه صح للماركر فقط اجل يستخدم isInsideRadarArea
  12. Max+

    اكواد

    الـــ z وين راح خخخ + هو يبي كود احداثيات للرادار اريا
  13. Max+

    اكواد

    استخدم الكود اللي عطيتك فوق -- مثال local Radar = createRadarArea ( -2183.5678710938, 705.67950439453, 40, -40, 0, 255, 0, 175 ) addEventHandler ( 'onMarkerHit',Radar, function ( nMax ) if ( getElementType ( nMax ) == 'Ped' ) then local nX, nY, nZ = getElementPosition ( Radar ) outputChatBox('Position :'..nX..','..nY..','..nZ..'', nMax, 255, 255, 0 ) killPed ( nMax ) end end )
  14. Max+

    اكواد

    local nX, nY, nZ = getElementPosition ( ..... )
  15. غريبه ؟ فيه اكواد ثانية يمكن تسبب مشاكل . .
  16. سويت بس هو يقول ماضبط عشان كذا قاعد اسوي له اكثر من طريقة .. فيه طريقة ثانية بس بشوف اذا ماضبطت ذي بوريه الثانية
  17. Max+

    Projectiles

    You Can use this ? createExplosion to make an Explosion when it hit something .
  18. جرب اخر كود عدلته #
  19. --- سيرفر Marker = createMarker ( 1326.0477294922, -1067.8569335938, 30.5546875, "cylinder", 1.5, 0, 104, 246 ) createBlip ( 1326.0477294922, -1067.8569335938, 30.5546875, 58 ) addEventHandler("onMarkerHit",Marker, function ( player ) if ( getElementType ( player ) == 'player' ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Class" ) ) then setElementPosition ( player, 1302.2878417969, -789.06280517578, 1083.9079589844 ) setElementInterior ( player , 5 ) setElementDimension ( player , 12345 ) elseif not isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Class" ) ) then outputChatBox("* Classic & Prince House", player, 255, 0 , 0 ) end end end )
  20. اطرح lua عند استخدام الاكواد عالعموم كودك اهو local oH = createMarker(x,y,z,"arrow",3,23,0,252) تقدر تبدل arrow بغير ماركرات الماركر سهم addEventHandler('onMarkerHit',oH,function(entered) setElementPosition( entered,x.y,z) هنا احداثيات البيت setElementInterior ( entered, 0 ) هنا رقم الانيتور setElementDimension ( entered, 0 ) هذا العالم الوهمي خله 0 هو الافتراضي end end ) Worng X
  21. انا الحين ابي افهم ليه تسويه لقروب معين والرسالة تظهر للي مو بالقروب ؟
  22. وضح اكثر الحين انت تبيه يطلع لقروب معين , وش دخل اذا منت بقروب " وضح لي وش تبي بالضبط "
  23. Well , it's Easy Scripts to Make, if i were free i would be glad to script for you , but iam making my Own Server , Good Luck with it ,
×
×
  • Create New...