Jump to content

[Gates For Factions/Teams]


Portside

Recommended Posts

@glowdemon1 Is missing an 'end' to close the setTimer function. And isPlayerInTeam isn't a MTA function, that code must have this function in order to be working.
  
local gate = createObject(objectID,x,y,z) 
if (getPlayerTeam(player) == "theTeam") then 
  moveObject(gate,1000,x,y,z) 
  setTimer(function() moveObject(gate,1000,origX,origY,origZ) end,1000,1) 
end 

Oh, fixed been drifting off my attention lately

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