SA-MP Forums Archive
Help with roadblock CMD - 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: Help with roadblock CMD (/showthread.php?tid=614458)



Help with roadblock CMD - ShiffeyTheGamer - 08.08.2016

Hello, I am trying to edit this to where it removes the Barricade and put a cone in it's place, I just cant make the cone spawn at my feet when you place it the cone spawns near where the players head it.

Thanks.

Код:
            BarricadeData[i][cadeObject] = CreateDynamicObject(981, fX, fY, fZ, 0.0, 0.0, fA);



Re: Help with roadblock CMD - Freaksken - 08.08.2016

Lower the z-pos.
Код:
BarricadeData[i][cadeObject] = CreateDynamicObject(981, fX, fY, fZ - 0.5, 0.0, 0.0, fA);
Adjust the number in red, till you are satisfied. I'd suggest using Edit(Player)Object and OnPlayerEditObject to find the value in red easily.


Re: Help with roadblock CMD - ShiffeyTheGamer - 09.08.2016

Thanks!