Jump to content

Help mta bug i think


manve1

Recommended Posts

i made a script on usernames that a gate moves after the certain guy went into COL shape, but every time i leave the col shape i get the objects different rotation...

allObjects = 
{ createObject( 974, 2925.599609375, -1328.69921875, 8.25, 0, 0, 279.99755859375), 
createObject( 974, 2928.8000488281, -1328.1999511719, 14.5, 0, 0, 10.49755859375), 
createObject( 974, 2926.3000488281, -1328.5999755859, 8.3000001907349, 0, 0, 279.99755859375), 
createObject( 974, 2925.5, -1328.6999511719, 14.5, 0, 0, 279.99755859375), 
createObject( 974, 2928.8999023438, -1328.1999511719, 8.3000001907349, 0, 0, 10.497436523438), 
createObject( 974, 2926.3999023438, -1328.5999755859, 14.5, 0, 0, 279.99755859375), 
createObject( 974, 2928.1999511719, -1324.9000244141, 14.5, 0, 0, 10.497436523438), 
createObject( 974, 2928.3000488281, -1324.9000244141, 8.3000001907349, 0, 0, 10.497436523438), 
createObject( 974, 2929.5, -1331.4000244141, 8.3000001907349, 0, 0, 10.497436523438), 
createObject( 974, 2929.3999023438, -1331.4000244141, 14.5, 0, 0, 10.497436523438), 
createObject( 974, 2934.6000976563, -1327, 8.3000001907349, 0, 0, 279.99755859375), 
createObject( 974, 2934.5, -1327, 14.5, 0, 0, 280.49755859375), 
createObject( 974, 2928.8999023438, -1328.6999511719, 17.200000762939, 90, 0, 10.497436523438), 
createObject( 974, 2931.3000488281, -1328.1999511719, 17.200000762939, 90, 0, 10.491943359375), 
createObject( 974, 2931.1000976563, -1327, 17.200000762939, 90, 0, 10.491943359375), 
createObject( 974, 2928.6999511719, -1327.5, 17.200000762939, 90, 0, 10.491943359375) 
 } 
  
gate1 = createObject( 2909, 2933.8000488281, -1330.5, 12.800000190735, 90, 90, 13.25) 
gate1_ = createColCuboid( 2933.0871582031, -1332.4675292969, 9.582202911377, 2, 3.5, 2 ) 
setElementData ( gate1_, "owner", "[ZM]Enjoy" ) 
    addEventHandler ( "onColShapeHit", gate1_, 
        function ( h ) 
            if ( getElementType ( h ) == "player" ) then 
                if ( getElementData ( source, "owner" ) == getPlayerName ( h ) ) then 
                    moveObject( gate1, 100, 100, 2933.8000488281, -1330.5, 3 ) 
                end 
            end 
        end 
    ) 
    addEventHandler ( "onColShapeLeave", gate1_, 
        function ( h ) 
            if ( getElementType ( h ) == "player" ) then 
                if ( getElementData ( source, "owner" ) == getPlayerName ( h ) ) then 
                        moveObject ( gate1, 100, 2933.8000488281, -1330.5, 12.800000190735 ) 
                    end 
                end 
            end 
    )  

2images to proof:

http://i.imgur.com/9GBND.png

http://i.imgur.com/4OP6H.png

i will like every help from everyone for this

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