ووضح وش تبي اي كود مو كل اكواد برمجه المقرات
--*******************
-- By Manster ..
--*******************
local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت
addEventHandler("onMarkerHit", Manstermarker,
function (player)
if getElementType(player) == "player" then
if ( isPedInVehicle(player) ) then return end
if ( getElementData(player, "Group") ~= "Group Name" ) then
outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true)
else
outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true)
setElementInterior(player, 1)
setElementPosition(player, x,y,z)-- احداثيات دخول البيت
end
end
end)
local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت
setElementInterior(Manstermarker2, 1)
addEventHandler("onMarkerHit", Manstermarker2,
function (MarkerHit)
if getElementType(MarkerHit) == "player" then
if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then
outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true)
else
setElementInterior(MarkerHit, 0)
setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت
outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true)
end
end
end)