joedajoester Posted October 4, 2012 Share Posted October 4, 2012 Hi all, for some scripts i was wondering how would i make it so that some settings of the script (object movement speed for example) can be edited in the admin panel by clicking settings. All i know so far is that part of it has to do with the meta, you have to add stuff to the end of it. What i do not understand is, where in the script does it say that this option can be edited by the settings? Thanks for the help guys glad to be back to mta. I guess heres an example script i want to be able to edit the movement speed through admin panel resource settings. col = createColTube (-1868.6999511719, -3104.1999511719, 53.900001525879, 10, 3) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () othergate1 = createObject ( 2951, -1868.5, -3104.1999511719, 54.700000762939, 0, 0, 318.5) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then moveObject (othergate1, 2500, -1868.5, -3104.1999511719, 56.900001525879) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then moveObject (othergate1, 2500,-1868.5, -3104.1999511719, 54.700000762939) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. end end end addEventHandler ( "onColShapeLeave", col, Close ) Link to comment
Jaysds1 Posted October 5, 2012 Share Posted October 5, 2012 use these: set get More Info: Settings system 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