Jump to content

طلب


Recommended Posts

Posted

معي الكود ذا لـ فتح بوابه ابيه م يفتح الا لـ قروب معين

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 
) 

Posted

+ ابي كود اذا ضفته لـ اف 1 او اي لوحة

م تفتح اللوحه في الاحداثيات المعينه في العالم 0

Posted

جرب

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 
     
     
    ) 
      
  

Posted
جرب
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 قروبات وهذي قروبين؟

Posted
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 قروبات وهذي قروبين؟

وضح طلبك

Posted

عندي بوابة ابيها تفتح ل قروبات معينه يعني مب ل اي واحد تفتح له

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

Posted

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

نفس المشكله اخوي حطيته كذا ولا ضبط

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) 

Posted
شكلك نسيت تغييير اسم الداتا

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

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

Posted

ادخل سيرفرك

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

tab خليك دايس علي تاب

يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة

Posted

وش تقصد بالـ " قروب " ؟

تقصد مود العصابات الـ

Group System ?

ولا قصدك قروب في الاسل ؟

Posted
ادخل سيرفرك

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

tab خليك دايس علي تاب

يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة

انا مفهمت وش قصده ؟

Posted
ادخل سيرفرك

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

tab خليك دايس علي تاب

يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة

انا مفهمت وش قصده ؟

انت تبي الباب يفتح لقروب ادمن مثلا ؟

Posted
ادخل سيرفرك

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

tab خليك دايس علي تاب

يبقي هي دي اسم الداتا gang او group لو لقيت كلمة شبيهة لكلمة

انا مفهمت وش قصده ؟

انت تبي الباب يفتح لقروب ادمن مثلا ؟

حطيت ادمن ولا ضبط

Posted

وش تقصدك ب حطيت ادمن ولا ضبط ؟

انت وش تقصد بكلمة قروب ؟

قروب هو الخاص بالوحة العصابات ولا قروب في الاسل جاوبني مشان اعرف اساعدك

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