Gate won't close
#1

So I'm getting a new moving gate.
It works fine when I /open it but when I'm gonna /close it, it doesn't close..

pawn Код:
CMD:close(playerid,params[])
{
    MoveObject(Gate,2423.5000000,-2094.7998047,13.3000002,1);
    SendClientMessage(playerid, 0xFF0000, "{FFFF00}The gate has closed!");
    return 1;
}

CMD:open(playerid,params[])
{
    MoveObject(Gate,2423.5000000,-2094.8000488,13.3000002,1);
    SendClientMessage(playerid, 0xFF0000, "{FFFF00}The gate has opened! (/close)");
    return 1;
}
Reply
#2

You're opening the gate making the gate go down but you're making it close at the same cords

you've gotta change the close cords to the cords which it should close at.
Reply
#3

Oh ..I added wrong coordinates at the closing cmd, thanks.
Reply
#4

^Fixed.
Reply
#5

*FIXED
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)