B7raani Posted September 11, 2012 Share Posted September 11, 2012 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
TAPL Posted September 11, 2012 Share Posted September 11, 2012 omg this so hard <~ if getTeamName(getPlayerTeam(psource)) == "test" then and you forgot one 'end in function moveGate. Link to comment
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