flirtyboy23 Posted January 19, 2011 Share Posted January 19, 2011 OMG IVE tryed many resources n they all fail so im want to try it manually how to make an Movable gate that opens on teams ? Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 Look at the links below. https://wiki.multitheftauto.com/wiki/GetPlayerTeam https://wiki.multitheftauto.com/wiki/GetTeamName https://wiki.multitheftauto.com/wiki/CreateObject https://wiki.multitheftauto.com/wiki/MoveObject Link to comment
flirtyboy23 Posted January 19, 2011 Author Share Posted January 19, 2011 Is it possible to make this Noob Friendly I mean like brand new to lua friendly plz Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 (edited) gate = createObject(ID, X, Y, Z) function moveGate(player) team = getPlayerTeam(player) if team then teamName = getTeamName(team) if teamName == "BLABLA" then moveObject(gate, 5000, newX, newY, newZ) end end end addCommandHandler("move",moveGate) Edited January 19, 2011 by Guest Link to comment
flirtyboy23 Posted January 19, 2011 Author Share Posted January 19, 2011 now what aboyut the team part ? Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 check the post, i've edited it. Link to comment
flirtyboy23 Posted January 19, 2011 Author Share Posted January 19, 2011 (edited) it didnt move ? gate = createObject(971, 96.57, 1919.40, 20.75585, 0, 0, 270) function moveGate(player) team = getPlayerTeam(player) if team then teamName = getTeamName(team) if teamName == "Military" then moveObject(gate, 5000, 97.01, 1915.55, 18.17) end end end addCommandHandler("move",moveGate) Edited January 19, 2011 by Guest Link to comment
Castillo Posted January 19, 2011 Share Posted January 19, 2011 huh? post what you have done. Link to comment
flirtyboy23 Posted January 19, 2011 Author Share Posted January 19, 2011 NVM u Genious your Great Link to comment
Castillo Posted January 20, 2011 Share Posted January 20, 2011 Use the "EDIT" button next time 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