سبق أن تم طرحة من الأخ مانستر
LINE NUMBER ON/OFF | EXPAND/CONTRACT | SELECT ALL
--*******************
-- 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)
ماركر دم ودرع
LINE NUMBER ON/OFF | EXPAND/CONTRACT | SELECT ALL
--*******************
-- By Manster ..
--*******************
marker = createMarker ( 125.398, 1934.122, 18.261, "cylinder", 1.5, 255, 255, 0, 170 )
addEventHandler( "onMarkerHit", marker,
function (player)
if (getElementType(player) == ("player")) then
if ( getElementData(player, "Group" ) ~= "Group Name" ) then
outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true)
else
outputChatBox("#FF0000* #FFF000Your Health And Your Armor Now 100% .", player, 255, 255, 0, true)
setPedArmor (player, 100)
setElementHealth (player,100)
end
end
end
)
ماركر النقل
LINE NUMBER ON/OFF | EXPAND/CONTRACT | SELECT ALL
local mr11 = createMarker( x,y,z,"arrow",1.5, 150, 0, 0 ) -- مكان الماركر
addEventHandler ("onMarkerHit",mr11,
function ( player )
if ( getElementType ( player ) == ( "player" ) ) then
if ( getElementData(player, "Group" ) ~= "Group Name" ) then
outputChatBox("#FF0000* #FFF000Only For #FF0000 .:[Group Name]:. #FFF000Group ", player, 255, 255, 0, true)
else
outputChatBox("#FF0000* #FFF000Welcome Sir .", player, 255, 255, 0, true)
setElementPosition ( player , x,y,z ) -- مكان الانتقال
end
end
end
)
Group Name = اسم القروب حقك
أذا فادكـ رد بخبر #!
see u