Resmurf Posted June 9, 2011 Posted June 9, 2011 <gate x="-302.4921875" y="1507.392578125" z="78.181114196777" rx="0" ry="0" rz="0" x2="-302.4921875" y2="1507.392578125" z2="70.681114196777" rx2="0" ry2="0" rz2="0" objectID="2990" team="CIA" collisionx="-309.9990234375" collisionY="1501.8447265625" collisionZ="77.910583496094" collisionSize="13.5" raising="0" interiorID="0" /> should i put instead of team, aclgroup?
Castillo Posted June 9, 2011 Posted June 9, 2011 Can you post your code? this is only the map file. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Resmurf Posted June 9, 2011 Author Posted June 9, 2011 Can you post your code? this is only the map file. i got that from the gatemaker, code is loong
Castillo Posted June 9, 2011 Posted June 9, 2011 Well, you'll need to edit that script then. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Resmurf Posted June 9, 2011 Author Posted June 9, 2011 Well, you'll need to edit that script then. door = createObject (2990, -9.0146484375, 2066.83203125, 20.4453125, 0, 0, 90) myMarker = createMarker ( -17.3857421875, 2058.5, 19.626815795898, 'corona', 2.0, 0, 120, 225, 150 ) function markerHit (player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then moveObject ( door, 1500, -9.0146484375, 2056.33203125, 20.4453125 ) end end end addEventHandler ( "onMarkerHit", myMarker, markerHit ) function markerLeave (player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then moveObject ( door, 2990, -9.0146484375, 2066.83203125, 20.4453125 ) end end end addEventHandler ( "onMarkerLeave", myMarker, markerLeave ) Ok i did some research and i found this code, i replaced but didnt worked, the marker is on one side on top, cant it be invisible all around the door?
Castillo Posted June 9, 2011 Posted June 9, 2011 door = createObject (2990, -9.0146484375, 2066.83203125, 20.4453125, 0, 0, 90) myMarker = createMarker ( -9.4607706069946, 2067.0712890625, 16.4921875, 'cylinder', 8.0, 0, 120, 225, 0 ) function markerHit (player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then moveObject ( door, 1500, -9.0146484375, 2056.33203125, 20.4453125 ) end end end addEventHandler ( "onMarkerHit", myMarker, markerHit ) function markerLeave (player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then moveObject ( door, 2990, -9.0146484375, 2066.83203125, 20.4453125 ) end end end addEventHandler ( "onMarkerLeave", myMarker, markerLeave ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Resmurf Posted June 9, 2011 Author Posted June 9, 2011 the door is duplicating ... i cant make 2 gates it glitches
Resmurf Posted June 9, 2011 Author Posted June 9, 2011 NVM fixed, i putted each gate on their respective map script folder.
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