Jump to content

group help


Recommended Posts

Hello Mta i downloaded this script and how to add it open for only one group in dayz gamemode the group system is of dayz 0.9.6a

Code:

local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move() 
    if state == 0 then  
        moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
        state = state + 1 
    elseif state == 1 then  
        moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
        state = state - 1 
    end 
end 
 addCommandHandler("gate", move ) 

Link to comment

Hello Mta i downloaded this script and how to add it open for only one group in dayz gamemode the group system is of dayz 0.9.6a

Code:

local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move() 
    if state == 0 then  
        moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
        state = state + 1 
    elseif state == 1 then  
        moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
        state = state - 1 
    end 
end 
 addCommandHandler("gate", move ) 

Link to comment
  
local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move(player) 
    if getElementData(player, "Group") == "HERE NAME GROUP" then 
        if state == 0 then 
            moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
            state = state + 1 
        elseif state == 1 then 
            moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
            state = state - 1 
        end 
    end 
end 
addCommandHandler("gate", move ) 
  

Link to comment
  
local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move(player) 
    if getElementData(player, "Group") == "HERE NAME GROUP" then 
        if state == 0 then 
            moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
            state = state + 1 
        elseif state == 1 then 
            moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
            state = state - 1 
        end 
    end 
end 
addCommandHandler("gate", move ) 
  

Link to comment
  
local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move(player) 
    if getElementData(player, "Group") == "HERE NAME GROUP" then 
        if state == 0 then 
            moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
            state = state + 1 
        elseif state == 1 then 
            moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
            state = state - 1 
        end 
    end 
end 
addCommandHandler("gate", move ) 
  

Thanks

Link to comment
  
local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) 
local state = 0 
  
function move(player) 
    if getElementData(player, "Group") == "HERE NAME GROUP" then 
        if state == 0 then 
            moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) 
            state = state + 1 
        elseif state == 1 then 
            moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) 
            state = state - 1 
        end 
    end 
end 
addCommandHandler("gate", move ) 
  

Thanks

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