Jump to content

RLP[Farouk]

Members
  • Posts

    70
  • Joined

  • Last visited

Posts posted by RLP[Farouk]

  1. السلام عليكم

    ممكن تشوفو هالكود

    كيف بدي المركبة تتلون ؟؟؟

    وش احط محل

    "?"

    انا جربت vehicles[source]

    بس ما زبط

            vehicles[source] = createVehicle(id, x, y, z) 
            setVehicleRotation (?, 0, 0, 180 ) 
            setVehicleColor(?,34,64,170,255,255,255) 
            warpPedIntoVehicle(source,vehicles[source]) 
    

  2.   
    vehicle = {} 
      
    local TableMarker = 
    { 
        { x = 1556.6724853516, y = -1606.4342041016, z = 12.3 }, 
        { x = 1544.0750732422, y = -1609.6583241953, z = 12.3 } 
    } 
      
    addEventHandler ( 
        'onResourceStart', resourceRoot, 
        function ( ) 
            for _, m in ipairs ( TableMarker ) do 
                local marker = createMarker ( m.x, m.y, m.z ) 
            end 
            addEventHandler ( 'onMarkerHit', marker, onHit ) 
        end 
    ) 
      
      
      
    function onHit (thePlayer ) 
        if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end 
        vehicle[source] = createVehicle ( 596, getElementPosition (x,y,z) ) 
        warpPedIntoVehicle ( thePlayer,vehicle[source] ) 
    end 
    

    ما يصير شي

    ويعطيني

    WARNING >> AddEventHandler

  3. طيب مثلا انا عملت كمان ماركر

    وانا بروح اخد سيارة من ماركر الاول

    ورحت اخد كمان سيارة من الماركر الثاني

    كيف بدي تختفي السيارة الي اختها من الماركر الاول ؟؟

    اسف من كثر الطلبات :oops:

    هذه اخر طلب لاني بدي انهيه

  4. جرب الطريقة هذي
    vehicle = { } 
      
    vehicle[source] = createVehicle ( ... ) 
    if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end 
    

    بس اجي على الماركر بوقف وما يصير شي

    يمكن انا وضعته غلط ...

    function g() 
    setElementData(source,"xxx",tostring("Yes")) 
    end 
    addEventHandler("onPlayerJoin",root,g) 
      
    ma = createMarker (1556.6724853516,-1606.4342041016, 12.3, "cylinder", 2, 255, 0, 255, 150 ) 
      
    vehicle = { } 
      
    function M( thePlayer ) 
    get = getElementData(thePlayer,"xxx") 
    if get == "Yes" then 
    if not isPedInVehicle(thePlayer) then 
    x,y,z = getElementPosition( thePlayer ) 
    if getElementModel( thePlayer ) == 287 then 
    vehicle[source] = createVehicle ( 596, x, y, z ) 
    setVehicleColor(vehicle[source],27,54,160,255,255,255) 
    warpPedIntoVehicle(thePlayer,vehicle[source]) 
    if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) 
    end 
    end 
             end 
           end 
         end 
    addEventHandler( "onMarkerHit", ma, M ) 
      
    

  5. function g() 
    setElementData(source,"xxx",tostring("Yes")) 
    end 
    addEventHandler("onPlayerJoin",root,g) 
      
    ma = createMarker (1556.6724853516,-1606.4342041016, 12.3, "cylinder", 2, 255, 0, 255, 150 ) 
      
    function M( thePlayer ) 
      
    get = getElementData(thePlayer,"xxx") 
      
    if get == "Yes" then 
      
    if not isPedInVehicle(thePlayer) then 
      
    x,y,z = getElementPosition( thePlayer ) 
      
    if getElementModel( thePlayer ) == 287 then 
      
     create = createVehicle ( 596, x, y, z ) 
      
    setVehicleColor( create,27,54,160,255,255,255) 
      
    warpPedIntoVehicle(thePlayer,create) 
    end 
             end 
           end 
         end 
    addEventHandler( "onMarkerHit", ma, M ) 
      
      
    

  6. هو حاط الكود يآخذ مرة وحدة @@"

    ElementData احذف كل شيء يخص الـ

    اها مشكور بس حليتها من قبل

    +

    باقي مشكلة

    انا اخت سيارة من الماركر

    واروح مرا ثانيه اخد كمان سيارة من الماركر

    السيارة الي اختها اخر مرا بدي تختفي

    حاولت اسويها بس الماركر يختفي والسيارة الي اختها :roll:

  7. :(

    جرب
    function g() 
    setElementData(source,"xxx",tostring("Yes")) 
    end 
    addEventHandler("onPlayerJoin",root,g) 
      
    ma = createMarker (x,y,z, "cylinder", 2, 255, 0, 255, 255 ) 
      
    function M( thePlayer ) 
    get = getElementData(thePlayer,"xxx") 
    if get == "Yes" then 
    if not isPedInVehicle(thePlayer) then 
    x,y,z = getElementPosition( thePlayer ) 
    create = createVehicle ( id, x, y, z )--Add Id 
    warpPedIntoVehicle(thePlayer,create) 
    setElementData(thePlayer,"xxx",tostring("No")) 
             end 
         end 
     end 
    addEventHandler( "onMarkerHit", ma, M ) 
      
    

    ولاتنسى تضيف ألأي دي لسياره بدل كلمة

    id

    طيب انا اخت سيارة من الماركر

    بس ما اقدر اخد كمان وحده :|

  8.   local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) 
      
      
      
    function ps () 
          local soso = getLocalPlayer() 
          local x, y, z = getElementPosition ( soso ) 
          createVehicle ( 596, x + 1, y, z ) 
    end 
    addEventHandler("onClientMarkerHit", marker, ps) 
    

    Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

    https://wiki.multitheftauto.com/wiki/CreateVehicle

    طيب شو الحل

  9.   local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) 
      
      
      
    function ps () 
          local soso = getLocalPlayer() 
          local x, y, z = getElementPosition ( soso ) 
          createVehicle ( 596, x + 1, y, z ) 
    end 
    addEventHandler("onClientMarkerHit", marker, ps) 
    

  10. السلام عليكم

    كيفكم :P

    لما اجي على الماركر وتنزل سيارة عسريع انا سويته

    بس كيف بدي اخلي لما اجي على الماكر اركب السيارة عسريع ؟؟

    يعني اول ما ادخل الماركير

    وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟

  11. شباب

    الوارب مو مزبوط !!!!!

    جرب مليون طريقة مش زابطه

        local vehicles = {} 
          
        function spawnVeh(id) 
            local setPed = createPed (source) 
            local x, y, z = getElementPosition(source) 
            if isElement(vehicles[source]) then  
           destroyElement(vehicles[source]) 
           end 
            vehicles[source] = createVehicle(id, x +1, y, z) 
           warpPedIntoVehicle (setPed, x,y,z) 
      
        end 
        addEvent("CreVehice",true) 
        addEventHandler("CreVehice", root, spawnVeh) 
      
    

  12. جرب تحط ذا الكود
    setElementParent(source, getElementByID("cops")) 
    

    تحت كود التيم

    setPlayerTeam 
    

    مشكووووووووووووووووووووووووووور

    مشكووووووووووووووووووووووووووور

    الله يرزقك بنت الحلالللللللللللللل يا رببببببببب

    واخيراااااااااااااااااااا

  13. طيب

    برضو المخالف لما امسكه ما ينمسك

    شو الحللللللللللللللللللللل

    ما عندك مود كاملللللللللللللللللللللللللل

    وخلصصصص

    والله تعبت

  14. ما نحلت

    WARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot'

    انت بتخبص بالكود

    وش تسوي

    انا مبتدئ

    انسخ كودي الي فوق

    مرة ثانية

    نفس الايرور!

    اعتقد ان المشكلة ما راح تنحل

×
×
  • Create New...