30.04.2012, 00:10
(
Последний раз редактировалось nickdodd25; 30.04.2012 в 18:26.
Причина: missed something
)
Easy fix, you dont have the ship route points to two. so make
and change this line
Change that to 6 cause on your route points you have x, y, z, rx, ry, rz
then to stop the ship at route 1 put this under OnObjectMoved
I have the same exact sript i modifyed that came with the 3d server package exept mine has 56 route points lol
pawn Код:
#define NUM_SHIP_ROUTE_POINTS 25
//change it to how many route points you have so 2
#define NUM_SHIP_ROUTE_POINTS 2
pawn Код:
new Float:gShipRoutePoints[NUM_SHIP_ROUTE_POINTS][2] = {
//change that too
new Float:gShipRoutePoints[NUM_SHIP_ROUTE_POINTS][6] = {
then to stop the ship at route 1 put this under OnObjectMoved
pawn Код:
if(gShipCurrentPoint == 1) {
SendClientMessageToAll(0xFFFF0000, "Ferry ship as stopped!!");
SendClientMessageToAll(0xFFFF0000, "****Estimated departure in 1 minute****");
StopObject(gMainShipObjectId);//forgot to add this or your ship wont stop
SetTimer("StartMovingTimer",60*1000,0); // pause at route 1 for 1 minute
return 1;
}