Mando Posted April 28, 2013 Share Posted April 28, 2013 (edited) السلام عليكم انا ماندو مبرمج مبتدا بلعب فى سيرفر رسب و ركبت مود العصابات بتاع كستليو عشان العقرب مش بيتشغل عليه الاحتل المهم حبيت ابرمج البوابه بتاعت المقرات تفتح للقروب بس و البوابه اشتغلت بس مش بتفتح مش عارف ليه المهم شوفو الكود gate = createObject(980, 2127.099609375, 2848.599609375, 12.60000038147, 0, 0, 0 ) --Object ID (Airport Gate=978) & Co-Ordinates of your gates start of position. gatecol = createColCircle (2127.099609375,2848.599609375, 15 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default. function openagates ( thePlayer ) if ( getElementType ( thePlayer ) == "player" ) then local group = getElementData(player,"Group") setElementData(player,"Group",groupname or "" ) if ( groupName == "Mando")then moveObject ( gate, 2000, 2127.1000976563, 2848.6000976563, 16.89999961853 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to. else outputChatBox ( "Sorry You Must Be In Group [F.S] Leader Hobe", thePlayer ) end end end addEventHandler ( "onColShapeHit", gatecol, openagates ) --Event Handler to trigger the function function closeagates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then local group = getElementData(player,"Group") setElementData(player,"Group",groupname or "") if ( groupName == "Mando" )then moveObject ( gate, 2000, 2127.099609375, 2848.599609375, 12.60000038147 ) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close. end end end addEventHandler ( "onColShapeLeave", gatecol, closeagates ) --Event Handler to trigger the function رابط مود القروبات https://community.multitheftauto.com/in ... ls&id=1514 ياريت تظبطهولى ض5 Edited April 28, 2013 by Guest Link to comment
Mando Posted April 28, 2013 Author Share Posted April 28, 2013 https://forum.multitheftauto.com/viewtopic.php?f=160&t=46670 معلش لسه جديد فى المنتدى جارى التعديل Link to comment
فاّرس Posted April 28, 2013 Share Posted April 28, 2013 -- لم يتم التجربة gate = createObject(980, 2127.099609375, 2848.599609375, 12.60000038147, 0, 0, 0 ) --Object ID (Airport Gate=978) & Co-Ordinates of your gates start of position. gatecol = createColCircle (2127.099609375,2848.599609375, 15 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default. function openagates ( player ) if getElementType(player) == "player" then local theTeam = getPlayerTeam(player) if ( theTeam ) and ( theTeam == getTeamFromName("TeamName") ) then moveObject ( gate, 2000, 2127.1000976563, 2848.6000976563, 16.89999961853 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to. else outputChatBox ( "Sorry You Must Be In Group [F.S] Leader Hobe", thePlayer ) end end end addEventHandler ( "onColShapeHit", gatecol, openagates ) --Event Handler to trigger the function function closeagates(player) if getElementType(player) == "player" then local theTeam = getPlayerTeam(player) if ( theTeam ) and ( theTeam == getTeamFromName("TeamName") ) then moveObject ( gate, 2000, 2127.099609375, 2848.599609375, 12.60000038147 ) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close. end end end addEventHandler ( "onColShapeLeave", gatecol, closeagates ) --Event Handler to trigger the function Link to comment
Mando Posted April 28, 2013 Author Share Posted April 28, 2013 حبى ما ابيه تيم ابيه لمود القروبات حق كاستليو انا رافق رابط المود حولت ابرمجه لى شهر بس ما اعرفت و شكرا لطرح كودك Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 exports [ "gang_system" ]:getPlayerGang ( thePlayer ) Link to comment
Mando Posted April 28, 2013 Author Share Posted April 28, 2013 كفووو برستيج بس ممكن تحطلى الكود عشان ما اعرف وين احطه ض1 Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 لم يتم التجربة .. gate = createObject(980, 2127.099609375, 2848.599609375, 12.60000038147, 0, 0, 0 ) --Object ID (Airport Gate=978) & Co-Ordinates of your gates start of position. gatecol = createColCircle (2127.099609375,2848.599609375, 15 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default. function openagates ( thePlayer ) if ( getElementType ( thePlayer ) == "player" ) then local group = exports [ "gang_system" ]:getPlayerGang ( thePlayer ) if ( group == "Mando")then moveObject ( gate, 2000, 2127.1000976563, 2848.6000976563, 16.89999961853 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to. else outputChatBox ( "Sorry You Must Be In Group [F.S] Leader Hobe", thePlayer ) end end end addEventHandler ( "onColShapeHit", gatecol, openagates ) --Event Handler to trigger the function function closeagates(thePlayer) if ( getElementType ( thePlayer ) == "player" ) then local group = exports [ "gang_system" ]:getPlayerGang ( thePlayer ) if ( group == "Mando")then moveObject ( gate, 2000, 2127.099609375, 2848.599609375, 12.60000038147 ) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close. end end end addEventHandler ( "onColShapeLeave", gatecol, closeagates ) --Event Handler to trigger the function سيرفر .. Link to comment
Mando Posted April 28, 2013 Author Share Posted April 28, 2013 انت كفوو بس يفتح و ما يقفل Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 اممم فية خطأ؟ debugscript 3 بـ الكونسول وشوف مع اني متأكد انة المفترض يشتغل ! Link to comment
Mando Posted April 28, 2013 Author Share Posted April 28, 2013 لالالالا خلاص الغلط عندى انا ض1 ض1 تسلم يا جامد وربى انت مبرمج كفوو الله يحميك Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 حياكـ الله ذذ بـ التوفيق .. Link to comment
Recommended Posts