Jump to content

استفسار


Recommended Posts

السؤال الثاني

outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true)

اوك مشكور اخوي

يعني لو ابيه يطلع للكل يكون كذا

outputChatBox("الكلام الي تبيه هنا", getRootElement(), 255, 50, 200, true)

واذا خاص يكون كذا

outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true)

عدل كذا التعديل ؟

Link to comment
marker = createMarker(226.4, 1873.5, 15.4, "cylinder", 5, 0, 0, 0, 0) 
  
x1,y1,z1 = 226.4, 1873.5, 19.3 
x2,y2,z2 = 226.4, 1871.5, 19.3 
chinaTgate = createObject(2930, x1, y1, z1) 
isDoorClosed = true 
  
function op() 
    moveObject(chinaTgate, 2000, x2, y2, z2) 
end 
  
function cl() 
    moveObject(chinaTgate, 800, x1, y1, z1) 
end 
  
function checkAdmin(player) 
    if not isElementWithinMarker(player, marker) then return end 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("King-abady")) then 
        if isDoorClosed == true then -- اذا كان الباب مغلق , يفتحه 
            op() 
            isDoorClosed = false -- يغير قيمة الباب إلى مفتوح بعد فتحه 
        else 
            cl() -- يغلق الباب اذا كان العكس , مفتوح 
            isDoorClosed = true -- يغير قيمة الباب إلى مغلق بعد غلقه 
        end 
    end 
end 
  
function onStart() 
    for i,v in ipairs(getElementsByType("player")) do 
        bindKey(v, "X", "down", checkAdmin) 
    end 
end 
addEventHandler("onResourceStart", resourceRoot, onStart) 
  
function onJoin() 
    bindKey(source, "X", "down", checkAdmin) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 

Link to comment
السؤال الثاني

outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true)

اوك مشكور اخوي

يعني لو ابيه يطلع للكل يكون كذا

outputChatBox("الكلام الي تبيه هنا", getRootElement(), 255, 50, 200, true)

واذا خاص يكون كذا

outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true)

عدل كذا التعديل ؟

يب كذا صح

Link to comment
marker = createMarker(226.4, 1873.5, 15.4, "cylinder", 5, 0, 0, 0, 0) 
  
x1,y1,z1 = 226.4, 1873.5, 19.3 
x2,y2,z2 = 226.4, 1871.5, 19.3 
chinaTgate = createObject(2930, x1, y1, z1) 
isDoorClosed = true 
  
function op() 
    moveObject(chinaTgate, 2000, x2, y2, z2) 
end 
  
function cl() 
    moveObject(chinaTgate, 800, x1, y1, z1) 
end 
  
function checkAdmin(player) 
    if not isElementWithinMarker(player, marker) then return end 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("King-abady")) then 
        if isDoorClosed == true then -- اذا كان الباب مغلق , يفتحه 
            op() 
            isDoorClosed = false -- يغير قيمة الباب إلى مفتوح بعد فتحه 
        else 
            cl() -- يغلق الباب اذا كان العكس , مفتوح 
            isDoorClosed = true -- يغير قيمة الباب إلى مغلق بعد غلقه 
        end 
    end 
end 
  
function onStart() 
    for i,v in ipairs(getElementsByType("player")) do 
        bindKey(v, "X", "down", checkAdmin) 
    end 
end 
addEventHandler("onResourceStart", resourceRoot, onStart) 
  
function onJoin() 
    bindKey(source, "X", "down", checkAdmin) 
end 
addEventHandler("onPlayerJoin", root, onJoin) 

مشكور تابل كودك شغال

100%

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