Jump to content

need getteam help


B7raani

Recommended Posts

hey guys i need help in this code when i remove the getteam code the script works well but when i add it wont

this is the code what i want to make gate opening for selected team wish you help

local gate = createObject(980, 1471.5766601563, -2237.9533691406, 13.3828125, 0, 0, 90) 
local marker = createMarker(1471.6849365234, -2236.3430175781, 13.3828125, "cylinder", 5, 255, 255, 255, 0) 
  
function moveGate(psource) 
if getTeamName(getPlayerTeam) == "test" then 
          moveObject(gate, 5000, 1479.1284179688, -2238.0764160156, 13.3828125) 
          setTimer(moveBack, 5000, 1) 
           
          end  
addEventHandler("onMarkerHit", marker, moveGate) 
  
function moveBack() 
         moveObject(gate, 5000, 1471.5766601563, -2237.9533691406, 13.3828125)    
end 

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