Scorpio Posted April 30, 2013 Share Posted April 30, 2013 (edited) السلام عليكم كيف الحال ؟ ان شاء الله يخير دوم المهم* انا ابي كود يفتح الباب بزر + فقد للأدمن Edited April 30, 2013 by Guest Link to comment
iPrestege Posted April 30, 2013 Share Posted April 30, 2013 (edited) createMarker createObject getElementType "onMarkerHit" moveObject "onMarkerLeave" -- moveObject too . Edited April 30, 2013 by Guest Link to comment
PaiN^ Posted April 30, 2013 Share Posted April 30, 2013 باين عليك جديد, إقرأ الويكي عشان تفهم شوي للبرمجة wiki Link to comment
Scorpio Posted April 30, 2013 Author Share Posted April 30, 2013 createMarker getElementType "onMarkerHit" moveObject "onMarkerLeave" -- moveObject too . يالغالي ابي الكود يكون شرح بالعربي Link to comment
Scorpio Posted April 30, 2013 Author Share Posted April 30, 2013 باين عليك جديد, إقرأ الويكي عشان تفهم شوي للبرمجةwiki انا اعرف ابرمج شوي لكن ابي الكود Link to comment
Scorpio Posted April 30, 2013 Author Share Posted April 30, 2013 لكن ابيه يفتح للأدمن فقد Link to comment
iPrestege Posted April 30, 2013 Share Posted April 30, 2013 https://forum.multitheftauto.com/viewtopic.php?f=160&t=55335&p=534582&hilit=%D8%A8%D9%88%D8%A7%D8%A8%D8%A9#p534601 Link to comment
Scorpio Posted May 2, 2013 Author Share Posted May 2, 2013 https://forum.multitheftauto.com/viewtopic.php?f=160&t=55335&p=534582&hilit=%D8%A8%D9%88%D8%A7%D8%A8%D8%A9#p534601 ما ظبت معيا شوف الي سويتو local Object = createObject ( 980, 1319.19921875, 746.8994140625, 16 0, 0, 0 ) local Marker = createMarker ( 1319.2998046875, 743,13.39999961853 'cylinder', 2, 0, 0, 0, 0 ) function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then if not Open then moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 10 ) else moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 16 ) end Open = not Open else outputChatBox ( "* You must be 'Admin' !", 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 2, 2013 Author Share Posted May 2, 2013 + انا ابي الأدمن لما يقرب للباب ويطغت تاب يفتح ولو من بعيد ما يقدر مو ماركر Link to comment
Scorpio Posted May 2, 2013 Author Share Posted May 2, 2013 https://forum.multitheftauto.com/viewtopic.php?f=160&t=58413 يالغالي ذا بس لما تروح للماركر انا ما ابي الماركر ابي لما يقرب + لما يفتح الباب يقول "مرحباً بك في المقر 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