w7sH Posted May 23, 2016 Posted May 23, 2016 معي الكود ذا لـ فتح بوابه ابيه م يفتح الا لـ قروب معين Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) addEventHandler('onMarkerHit',markerDoor3, function ( hitElement ) moveObject(Door3,1000,2447,-1658.9000244141,20.5) end ) addEventHandler('onMarkerLeave',markerDoor3, function ( hitElement ) moveObject(Door3,1000,2447,-1658.9000244141,15.10000038147) end )
w7sH Posted May 23, 2016 Author Posted May 23, 2016 + ابي كود اذا ضفته لـ اف 1 او اي لوحة م تفتح اللوحه في الاحداثيات المعينه في العالم 0
Ahmed Ly Posted May 23, 2016 Posted May 23, 2016 جرب Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) addEventHandler('onMarkerHit',markerDoor3, function ( hitPlayer ) if hitPlayer == localPlayer and getElementData( hitPlayer, 'gang' ) == 'ARMY' then moveObject(Door3,1000,2447,-1658.9000244141,20.5) outputChatBox("--",hitPlayer,0,255,0) else outputChatBox("--",hitPlayer,0,255,0) end end )
w7sH Posted May 23, 2016 Author Posted May 23, 2016 جرب Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) addEventHandler('onMarkerHit',markerDoor3, function ( hitPlayer ) if hitPlayer == localPlayer and getElementData( hitPlayer, 'gang' ) == 'ARMY' then moveObject(Door3,1000,2447,-1658.9000244141,20.5) outputChatBox("--",hitPlayer,0,255,0) else outputChatBox("--",hitPlayer,0,255,0) end end ) ابيه يفتح بزر تاب + عندي 10 قروبات وهذي قروبين؟
YourMind Posted May 23, 2016 Posted May 23, 2016 Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if getElementData(plr,'gang') == 'ARMY' then if z == 15.10000038147 then moveObject(Door3,1000,2447,-1658.9000244141,20.5) else moveObject (Door3,1000,22447,-1658.9000244141,15.10000038147) end else outputChatBox("Only army",plr,0,255,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (k,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind) جرب + عندي 10 قروبات وهذي قروبين؟ وضح طلبك
w7sH Posted May 24, 2016 Author Posted May 24, 2016 عندي بوابة ابيها تفتح ل قروبات معينه يعني مب ل اي واحد تفتح له
YourMind Posted May 25, 2016 Posted May 25, 2016 Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) aGroups = { "GroupName", "GroupName", "GroupName", "GroupName", } function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"gang") == tostring(k) then return true end end return false end function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if z == 15.10000038147 then moveObject(Door3,1000,2447,-1658.9000244141,20.5) else moveObject (Door3,1000,22447,-1658.9000244141,15.10000038147) end else outputChatBox("Access denied",plr,255,0,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (k,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind)
YourMind Posted May 25, 2016 Posted May 25, 2016 شكلك نسيت تغييير اسم الداتا "gang" بأسم داتا الجروب عندك
YourMind Posted May 25, 2016 Posted May 25, 2016 Door3 = createObject(980,2447,-1658.9000244141,15.10000038147,0,0,90) markerDoor3 = createMarker(2447.3000488281,-1659,12.300000190735,'cylinder',7,0,0,0,0) aGroups = { "GroupName", "GroupName", "ok", "GroupName", } function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"gang") == tostring(k) then return true end end return false end function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if tonumber(z) <= 15.10000038147 then moveObject(Door3,1000,2447,-1658.9000244141,20) else moveObject (Door3,1000,2447,-1658.9000244141,15.10000038147) end else outputChatBox("Access denied",plr,255,0,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (v,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind)
w7sH Posted May 26, 2016 Author Posted May 26, 2016 نفس المشكله اخوي حطيته كذا ولا ضبط Door3 = createObject(980,-2396.599609375,-6944.599609375,9.5,0,0,90) markerDoor3 = createMarker(-2396.599609375,-6944.599609375,9.5,'cylinder',7,0,0,0,0 aGroups = { "GroupName", "GroupName", "Admin", "GroupName", } function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"gang") == tostring(k) then return true end end return false end function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if tonumber(z) <= 15.10000038147 then moveObject(Door3,1000,-2396.599609375,-6944.599609375,19.5) else moveObject (Door3,1000,-2396.599609375,-6944.599609375,19.5) end else outputChatBox("Access denied",plr,255,0,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (v,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind)
YourMind Posted May 26, 2016 Posted May 26, 2016 شكلك نسيت تغييير اسم الداتا"gang" بأسم داتا الجروب عندك function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"[color=#FF0000]gang[/color]") == tostring(k) then -- اسم الداتا ؟ return true end end return false end @_@ function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if tonumber(z) <= 15.10000038147 then [color=#FF0000]moveObject(Door3,1000,-2396.599609375,-6944.599609375,19.5)[/color] else [color=#FF0000]moveObject(Door3,1000,-2396.599609375,-6944.599609375,19.5)[/color] end else outputChatBox("Access denied",plr,255,0,0) end end end Door3 = createObject(980,-2396.599609375,-6944.599609375,9.5,0,0,90) markerDoor3 = createMarker(-2396.599609375,-6944.599609375,9.5,'cylinder',7,0,0,0,0) aGroups = { "lol", "Army", -- حط اسماء الجروبات اللي انت عايزها عادي "Admin", "MG", } function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"gang") == tostring(k) then -- ابوس ايدك ماتنساش تغيير اسم الداتا return true end end return false end function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if tonumber(z) <= 19.5 then moveObject(Door3,1000,-2396.599609375,-6944.599609375,24.5) else moveObject(Door3,1000,-2396.599609375,-6944.599609375,19.5) end else outputChatBox("Access denied",plr,255,0,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (v,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind)
Me[Z]oO Posted May 26, 2016 Posted May 26, 2016 Door3 = createObject(980,-2396.599609375,-6944.599609375,9.5,0,0,90) markerDoor3 = createMarker(-2396.599609375,-6944.599609375,9.5,'cylinder',7,0,0,0,0 aGroups = { "GroupName", "GroupName", "Admin", "GroupName", } function check(plr) for i,k in ipairs (aGroups) do if getElementData (plr,"Group") == tostring(k) then return true end end return false end function dtc(plr) if isElementWithinMarker (plr,markerDoor3) then local x,y,z = getElementPosition (Door3) if check(plr) then if tonumber(z) <= 15.10000038147 then moveObject(Door3,1000,-2396.599609375,-6944.599609375,19.5) else moveObject (Door3,1000,-2396.599609375,-6944.599609375,19.5) end else outputChatBox("Access denied",plr,255,0,0) end end end function Bind() if eventName == "onResourceStart" then for i,v in ipairs (getElementsByType("player")) do bindKey (v,"tab","down",dtc) end else bindKey (source,"tab","down",dtc) end end addEventHandler ("onResourceStart",resourceRoot,Bind) addEventHandler ("onPlayerJoin",root,Bind)
YourMind Posted May 26, 2016 Posted May 26, 2016 ادخل سيرفرك شغل مود الجروبات tab خليك دايس علي تاب يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة
w7sH Posted May 26, 2016 Author Posted May 26, 2016 انا حاطه في سيرفري الهجوله م عندي مود جروبات ولا ششي
#Soking Posted May 27, 2016 Posted May 27, 2016 وش تقصد بالـ " قروب " ؟ تقصد مود العصابات الـ Group System ? ولا قصدك قروب في الاسل ؟
w7sH Posted May 27, 2016 Author Posted May 27, 2016 ادخل سيرفركشغل مود الجروبات tab خليك دايس علي تاب يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة انا مفهمت وش قصده ؟
#|_oskar_|# Posted May 27, 2016 Posted May 27, 2016 ادخل سيرفركشغل مود الجروبات tab خليك دايس علي تاب يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة انا مفهمت وش قصده ؟ انت تبي الباب يفتح لقروب ادمن مثلا ؟
w7sH Posted May 28, 2016 Author Posted May 28, 2016 ادخل سيرفركشغل مود الجروبات tab خليك دايس علي تاب يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة انا مفهمت وش قصده ؟ انت تبي الباب يفتح لقروب ادمن مثلا ؟ حطيت ادمن ولا ضبط
#Soking Posted May 28, 2016 Posted May 28, 2016 وش تقصدك ب حطيت ادمن ولا ضبط ؟ انت وش تقصد بكلمة قروب ؟ قروب هو الخاص بالوحة العصابات ولا قروب في الاسل جاوبني مشان اعرف اساعدك
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