Gate opens and disapears into ground
#1

The Gate opens and disapears into ground.

Here is my code:

pawn Код:
if (strcmp("/armygateopen", cmdtext, true, 10) == 0)
{
        if(PlayerInfo[playerid][pMember] == 15)
            if(armygateopen == 1) {
                SendClientMessage(playerid,COLOR_GRAD3," The Gate is already open !");
                return 1;
            }
            armygateopen = 1;
            MoveObject(armygate,976, 2720, -2401.3000488281, 12.5, 0, 0, 89.999938964844);
            SetTimer("GateClose", 6000, 0);
            SendClientMessage(playerid, COLOR_GRAD3, "A garage is opened and will close in 6 seconds.");
            return 1;
    }
Reply
#2

I think it's your streamer plugin. Did you updated it to the latest one?
Reply
#3

Make sure your coordinates are correct
Reply
#4

My coords are correct cos I converted then from MTA map editor to pawn. I will try updating my streamer plugin.
Reply
#5

Updating the streamer plugin makes no difference. Whe i use the command the gate goes to the right direction but forward a bit and then down into the ground.
Reply
#6

It goes forward a bit because of wrong gate placement. Do the gates again in MTA. More than probably you saved the wrong MTA map and got the wrong coordinates.

It happened to me once, for some reason MTA decided to save the wrong thing.

You have to check the coordinates from the GateClose timer, that's where the gate's original coordinates should be.
Reply
#7

Tried that, all the cords are deffinetly correct
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)