Moving gates help.
#1

Can anybody help me. When I try to open the gate it dosen't open but I get the message saying You have opened Fire Department Bay 1, but it dosen't move. Any help would be much appreciated. Here's the code.

pawn Код:
new firegate;
And under ongamemodeinit

pawn Код:
firegate = CreateDynamicObject(8948, 662.48, 1719.57, 7.95,   0.00, 0.00, 310.79);
pawn Код:
YCMD:fd1o(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, 652.4600, 1710.8800, 7.9500))
    {
        MoveObject(firegate, 652.4600, 1710.8800, 4.1918, 3.0);
        SendClientMessage(playerid, COLOR_PINK, "You have opened Fire Department Bay 1.");
    }
    return 1;
}
Reply
#2

Try using MoveDynamicObject()
Reply
#3

If you create a dynamic object, you need to move a DYNAMIC object. Use MoveDynamicObject.
Reply
#4

Quote:
Originally Posted by JhnzRep
Посмотреть сообщение
Try using MoveDynamicObject()
Nope that didn't really change anything but thanks for trying anyways.

EDIT:Nevermind got them working forgot to restart the server lol Thanks guys +REP For both of ya.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)