nony Posted November 23, 2012 Posted November 23, 2012 السؤال الثاني outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true)
кιηg-αвα∂у Posted November 23, 2012 Author Posted November 23, 2012 السؤال الثانيoutputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true) اوك مشكور اخوي يعني لو ابيه يطلع للكل يكون كذا outputChatBox("الكلام الي تبيه هنا", getRootElement(), 255, 50, 200, true) واذا خاص يكون كذا outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true) عدل كذا التعديل ؟
TAPL Posted November 24, 2012 Posted November 24, 2012 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)
nony Posted November 24, 2012 Posted November 24, 2012 السؤال الثانيoutputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true) اوك مشكور اخوي يعني لو ابيه يطلع للكل يكون كذا outputChatBox("الكلام الي تبيه هنا", getRootElement(), 255, 50, 200, true) واذا خاص يكون كذا outputChatBox("الكلام الي تبيه هنا", source, 255, 50, 200, true) عدل كذا التعديل ؟ يب كذا صح
кιηg-αвα∂у Posted November 25, 2012 Author Posted November 25, 2012 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%
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