Jump to content

x[ تعديل ع كــود ]x تمت الافاده


Sfa7

Recommended Posts

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
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

كودي فيه خطأ يا برستيج ؟؟

هو اختصر ذا السطر

            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
طيب حلوو بس ي شباب لو بغيت اخليه

لـ ثلاث او اربع قروبات

مثاال

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
لووول كفوو عليك ي مبدع

بس انا مستغرب من شي

انا قبل لاتعطيني الكود ذا سويت نفس الي انت سويته

بس معي ماضبط و بـ كودك ضبط كيف مادري ضض

حياك :mrgreen:

يمكن ناقصك مشكلة بـ الحساب او او ..الخ

Link to comment

لغة برمجة المودات

lua

حساسة للغاية, يعني حرف واحد زيد أو ناقص يخرب عليك كل شي

عشان كذا لازم تنتبه ومع الوقت بتتعلم

+

:mrgreen: بالتوفيق لك ولي ولجميع المسلمين

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...