összedobtam 1-et...teszteld le hogy így gondoltad e...( persze saját koordinátákkal )
#include <a_samp>
#define SPEED (2.0)
new object,posid;
new Float:OPos[5][3] =
{
{0.0,0.0,0.0},
{1.0,0.0,0.0},
{2.0,0.0,0.0},
{3.0,0.0,0.0},
{4.0,0.0,0.0}
};
public OnFilterScriptInit()
{
object = CreateObject(1234,OPos[0][0],OPos[0][1],OPos[0][2],0.0,0.0,0.0);
posid++;
MoveObject(object,OPos[posid][0],OPos[posid][1],OPos[posid][2],SPEED);
return 1;
}
public OnObjectMoved(objectid)
{
if(objectid == object)
{
posid++; if(posid == sizeof(Opos)) { posid = 0; }
MoveObject(object,OPos[posid][0],OPos[posid][1],OPos[posid][2],SPEED);
}
return 1;
}