Scorpio Posted May 3, 2013 Share Posted May 3, 2013 ابي كود لمود جروب سيستم يعني لما احط الكود ذا ما احد يدقر يفتح باب مقر او يستخدم ماركر انتقال او يستخدم ماركر سيارة غير الي مسوي جروب بأسم معين Link to comment
Scorpio Posted May 3, 2013 Author Share Posted May 3, 2013 وش المود اللي تستخدمة <> مود العقرب https://community.multitheftauto.com/index.php?p= ... ls&id=6911 Link to comment
iPrestege Posted May 3, 2013 Share Posted May 3, 2013 if ( getElementData(playerElement,"Group") == "Group" ) then Link to comment
Scorpio Posted May 3, 2013 Author Share Posted May 3, 2013 if ( getElementData(playerElement,"Group") == "Group" ) then ما ظبت شوف الأكواد local Object = createObject ( 980, 1270.5, -1650, 16, 0, 0 ,90 ) local Marker = createMarker ( 1272.3994140625, -1650.7998046875, 10.800000190735, 'cylinder', 18, 0, 0, 0, 0 ) open = false function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if ( getElementData(playerElement,"KOL") == "KOL" ) then if not Open then moveObject ( Object, 1500, 1270.5, -1650, 8.1 ) else moveObject ( Object, 1500, 1270.5, -1650, 16 ) end Open = not Open else outputChatBox ( '* You must be \'KOL\' !', player, 200, 0, 0, true ) end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject ) end ) createBlip ( 1270.5, -1650, 16 , 20 ) Link to comment
PaiN^ Posted May 3, 2013 Share Posted May 3, 2013 local Object = createObject ( 980, 1270.5, -1650, 16, 0, 0 ,90 ) local Marker = createMarker ( 1272.3994140625, -1650.7998046875, 10.800000190735, 'cylinder', 18, 0, 0, 0, 0 ) open = false function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if getElementData(player,"Group") == "KOL" then if not Open then moveObject ( Object, 1500, 1270.5, -1650, 8.1 ) else moveObject ( Object, 1500, 1270.5, -1650, 16 ) end Open = not Open else outputChatBox ( '* You must be 'KOL' !', player, 200, 0, 0, true ) end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject ) end ) Link to comment
Scorpio Posted May 3, 2013 Author Share Posted May 3, 2013 local Object = createObject ( 980, 1270.5, -1650, 16, 0, 0 ,90 ) local Marker = createMarker ( 1272.3994140625, -1650.7998046875, 10.800000190735, 'cylinder', 18, 0, 0, 0, 0 ) open = false function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if getElementData(player,"Group") == "KOL" then if not Open then moveObject ( Object, 1500, 1270.5, -1650, 8.1 ) else moveObject ( Object, 1500, 1270.5, -1650, 16 ) end Open = not Open else outputChatBox ( '* You must be 'KOL' !', player, 200, 0, 0, true ) end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject ) end ) مشكور مرة ظبت معايا Link to comment
iPrestege Posted May 3, 2013 Share Posted May 3, 2013 if getElementData(player,"Group") == "KOL" then هنا كان الخطأ عندكـ المفروض ماتغير معرف الداتا "Group" وانت ماحطيت player نسختة وبس Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now