اتوقع العنوان واضح شوي
انا سويت هذا المود عشان يحرك الاشياء بس فيه خطأ لا هنتم ابيكم تصححوه و تقولون وش الخطأ عشان اتعلم
root = getRootElement ()
a1 = createObject ( 2938, 907.19921875, 1841.5, 15.699999809265, 0, 0, 265.99548339844)
b1 = createObject ( 3095, 868.29998779297, 1728.4000244141, 30.10000038147, 0, 0, 2)
c1 = createObject ( 2959, 892, 1764.1999511719, 31.799999237061, 0, 0, 269.5)
function Open ( pla )
if getElementType ( pla ) == "player" then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then
moveObject (a1, 300, 907.19921875, 1841.5, 19.699998855591)
moveObject (b1, 300, 872.29998779297, 1728.0999755859, 30.10000038147)
moveObject (c1, 2500, 890.5, 1764.1999511719, 31.799999237061)
end
end
end
addEventHandler ( "onColShapeHit", Open)
function Close ( pla )
if getElementType ( pla ) == "player" then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then
moveObject (a1, 300, 907.19921875, 1841.5, 15.699999809265)
moveObject (b1, 300, 868.29998779297, 1728.4000244141.7998046875, 30.10000038147)
moveObject (c1, 2500, 892, 1764.1999511719, 31.799999237061)
end
end
end
addEventHandler ( "onColShapeLeave", Close )
يخلي الاوبجيكت يتحرك لما يقرب الادمن