localPlayer and getElementData ( player , "Group" ) == groupName then
----ماركر الدخول للبيت
local mr1 = createMarker ( x, y, z, "arrow", 1, 255, 0, 0, 255 ) -- الماركر
function msh1(player) -- الوظيفة
if getElementType(player)=="player" then -- التحقق من دخول الماركر
setElementInterior(player, theinterior ,x, y, z ) -- نقل اللاعب للبيت
end -- اغلاق
end -- اغلاق
addEventHandler("onMarkerHit", mr1, msh1) -- الحدث
----ماركر الخروج من البيت
local mr11 = createMarker( x, y, z,"arrow",1.5, 150, 0, 0 ) -- الماركر
setElementInterior( mr11, theinterior ) -- تحديد العالم الوهمي
addEventHandler ("onMarkerHit",mr11, -- الحدث
function ( player ) --الوظيفة
if ( getElementType ( player ) == ( "player" ) ) then -- التحقق من اللاعب
setElementPosition ( player , x ,y , z ) -- نقل اللاعب
setElementInterior( player, 0) -- نقل اللاعب للعالم الوهمي
end -- اغلاق
end -- اغلاق
)
رتبتة لعيونك