Jump to content

صفحة طلبآآتي


BeCooL

Recommended Posts

  • Replies 477
  • Created
  • Last Reply

Top Posters In This Topic

getTimerDetails 

طيب انا سويته ككذا وش الخطأ اللي فيه ؟

marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 0, 255, 255) 
  
function theMarker( hitPlayer, matchingDimension ) 
if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then 
setMarkerColor ( marker5, 255, 0, 0, 255 ) 
setTimer ( function() 
         destroyElement ( marker5 ) 
         marker6 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 255, 0, 255) 
    end, 10000, 1 ) 
removeEventHandler( "onMarkerHit", marker5, theMarker ) 
end 
   end 
   addEventHandler( "onMarkerHit", marker5, theMarker ) 
  
 function b1 (hitPlayer , matchingDimension) 
 if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then 
    setElementPosition ( hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 )  
        end 
     end 
 addEventHandler( "onMarkerHit", marker6, b1 ) 

Link to comment
والله اني مشوش

ابغى اذا لمس لاعب الماركر

بعد وقت يصير الماركر ينقل يعني اذا لمسه لاعب آخر ينقله

هذا الكود

marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 0, 255, 255) 
  
function theMarker( hitPlayer, matchingDimension ) 
if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then 
setMarkerColor ( marker5, 255, 0, 0, 255 ) 
setElementPosition ( hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 )  
end 
   end 
   addEventHandler( "onMarkerHit", marker5, theMarker ) 
  
  

marker5 = createMarker(1379.8,-945.3,2171.8, "cylinder", 2, 0, 0, 255, 255) 
  
function theMarker(hitPlayer) 
    if not canEnter and not isTimer(Timer) then 
        Timer = setTimer(function() canEnter = true end, 60000, 1) 
    return end 
    if (getTeamName(getPlayerTeam(hitPlayer)) == "Criminal") and canEnter then 
        setMarkerColor(marker5, 255, 0, 0, 255) 
        setElementPosition(hitPlayer, 1383.16, -942.83, 2172.81) 
    end 
end 
addEventHandler("onMarkerHit", marker5, theMarker) 

Link to comment
والله اني مشوش

ابغى اذا لمس لاعب الماركر

بعد وقت يصير الماركر ينقل يعني اذا لمسه لاعب آخر ينقله

هذا الكود

marker5 = createMarker( 1379.8220214844,-945.32458496094,2171.8156738281, "cylinder", 2, 0, 0, 255, 255) 
  
function theMarker( hitPlayer, matchingDimension ) 
if (getTeamName(getPlayerTeam(hitPlayer))=="Criminal") then 
setMarkerColor ( marker5, 255, 0, 0, 255 ) 
setElementPosition ( hitPlayer, 1383.1614990234, -942.83343505859, 2172.8156738281 )  
end 
   end 
   addEventHandler( "onMarkerHit", marker5, theMarker ) 
  
  

marker5 = createMarker(1379.8,-945.3,2171.8, "cylinder", 2, 0, 0, 255, 255) 
  
function theMarker(hitPlayer) 
    if not canEnter and not isTimer(Timer) then 
        Timer = setTimer(function() canEnter = true end, 60000, 1) 
    return end 
    if (getTeamName(getPlayerTeam(hitPlayer)) == "Criminal") and canEnter then 
        setMarkerColor(marker5, 255, 0, 0, 255) 
        setElementPosition(hitPlayer, 1383.16, -942.83, 2172.81) 
    end 
end 
addEventHandler("onMarkerHit", marker5, theMarker) 

يسلمؤؤ

ي شباب بالله ابغى محد يقدر يشوف الماركر والبليب الا اللي في السياره حاولت فيها بأكثر من طريقة ولا ضبط

هذا الكود

    setTimer ( function() 
        bab = createVehicle ( 411, -0.77234786748886, 0.1968837082386, 3.1171875 ) 
        fg = createBlipAttachedTo ( bab, 53 ) 
        outputChatBox ( "#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true ) 
        setVehicleDamageProof ( bab, true ) 
        setElementVisibleTo ( blip, root, false ) 
    end, 5000, 1 ) 
  
function car ( vehicle ) 
if vehicle == bab then 
cac = createMarker ( 14.138179779053, 14.694575309753, 2.1171875, "cylinder", 5, 0, 0, 205, 170 ) 
blip = createBlip ( 14.138179779053 , 14.694575309753 , 3.1171875 , 51 ) 
setPlayerWantedLevel (source, 1) 
setElementVisibleTo ( blip, root, true ) 
end  
   end 
addEventHandler ( "onPlayerVehicleEnter", root, car ) 
  
function ggg ( hitElement ) 
if ( source == cac ) then    
givePlayerMoney ( hitElement, 46000 ) 
setPedArmor ( hitElement, 60 ) 
triggerClientEvent ( hitElement, "playSoundC", hitElement ) 
destroyElement ( bab ) 
destroyElement ( cac ) 
destroyElement ( blip ) 
destroyElement ( fg ) 
mohamad1 = createVehicle(402, 29.196004867554, 18.353984832764, 3.1171875) 
fg2 = createBlipAttachedTo ( mohamad1, 53 ) 
end  
   end 
addEventHandler ( "onMarkerHit", root, ggg ) 
  
function carr ( vehicle ) 
if vehicle == mohamad1 then 
mohamad2 = createMarker (25.237403869629, -48.512912750244, 2.1171875, "cylinder", 5, 0, 0, 205, 170) 
blip2 = createBlip ( 25.237403869629 , -48.512912750244 , 2.1171875 , 51 ) 
setPlayerWantedLevel (source, 1) 
end  
   end 
addEventHandler ( "onPlayerVehicleEnter", root, carr ) 
  
function ggh ( hitElement ) 
if ( source == mohamad2 ) then    
givePlayerMoney ( hitElement, 46000 ) 
setPedArmor ( hitElement, 60 ) 
triggerClientEvent ( hitElement, "playSoundC", hitElement ) 
destroyElement ( mohamad1 ) 
destroyElement ( mohamad2 ) 
destroyElement ( blip2 ) 
destroyElement ( fg2 ) 
mohamad1 = createVehicle(402, 29.196004867554, 18.353984832764, 3.1171875) 
end  
   end 
addEventHandler ( "onMarkerHit", root, ggh ) 

Link to comment
52 في سطر

مره ثانية mohamad1 أنت تسوي السيارة

~_~ مافهمت ايش الي تبي تسويه

ابغى اسوي مود hijak

حق cit

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

بس المشكله ان الماركر تطلع لكل السيرفر انا ابغاها للاعب اللي في السياره

Link to comment
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) 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) 
    elseif (vehicle == car2) 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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

Link to comment
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) 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) 
    elseif (vehicle == car2) 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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

ظبط بس واجهتني مشكله ان الاعب اذا نزل وركب مره ثانيه يصير ماركر ثاني

انا اسئلت من قبل نفس المشكله وجاوب علي عناد وعدلها لي ولا فهمت وش سوى

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

Link to comment
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) 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) 
    elseif (vehicle == car2) 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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

ظبط بس واجهتني مشكله ان الاعب اذا نزل وركب مره ثانيه يصير ماركر ثاني

انا اسئلت من قبل نفس المشكله وجاوب علي عناد وعدلها لي ولا فهمت وش سوى

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

يعني تبيه الماركر يتنفذ مرة وحدة ؟

Link to comment
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) 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) 
    elseif (vehicle == car2) 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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

ظبط بس واجهتني مشكله ان الاعب اذا نزل وركب مره ثانيه يصير ماركر ثاني

انا اسئلت من قبل نفس المشكله وجاوب علي عناد وعدلها لي ولا فهمت وش سوى

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

يعني تبيه الماركر يتنفذ مرة وحدة ؟

يب

Link to comment
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) 
    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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

Link to comment
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) 
    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) 
    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) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car1) 
        destroyElement(car1Marker) 
        destroyElement(car1Blip1) 
        destroyElement(car1Blip2) 
        car2 = createVehicle(402, 29.2, 18.35, 3.1) 
        car2Blip2 = createBlipAttachedTo(car2, 53) 
    elseif (source == car2Marker) then   
        givePlayerMoney(hitElement, 46000) 
        setPedArmor(hitElement, 60) 
        triggerClientEvent(hitElement, "playSoundC", hitElement) 
        destroyElement(car2) 
        destroyElement(car2Marker) 
        destroyElement(car2Blip1) 
        destroyElement(car2Blip2) 
        -- mohamad1 = createVehicle(402, 29.2, 18.36, 3.12) ??  
    end 
end 
addEventHandler("onMarkerHit", root, on_Hit_Marker) 

انا سويت مثل ككذا بس سويتها بإسم الماركر القديم :lol:

مشكووؤر

Link to comment

شباب وش الخطأ ؟

    addEventHandler("onClientMarkerHit", root, 
    function (localPlayer) 
    if source == marker200 then  
    if getElementType(player) == "player" and player == localPlayer then 
     if ( isPedInVehicle( player ) ) then 
    setElementFrozen ( localPlayer, true ) 
    setTimer ( setElementFrozen, 3000, 1, localPlayer, false) 
             end 
                end 
                   end 
                   end ) 

Link to comment
شباب وش الخطأ ؟
    addEventHandler("onClientMarkerHit", root, 
    function (localPlayer) 
    if source == marker200 then  
    if getElementType(player) == "player" and player == localPlayer then 
     if ( isPedInVehicle( player ) ) then 
    setElementFrozen ( localPlayer, true ) 
    setTimer ( setElementFrozen, 3000, 1, localPlayer, false) 
             end 
                end 
                   end 
                   end ) 

انت تبيه يجمد السيارة ولا الاعب؟

Link to comment
شباب وش الخطأ ؟
    addEventHandler("onClientMarkerHit", root, 
    function (localPlayer) 
    if source == marker200 then  
    if getElementType(player) == "player" and player == localPlayer then 
     if ( isPedInVehicle( player ) ) then 
    setElementFrozen ( localPlayer, true ) 
    setTimer ( setElementFrozen, 3000, 1, localPlayer, false) 
             end 
                end 
                   end 
                   end ) 

انت تبيه يجمد السيارة ولا الاعب؟

السياره

Link to comment
  
addEventHandler ( "onClientMarkerHit", root, 
    function ( thePlayer ) 
        if source == marker200 then 
            if isPedInVehicle ( thePlayer ) then 
                setElementFrozen ( getPedOccupiedVehicle ( thePlayer ), true ) 
                setTimer ( setElementFrozen, 3000, 1, getPedOccupiedVehicle ( thePlayer ), false ) 
            end 
        end 
    end 
) 
  

Edited by Guest
Link to comment
شباب وش الخطأ ؟
    addEventHandler("onClientMarkerHit", root, 
    function (localPlayer) 
    if source == marker200 then  
    if getElementType(player) == "player" and player == localPlayer then 
     if ( isPedInVehicle( player ) ) then 
    setElementFrozen ( localPlayer, true ) 
    setTimer ( setElementFrozen, 3000, 1, localPlayer, false) 
             end 
                end 
                   end 
                   end ) 

انت تبيه يجمد السيارة ولا الاعب؟

السياره

ليه حاطه كلنت ؟

marker = createMarker( 0, 0, 0 ) 
  
addEventHandler ( 
    'onMarkerHit', marker, 
    function ( hitElement ) 
        if( getElementType( hitElement ) == 'vehicle' )then 
            setElementFrozen( hitElement, true ) 
            setTimer( setElementFrozen, 3000, 1, hitElement, false ) 
        end 
    end 
) 

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