LeooN15 Posted November 7, 2011 Share Posted November 7, 2011 Hi, i made another script, is a gate at LSPD i want that when an admin get close to the gate this will open but the gate move to other site please help me:) LSgate2 = createObject ( 976, 1545.0999755859, -1630.5, 12.39999961853, 0, 0, 90) col = createColRectangle(1542.9000244141, -1636.9000244141, 10.60000038147, 20) addEventHandler ( "onColShapeHit", col, function(hitElement) if (getElementType (hitElement) == "player") then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then moveObject (LSgate2, 2500, 1545, -1623.5, 12.39999961853, 0, 0, 90) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. end end end) addEventHandler ( "onColShapeLeave", col, function(hitElement) if (getElementType (hitElement) == "player") then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup ( "Admin" ) ) then moveObject (LSgate2, 2500,1545.0999755859, -1623.5, 12.39999961853, 0, 0, 90) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. end end end) Link to comment
FatalTerror Posted November 7, 2011 Share Posted November 7, 2011 I think you did a double post and you are in the wrong category Link to comment
LeooN15 Posted November 7, 2011 Author Share Posted November 7, 2011 No it is not a double post is another gate you can check it if you want:) Anyone know the error? 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