SA-MP Forums Archive
Gate [+Rep for Helping.] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gate [+Rep for Helping.] (/showthread.php?tid=478230)



Gate [+Rep for Helping.] - Sledgehammer - 28.11.2013

Gate's


Hello, I am trying to make a Los Santos Police Department Barrier. I'm experiencing some difficulties.

My LSPD barrier code:

pawn Код:
new LSPDbar;

public OnGameModeInit()
{
    LSPDbar = CreateObject(968,1544.6999500,-1630.8000500,13.3000000,0.0000000,90.0000000,90.0000000);
        return 1;
}

The command
COMMAND:gate(playerid, params[])
{
    //CreateDynamicObject(968,1544.6999500,-1630.8000500,13.3000000,0.0000000,90.0000000,90.0000000);
    MoveObject(LSPDbar,1544.6999500,-1630.8000500,13.3000000, 5.0001, 0, 9, 90);
    return 1;
}
It opens but not how I expected it too. It just moves the object into it's set position instead off animating to its position. E.g- The gate just moves to a different position, I want it to move slowly to that position.

Thanks in advance.



Re: Gate [+Rep for Helping.] - Sledgehammer - 28.11.2013

Bump, please help.


Re: Gate [+Rep for Helping.] - TonyII - 27.05.2014

[REMOVED] sorry for bumping this old thread