Jump to content

طلب مود


Stranger

Recommended Posts

Posted

السلام عليكم يا شباب ابي مود علامه اذ دخلت فيها تجيك سياره يعني مثلا جا لاعب ودخل فيها تجيه سياره والسياره تجيك في مكان معين انت تختاره بالاحداثيات يليت فهمتوني :$

Posted

الوكود قيد حطه تابل في موضوع ناسيه

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) 
     end 
end) 
  

واذا تبيه م يعطيه في محله وتبي تحدد احداثيات

اعتقد انها كذا

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 
  

Posted

اذا قصدك انت تحدد ألأحداثيات

setElementPosition 

واذا قصدك الاعب هو يكتب ألأحداثيآت

guiGetText 

واذا شيء ثآني تفضل قوله . .انا الي فهمته من كلامك طرحته لك

Posted
الوكود قيد حطه تابل في موضوع ناسيه
  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) 
     end 
end) 
  

واذا تبيه م يعطيه في محله وتبي تحدد احداثيات

اعتقد انها كذا

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 
  

يلبى قلبك تسلم اشتغلت بس فيه مشكله انه كل ما يدخل في الدائره تطلع سياره ثانيه الحل هو ابيه اول مايدخل في الدائره تجيه السياره يعني يكون راكب فيها اول ما يدخل الدائره

Posted
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", root, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 

يمكن كذا؟

Posted
الوكود قيد حطه تابل في موضوع ناسيه
  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(id, getElementPosition(player))) 
     end 
end) 
  

واذا تبيه م يعطيه في محله وتبي تحدد احداثيات

اعتقد انها كذا

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 
  

يلبى قلبك تسلم اشتغلت بس فيه مشكله انه كل ما يدخل في الدائره تطلع سياره ثانيه الحل هو ابيه اول مايدخل في الدائره تجيه السياره يعني يكون راكب فيها اول ما يدخل الدائره

وش قصدك بالهرجة ذي وضح أكثر / =! يعني تبية اذا دخل ماتطلع الا سيارة وحده مايقدر يأخذ ثانية؟ :|

Posted
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", root, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 

يمكن كذا؟

لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا

Posted
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", root, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 

يمكن كذا؟

لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا

يعني تبية اذا دخل الماركر! يركب سيارة بعدين تختار احداثيات يوديك لها :shock:

Posted
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", root, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 

يمكن كذا؟

لا يلبى خطأ سويته اول مادخلت في العلامه جاتني سيارات كثييييييره اانا ابيه اول ما يدخل فيها ينتقل داخل السياره على طول وفي المكان الي احدده انا

يعني تبية اذا دخل الماركر! يركب سيارة بعدين تختار احداثيات يوديك لها :shock:

لا يلبى ابيه اول ما يدخل الماركر تجيه سياره يعني زي كأنك تبي تعطي واحد سياره من لوحة الادمن صح تجيه هو راكب فيها ؟ بس انا ابيها زي كذا اول ما يدخل الماركر تجيه السياره ويكون راكب فيها

Posted
Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
function ( player ) 
if not isPedInVehicle(player) then 
        x,y,z = getElementPosition( player ) 
        vehicle = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle(player,vehicle) 
      end 
end 
addEventHandler( "onMarkerHit", Marker,  

Posted

انا عطييتكـ الكود فوق طيب =\

وجربه

وتابل مسويه < يعني 100% ظابط :lol:

^ ماشاء الله

marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) 
     end 
end) 

Posted
انا عطييتكـ الكود فوق طيب =\

وجربه

وتابل مسويه < يعني 100% ظابط :lol:

^ ماشاء الله

marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) 
     end 
end) 

تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟

Posted
Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
function ( player ) 
if not isPedInVehicle(player) then 
        x,y,z = getElementPosition( player ) 
        vehicle = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle(player,vehicle) 
      end 
end 
addEventHandler( "onMarkerHit", Marker,  

^ Wrong

addEventHandler( "onMarkerHit", Marker, .. ??

التصحيح

Marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
addEventHandler( "onMarkerHit", Marker, 
    function ( player ) 
        if not isPedInVehicle(player) then 
            x,y,z = getElementPosition( player ) 
            vehicle = createVehicle ( id, x, y, z ) 
            warpPedIntoVehicle(player,vehicle) 
        end 
    end 
) 

Posted
انا عطييتكـ الكود فوق طيب =\

وجربه

وتابل مسويه < يعني 100% ظابط

^ ماشاء الله

marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) 
     end 
end) 

تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 
  

حط احداثيات مثلا يوديه لـ الدائري للـ مريخ اي شي .. عشان م يقدر يشطططحح مشوار للـ بدايه مثلا وياخذ موتر ثاني :lol:

بس غير الـ

id = اي دي الموتر

x , y , z = الاحداثيات

Posted
انا عطييتكـ الكود فوق طيب =\

وجربه

وتابل مسويه < يعني 100% ظابط

^ ماشاء الله

marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
          warpPedIntoVehicle(player, createVehicle(اي دي السياره, getElementPosition(player))) 
     end 
end) 

تسلم والله يالغلا بس تقدر تحط لها احداثيات ؟ ومايقدر ياخذ غير وحده بس عشان الاق ؟

  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
  
addEventHandler("onMarkerHit", marker, 
function(player) 
     if getElementType(player) == "player" and not isPedInVehicle(player) then 
         car = createVehicle ( id, x, y, z ) 
        warpPedIntoVehicle ( source, car)    
  end 
end) 
  

حط احداثيات مثلا يوديه لـ الدائري للـ مريخ اي شي .. عشان م يقدر يشطططحح مشوار للـ بدايه مثلا وياخذ موتر ثاني :lol:

بس غير الـ

id = اي دي الموتر

x , y , z = الاحداثيات

تسلم والله يالغلا الكود ذا مو صح بس انا ضفت لكود الي فوق احداثيات وضبطت معي مشكور تسلم

Posted

خذ الكود ذا عشان اللاق وعشان ماتتكرر السيارة

الكود سيرفر

  
  
marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0) 
car = {}  
addEventHandler("onMarkerHit", marker, 
    function(player) 
        if getElementType(player) == "player" and not isPedInVehicle(player) then 
            if isElement(car[player]) then destroyElement(car[player]) car[player] = nil end 
                car[player] = createVehicle ( id, x, y, z ) 
            if car[player] then 
                warpPedIntoVehicle ( player, car[player]) 
            end  
        end 
    end 
) 
  
addEventHandler("onPlayerQuit", root, 
    function() 
        if isElement(car[source]) then destroyElement(car[source]) car[source] = nil end 
    end 
) 
  
  

غير x, y, z الى الأحداثيات اللي تبيها

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...