Jump to content

ارجوا المساعدة


Recommended Posts

السلام عليكم ورحمة الله وبركاته

اليوم وانا احووس واححوس في المنتدى شفت كود متعوب عليه ففكرت اني اخذه واكمله

كلمت صاحبه (بيكول) ووافق اني اخذ واسأل فيه واعدل عليه ...

المهم بعد زيادات بسسيييطة

setTimer(function() 
    car1 = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
    car1Blip1 = createBlipAttachedTo(car1, 53) 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(car1, true) 
end, 5000, 1) 
  
function on_Enter_car(vehicle) 
    if (vehicle == car1) and not car1Marker then 
        car1Marker = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
        car1Blip2 = createBlip(14.14, 14.7, 3.1, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car1Marker, root, false) 
        setElementVisibleTo(car1Blip2, root, false) 
        setElementVisibleTo(car1Marker, source, true) 
        setElementVisibleTo(car1Blip2, source, true) 
        -- s 
    elseif (vehicle == car2) and not car2Marker then 
        car2Marker = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
        car2Blip1 = createBlip(25.24, -48.5, 2.11, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car2Marker, root, false) 
        setElementVisibleTo(car2Blip1, root, false) 
        setElementVisibleTo(car2Marker, source, true) 
        setElementVisibleTo(car2Blip1, source, true) 
        -- s 
        elseif (vehicle == car3) and not car3Marker then 
        car3Marker = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
        car3Blip1 = createBlip(25.24, -48.5, 2.11, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car3Marker, root, false) 
        setElementVisibleTo(car3Blip1, root, false) 
        setElementVisibleTo(car3Marker, source, true) 
        setElementVisibleTo(car3Blip1, source, true) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, on_Enter_car) 
  
function on_Hit_Marker(hitElement) 
    if getElementType(hitElement) ~= "player" then return end 
    if (source == car1Marker) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
        --s 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        --ss 
        elseif (source == car3Marker) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

يطلع لي بسس اول سيارتين الثالثة ماتطلع ليييييه؟

Edited by Guest
Link to comment

في وحده اسمها car2

والثانيه car2

خل الثانيه car3

setTimer(function() 
    car1 = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
    car1Blip1 = createBlipAttachedTo(car1, 53) 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(car1, true) 
end, 5000, 1) 
  
function on_Enter_car(vehicle) 
    if (vehicle == car1) and not car1Marker then 
        car1Marker = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
        car1Blip2 = createBlip(14.14, 14.7, 3.1, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car1Marker, root, false) 
        setElementVisibleTo(car1Blip2, root, false) 
        setElementVisibleTo(car1Marker, source, true) 
        setElementVisibleTo(car1Blip2, source, true) 
        -- s 
    elseif (vehicle == car2) and not car2Marker then 
        car2Marker = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
        car2Blip1 = createBlip(25.24, -48.5, 2.11, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car2Marker, root, false) 
        setElementVisibleTo(car2Blip1, root, false) 
        setElementVisibleTo(car2Marker, source, true) 
        setElementVisibleTo(car2Blip1, source, true) 
        -- s 
        elseif (vehicle == car3) and not car3Marker then 
        car3Marker = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
        car3Blip1 = createBlip(25.24, -48.5, 2.11, 51) 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(car3Marker, root, false) 
        setElementVisibleTo(car3Blip1, root, false) 
        setElementVisibleTo(car3Marker, source, true) 
        setElementVisibleTo(car3Blip1, source, true) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, on_Enter_car) 
  
function on_Hit_Marker(hitElement) 
    if getElementType(hitElement) ~= "player" then return end 
    if (source == car1Marker) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
        --s 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        --ss 
        elseif (source == car3Marker) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car3 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car3, 53) 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
Edited by Guest
Link to comment
في وحده اسمها car2

والثانيه car2

خل الثانيه car3

موو هذا اللي صاير يَ خيييه

بسس مو زابط

وش صاير معك الحين؟

اشرح لنا وش بتسوي ؟

شووف بسسوي سيارة تطلع اذا طلعت تاخذها توصلها لماركر والماركر هذا يعطيك فلوسس , اتوقع الشباب يعرفونها بـ اسم hijack

Link to comment

المود تطلع سيارة وتوصلها للماركر ,تطلع سيارة غيرها وتوصلها ,وتطلع سيارة غيرها ....

وتستمر الحياة كذا

الزبدة هي تطلع مرة ومرتين بسس ماتطلع ثالثة وشش السبب؟ وش الاخطاء؟

يب اذا لمس ماركر السيارة الثانية ,تختفي الثانية وتطلع الثالثة

واذا طلعت الثالثة تلمس ماركرها وتطلع رابعة كذا

Link to comment

مم الكود ملخبط,

جرب كذآ,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], source, true) 
        setElementVisibleTo(Blip[1], source, true) 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170)   
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then    
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[2], source, true) 
        setElementVisibleTo(Blip[2], source, true) 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
        setElementVisibleTo(Marker[3], source, true) 
        setElementVisibleTo(Blip[3], source, true) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(Vehicle[1]) 
        destroyElement(Marker[1]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
    elseif (source == Marker[2]) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        destroyElement(Vehicle[2]) 
        destroyElement(Marker[2]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
        elseif (source == Marker[3]) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(Vehicle[3]) 
        destroyElement(Marker[3]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 
Link to comment
مم الكود ملخبط,

جرب كذآ,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], source, true) 
        setElementVisibleTo(Blip[1], source, true) 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170)   
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then    
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[2], source, true) 
        setElementVisibleTo(Blip[2], source, true) 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
        setElementVisibleTo(Marker[3], source, true) 
        setElementVisibleTo(Blip[3], source, true) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(Vehicle[1]) 
        destroyElement(Marker[1]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
    elseif (source == Marker[2]) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        destroyElement(Vehicle[2]) 
        destroyElement(Marker[2]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
        elseif (source == Marker[3]) then   
        givePlayerMoney(hitElement, 46000) 
        destroyElement(Vehicle[3]) 
        destroyElement(Marker[3]) 
        destroyElement(Blip[5]) 
        destroyElement(Blip[6]) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 

ضبط بعض الشيء ض1

يطلع السيارات الثلاث والماركرات الثلاث مع بعضض

Link to comment

سيارة تركبها يطلع ماركر تروح للماركر يختفي الماركر والسيارة والعلامة , تطلع سيارة تروح لماركر ثاني غير هذا (احداثيات غير*)توصلها تاخذ فلوس ونعيد من جديد

Link to comment

جرب كذآ ,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
        setPlayerWantedLevel(source, 1) 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170)   
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then    
        setElementVisibleTo(Marker[2], root, true) 
        setElementVisibleTo(Vehicle[2], root, true) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
    elseif (source == Marker[2]) then 
        setElementVisibleTo(Marker[3], root, true) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[3], root, true) 
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        elseif (source == Marker[3]) then 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 
Link to comment
جرب كذآ ,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
        setPlayerWantedLevel(source, 1) 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170)   
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then    
        setElementVisibleTo(Marker[2], root, true) 
        setElementVisibleTo(Vehicle[2], root, true) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
    elseif (source == Marker[2]) then 
        setElementVisibleTo(Marker[3], root, true) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[3], root, true) 
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        elseif (source == Marker[3]) then 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 

نفسس اللي قبله بـ الضبط

Link to comment

يعني انت تبي السيارة الاولى تكون ظاهره هي والماركر الاول , واذا لمس الماركر الاول تختفي السيارة وتطلع سيارة ثانيه ويطلع الماركر الثآني وكذآ ؟

جرب,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
    if Vehicle[1] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
           end 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
    if Vehicle[2] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
              end 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
    if Vehicle[3] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then    
        setElementVisibleTo(Marker[2], root, true) 
        setElementVisibleTo(Vehicle[2], root, true) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
    elseif (source == Marker[2]) then 
        setElementVisibleTo(Marker[3], root, true) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[3], root, true) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        elseif (source == Marker[3]) then 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 
Link to comment
يعني انت تبي السيارة الاولى تكون ظاهره هي والماركر الاول , واذا لمس الماركر الاول تختفي السيارة وتطلع سيارة ثانيه ويطلع الماركر الثآني وكذآ ؟

جرب,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
    if Vehicle[1] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
           end 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
    if Vehicle[2] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
              end 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
    if Vehicle[3] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then    
        setElementVisibleTo(Marker[2], root, true) 
        setElementVisibleTo(Vehicle[2], root, true) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
    elseif (source == Marker[2]) then 
        setElementVisibleTo(Marker[3], root, true) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[3], root, true) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        elseif (source == Marker[3]) then 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 

نفسس اللي قبل :|

بسس هذا المفروض يجي اول كود تحطه

لانه عفسس المود اكثثر

قام يطلع كل شي في البداية واذا وصلت السيارة مابختفي شي

Link to comment

الحين, انت تبي اول ماركر يكون ظاهر والسيارة الاولى,

واذا دخل الماركر الاول تنسحب السيارة الاولى ويختفي الماركر الاول

ويظهر الماركر الثاني والسيارة الثآنيه؟

Link to comment
الحين, انت تبي اول ماركر يكون ظاهر والسيارة الاولى,

واذا دخل الماركر الاول تنسحب السيارة الاولى ويختفي الماركر الاول

ويظهر الماركر الثاني والسيارة الثآنيه؟

بالزبط يَ باشا ضض1

Link to comment
يعني انت تبي السيارة الاولى تكون ظاهره هي والماركر الاول , واذا لمس الماركر الاول تختفي السيارة وتطلع سيارة ثانيه ويطلع الماركر الثآني وكذآ ؟

جرب,

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[4] = createBlipAttachedTo(Vehicle[1], 53) 
Blip[5] = createBlipAttachedTo(Vehicle[2], 53) 
Blip[6] = createBlipAttachedTo(Vehicle[3], 53) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
    if Vehicle[1] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Blip[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
           end 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
    if Vehicle[2] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
              end 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
    if Vehicle[3] then 
        setPlayerWantedLevel(source, 1) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then    
        setElementVisibleTo(Marker[2], root, true) 
        setElementVisibleTo(Vehicle[2], root, true) 
        setElementVisibleTo(Marker[3], root, false) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
    elseif (source == Marker[2]) then 
        setElementVisibleTo(Marker[3], root, true) 
        setElementVisibleTo(Blip[1], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[3], root, true) 
        setElementVisibleTo(Vehicle[3], root, false) 
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        elseif (source == Marker[3]) then 
        setElementVisibleTo(Blip[2], root, false) 
        setElementVisibleTo(Marker[1], root, false) 
        setElementVisibleTo(Marker[2], root, false) 
        setElementVisibleTo(Vehicle[1], root, false) 
        setElementVisibleTo(Vehicle[2], root, false) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 

#نـا قصــك انـــد حـق سـطــر 38

Link to comment

Marker = {} 
Blip = {} 
Vehicle = {} 
Marker[1] = createMarker(14.14, 14.7, 2.1, "cylinder", 5, 0, 0, 205, 170) 
Blip[1] = createBlip(14.14, 14.7, 3.1, 51) 
Blip[2] = createBlip(25.24, -48.5, 2.11, 51) 
Blip[3] = createBlip(25.24, -48.5, 2.11, 51) 
Vehicle[1] = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) 
function onEnterCar(player) 
    if (getElementType(player) == 'player' ) then 
        setPlayerWantedLevel(player, 1) 
     end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170)   
function OnEnterCar(player) 
    if (getElementType(vehicle) == 'player' ) then   
        setPlayerWantedLevel(player, 1) 
        end 
end 
addEventHandler("onPlayerVehicleEnter",root,onEnterCar) 
function On_EnterCar(player) 
    if (getElementType(player) == 'player' ) then   
        setPlayerWantedLevel(player, 1) 
    end 
end 
addEventHandler("onPlayerVehicleEnter", root, On_EnterCar) 
  
function on_Hit_Marker(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[1]) then 
Vehicle[2] = createVehicle(402, 29.2, 18.35, 3.1) 
Marker[2] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
destroyElement(Marker[1]) 
        givePlayerMoney(hitElement, 46000) 
          end 
      end 
end 
addEventHandler("onMarkerHit",Marker[1],on_Hit_Marker) 
function Hit(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[2]) then 
destroyElement(Marker[2]) 
destroyElement(Vehicle[2]) 
Vehicle[3] = createVehicle(402, 29.2, 18.35, 3.1) 
Marker[3] = createMarker (25.24, -48.51, 2.11, "cylinder", 5, 0, 0, 205, 170) 
        setPedArmor(hitElement, 60) 
           end 
      end 
end 
addEventHandler("onMarkerHit",Marker[2],Hit) 
function Hitt(hitElement) 
if (getElementType(hitElement) == 'player' ) then 
    if (source == Marker[3]) then 
destroyElement(Vehicle[2]) 
        givePlayerMoney(hitElement, 46000) 
         end 
    end 
end 
addEventHandler("onMarkerHit", root, Hitt) 
setTimer(function() 
    outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) 
    setVehicleDamageProof(Vehicle[1], true) 
end, 5000, 1) 
Link to comment

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...