Sfa7 Posted February 10, 2013 Share Posted February 10, 2013 (edited) تمت الافاده Edited February 10, 2013 by Guest Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 myGate1 = createObject ( 2990, 213.69999694824, 1875.9000244141, 13, 0, 0, 180 ) theMarker = createMarker ( 213.69999694824, 1875.9000244141, 13, "cylinder", 8, 0, 0, 0, 0 ) function openMyGate ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) elseif isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) end end addEventHandler ( "onMarkerHit", theMarker, openMyGate, false ) function closeMyGate ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) elseif isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) end end addEventHandler ( "onMarkerLeave", theMarker, closeMyGate, false ) Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 myGate1 = createObject ( 2990, 213.69999694824, 1875.9000244141, 13, 0, 0, 180 ) theMarker = createMarker ( 213.69999694824, 1875.9000244141, 13, "cylinder", 8, 0, 0, 0, 0 ) function openMyGate (player) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) or isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) end end addEventHandler ( "onMarkerHit", theMarker, openMyGate, false ) function closeMyGate ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) or isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 13 ) end end addEventHandler ( "onMarkerLeave", theMarker, closeMyGate, false ) Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 كودي فيه خطأ يا برستيج ؟؟ Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 (edited) لا بس ردي جا وقت ردك والافضل تـختصر الكود Edited February 10, 2013 by Guest Link to comment
iMr.Dawix~# Posted February 10, 2013 Share Posted February 10, 2013 كودي فيه خطأ يا برستيج ؟؟ هو اختصر ذا السطر if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) or isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then انت حاطه if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) elseif isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) then moveObject ( myGate1, 700, 213.69999694824, 1875.9000244141, 8 ) Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 ahhhA الحمد لله, حسب إني جبت العيد Link to comment
iMr.Dawix~# Posted February 10, 2013 Share Posted February 10, 2013 ahhhA الحمد لله, حسب إني جبت العيد Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 طيب حلوو بس ي شباب لو بغيت اخليه لـ ثلاث او اربع قروبات مثاال console , Admin , supermod , moderator اخترا الكلمات ذذ المهم لو بغيت كيف اسويها Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 طيب حلوو بس ي شباب لو بغيت اخليه لـ ثلاث او اربع قروبات مثاال console , Admin , supermod , moderator اخترا الكلمات ذذ المهم لو بغيت كيف اسويها if isObjectInACLGroup("user."..accName, aclGetGroup("Console")) or isObjectInACLGroup("user."..accName, aclGetGroup("Admin")) or isObjectInACLGroup("user."..accName, aclGetGroup("Moderator")) or isObjectInACLGroup("user."..accName, aclGetGroup("supermod")) then Link to comment
Sfa7 Posted February 10, 2013 Author Share Posted February 10, 2013 لووول كفوو عليك ي مبدع بس انا مستغرب من شي انا قبل لاتعطيني الكود ذا سويت نفس الي انت سويته بس معي ماضبط و بـ كودك ضبط كيف مادري ضض Link to comment
iPrestege Posted February 10, 2013 Share Posted February 10, 2013 لووول كفوو عليك ي مبدع بس انا مستغرب من شي انا قبل لاتعطيني الكود ذا سويت نفس الي انت سويته بس معي ماضبط و بـ كودك ضبط كيف مادري ضض حياك يمكن ناقصك مشكلة بـ الحساب او او ..الخ Link to comment
PaiN^ Posted February 10, 2013 Share Posted February 10, 2013 لغة برمجة المودات lua حساسة للغاية, يعني حرف واحد زيد أو ناقص يخرب عليك كل شي عشان كذا لازم تنتبه ومع الوقت بتتعلم + بالتوفيق لك ولي ولجميع المسلمين 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