hey one more question sorry....
if i want to allow the gate to open for only my team, is this correct?
local gate1 = createObject(2930, 1575.2001953125, -1634.7001953125, -87.699996948242, 0,0,0)
setElementInterior (gate1, 6)
function open()
local team = getPlayerTeam(thePlayer)
if (team == "#000000Psycho Ma#990000ns Gang") then
moveObject(gate1, 3000, 1575.2, -1636.1999511719, -87.699996948242, 0,0,0)
end
end
addCommandHandler("gate1", open)
function close()
local team = getPlayerTeam(thePlayer)
if (team == "#000000Psycho Ma#990000ns Gang") then
moveObject(cell8, 3000, 1575.2001953125, -1634.7001953125, -87.699996948242, 0,0,0)
end
end
addCommandHandler("gate1c", close)
addCommandHandler("PMGCcloseall", close)