Jump to content

isElementWithinMarker مشكلة مع


Recommended Posts

Posted (edited)

السلام عليكم

isElementWithinMarker عندي مشكلة مع

مثلا

----

local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255)

setElementInterior(testmarker, 18, -26.10,-90.75,1002.5)

function()

if isElementWithinMarker(thePlayer, testmarker) then

etc....

---

ما ينفع!

Outside واذا كان الماركر

Interior 0 يعني اذا كان في مكان

شغال... طيب ليه شو الناقص ؟

Edited by Guest

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted
السلام عليكم

isElementWithinMarker عندي مشكلة مع

مثلا

----

local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255)

setElementInterior(testmarker, 18, -26.10,-90.75,1002.5)

function()

if isElementWithinMarker(thePlayer, testmarker) then

etc....

---

يا ينفع!

Outside واذا كان الماركر

Interior 0 يعني اذا كان في مكان

شغال... طيب ليه شو الناقص ؟

قصدك ماتبي تصير الوظيفة الا اذا كان بالانترور الفلاني؟

  

Posted
السلام عليكم

isElementWithinMarker عندي مشكلة مع

مثلا

----

local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255)

setElementInterior(testmarker, 18, -26.10,-90.75,1002.5)

function()

if isElementWithinMarker(thePlayer, testmarker) then

etc....

---

يا ينفع!

Outside واذا كان الماركر

Interior 0 يعني اذا كان في مكان

شغال... طيب ليه شو الناقص ؟

قصدك ماتبي تصير الوظيفة الا اذا كان بالانترور الفلاني؟

الوظيفة ما تشتغل الا في انترور 0

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted
السلام عليكم

isElementWithinMarker عندي مشكلة مع

مثلا

----

local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255)

setElementInterior(testmarker, 18, -26.10,-90.75,1002.5)

function()

if isElementWithinMarker(thePlayer, testmarker) then

etc....

---

يا ينفع!

Outside واذا كان الماركر

Interior 0 يعني اذا كان في مكان

شغال... طيب ليه شو الناقص ؟

قصدك ماتبي تصير الوظيفة الا اذا كان بالانترور الفلاني؟

الوظيفة ما تشتغل الا في انترور 0

انت ماوضحت المشكلة يعني تبي الوظيفة ماتشتغل في انترور 0 ولا كيف :/

  

Posted
if getElementInterior ( thePlayer ) == 18 then 
end 

markerInterior = getElementInterior ( testmarker ) 
playerInterior = getElementInterior ( thePlayer  ) 
  
if markerInterior == playerInterior  then 
end 

Posted
if getElementInterior ( thePlayer ) == 18 then 
end 

markerInterior = getElementInterior ( testmarker ) 
playerInterior = getElementInterior ( thePlayer  ) 
  
if markerInterior == playerInterior  then 
end 

انا بدي اياه اذا كان في ماركر

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted
if getElementInterior ( thePlayer ) == 18 then 
end 

markerInterior = getElementInterior ( testmarker ) 
playerInterior = getElementInterior ( thePlayer  ) 
  
if markerInterior == playerInterior  then 
end 

انا بدي اياه اذا كان في ماركر

مافهمت قصدك يعني الوظيفة تصير وانت منت بـ انترور 18 او الوظيفة تصير وانت ما لمست الماركر مريت من كان فوقة او او الخ

  

Posted
انا بدي اياه اذا كان في ماركر

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

تقدر تضيفه داخل إيفنت يوم تلمس الماركر ..او بـ الأصح تحطه في كودك

Posted

مافهمت قصدك يعني الوظيفة تصير وانت منت بـ انترور 18 او الوظيفة تصير وانت ما لمست الماركر مريت من كان فوقة او او الخ

انا بدي الوظيفة تشتغل في انترور 18 بس ما تشتغل الى بالانترور 0 فهمت؟

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted
local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255) 
setElementInterior(testmarker, 18, -26.10,-90.75,1002.5) 
  
  
function duty (thePlayer, matchingDimension) 
        if isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent(root, "etc", root, thePlayer) 
    end 
end 
addCommandHandler("run", duty) 

طيب كيف اخليه اذا لمس المارررركر ؟

انا بدي اياه كوماند !!!!!

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted
local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255) 
setElementInterior(testmarker, 18, -26.10,-90.75,1002.5) 
  
  
function duty (thePlayer, matchingDimension) 
        if isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent(root, "etc", root, thePlayer) 
    end 
end 
addCommandHandler("run", duty) 

طيب كيف اخليه اذا لمس المارررركر ؟

انا بدي اياه كوماند !!!!!

function duty ( thePlayer ) 
        if getElementInterior ( thePlayer ) == 18 and isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent( thePlayer,'etc',thePlayer ) 
    end 
end 
addCommandHandler('run', duty) 

Server Side

الترايقر كان للكل خليتة للاعب بس ..

  

Posted
local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255) 
setElementInterior(testmarker, 18, -26.10,-90.75,1002.5) 
  
  
function duty (thePlayer, matchingDimension) 
        if isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent(root, "etc", root, thePlayer) 
    end 
end 
addCommandHandler("run", duty) 

طيب كيف اخليه اذا لمس المارررركر ؟

انا بدي اياه كوماند !!!!!

function duty ( thePlayer ) 
        if getElementInterior ( thePlayer ) == 18 and isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent( thePlayer,'etc',thePlayer ) 
    end 
end 
addCommandHandler('run', duty) 

Server Side

الترايقر كان للكل خليتة للاعب بس ..

انسه يا عمري

عمره ما راح يزبط :mrgreen:

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted

السبب ي طويل العمر ؟ انت بالانترور 18 المفروض يشتغل غيرة مآيشتغل ذذ وش السبب انة مآيشتغل..؟

  

Posted
local testmarker = createMarker(-26.10,-90.75,1002.5, 'cylinder', 0.9, 255, 0, 0, 255) 
setElementInterior(testmarker, 18, -26.10,-90.75,1002.5) 
  
  
function duty (thePlayer, matchingDimension) 
        if isElementWithinMarker(thePlayer, testmarker) then 
        triggerClientEvent(root, "etc", root, thePlayer) 
    end 
end 
addCommandHandler("run", duty) 

طيب كيف اخليه اذا لمس المارررركر ؟

انا بدي اياه كوماند !!!!!

local testmarker = createMarker ( -26.10,-90.75,1002.5, "cylinder", 1.5, 255, 0, 0, 255 ) 
setElementInterior ( testmarker, 18 ) 
  
function duty ( thePlayer ) 
    if isElementWithinMarker ( thePlayer, testmarker ) then 
        if getElementInterior ( thePlayer ) == getElementInterior ( testmarker ) then 
            triggerClientEvent ( thePlayer, "etc", thePlayer, thePlayer ) 
        end 
    end 
end 
addCommandHandler ( "run", duty ) 

Posted

اظن كذاا شغال ولا لا ؟

local testmarker = createMarker ( -26.10,-90.75,1002.5, "cylinder", 1.5, 255, 0, 0, 255 ) 
setElementInterior ( testmarker, 18 ) 
  
addEventHandler("onMarkerHit",testmarker, 
    function (player) 
        if getElementType(player) == "player" then 
            setElementData(player,"In",true) 
        end 
    end 
) 
  
addEventHandler("onMarkerLeave",testmarker, 
    function (player) 
        if getElementType(player) == "player" then 
            setElementData(player,"In",false) 
        end 
    end 
) 
  
addCommandHandler("run", 
    function (player) 
        local data = getElementData(player,"In") 
        if data and data == true then 
            triggerClientEvent(root,"etc",root,player) 
        end 
    end 
) 

Retired.

Posted
اظن كذاا شغال ولا لا ؟
local testmarker = createMarker ( -26.10,-90.75,1002.5, "cylinder", 1.5, 255, 0, 0, 255 ) 
setElementInterior ( testmarker, 18 ) 
  
addEventHandler("onMarkerHit",testmarker, 
    function (player) 
        if getElementType(player) == "player" then 
            setElementData(player,"In",true) 
        end 
    end 
) 
  
addEventHandler("onMarkerLeave",testmarker, 
    function (player) 
        if getElementType(player) == "player" then 
            setElementData(player,"In",false) 
        end 
    end 
) 
  
addCommandHandler("run", 
    function (player) 
        local data = getElementData(player,"In") 
        if data and data == true then 
            triggerClientEvent(root,"etc",root,player) 
        end 
    end 
) 

لالا

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted

Server Side

local testmarker = createMarker ( -26.10,-90.75,1002.5, "cylinder", 1.5, 255, 0, 0, 255 ) 
setElementInterior ( testmarker, 18 ) 
  
function duty ( thePlayer ) 
    if isElementWithinMarker ( thePlayer, testmarker ) then 
        if getElementInterior ( thePlayer ) == getElementInterior ( testmarker ) then 
            triggerClientEvent ( thePlayer, "etc", thePlayer, thePlayer ) 
        end 
    end 
end 
addCommandHandler ( "run", duty ) 

Posted
Server Side
local testmarker = createMarker ( -26.10,-90.75,1002.5, "cylinder", 1.5, 255, 0, 0, 255 ) 
setElementInterior ( testmarker, 18 ) 
  
function duty ( thePlayer ) 
    if isElementWithinMarker ( thePlayer, testmarker ) then 
        if getElementInterior ( thePlayer ) == getElementInterior ( testmarker ) then 
            triggerClientEvent ( thePlayer, "etc", thePlayer, thePlayer ) 
        end 
    end 
end 
addCommandHandler ( "run", duty ) 

لالا

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted

يخوي وش فيكك لالا ؟ من بداية كودي والامر تمآم :/

مدري بس شكلك الوظيفة تشتغل وانت مانت واقف بالماركر قصدك :/ ؟ يعني مريت من فوقة ولا شيء ؟

  

Posted
يخوي وش فيكك لالا ؟ من بداية كودي والامر تمآم :/

مدري بس شكلك الوظيفة تشتغل وانت مانت واقف بالماركر قصدك :/ ؟ يعني مريت من فوقة ولا شيء ؟

ما يشتغل شي الا اذا نقلت الماركر الى 0 انترور

ما في حل ... يغلق

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted

حلينآهآ لك بس مدري وش فيك :/ كل شيء تقول خطأ تقول مرة تبية بـ انترور 18 و الحين 0 -_- وش الهرجة ~

  

Posted
حلينآهآ لك بس مدري وش فيك :/ كل شيء تقول خطأ تقول مرة تبية بـ انترور 18 و الحين 0 -_- وش الهرجة ~

انته لسه مو فاهم شي لانك ما قرأت تعليقاتي منيح :shock:

الا رسول الله

بأبي انت وأمي يا رسول الله

--------------------

Posted

client

addEventHandler("onClientMarkerHit", into, 
function ( hitPlayer, matchingDimension ) 
    if ( isElementWithinMarker(hitPlayer, into) ) then 
    triggerServerEvent ("into", getLocalPlayer(), into1) 
    end 
end) 

server

addEvent ("into", true) 
addEventHandler ("into", getRootElement(), 
function(into1) 
    setElementPosition(source,1541.1697998047, -1364.2215576172, 329.796875) 
     end 
) 

جرب :?

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