19.03.2012, 07:14
Hi! ..
please help me
how to make two or more auto moving objects?
I use this script
please help me
how to make two or more auto moving objects?
I use this script
pawn Код:
#include <a_samp>
#define Auto 2
#define RingWall 13607
new ObjectID;
new Deep = 1;
new Float:Sting[Auto][2] = {
{37.78},
{237.43}
};
forward StartMovingTimer();
public StartMovingTimer()
{
MoveObject(ObjectID, -1806.49, 558.77, Sting[Deep][0], 8, 0.00, 0.00, 0.00);
}
public OnFilterScriptInit()
{
ObjectID = CreateObject(RingWall,-1806.49, 558.77, Sting[0][1], 0.00, 0.00, 0.00);
SetTimer("StartMovingTimer",12*1000,0);
return 1;
}
public OnObjectMoved(objectid)
{
if(objectid != ObjectID)
return 0;
Deep++;
if(Deep == Auto)
{
Deep = 0;
SetTimer("StartMovingTimer",12*1000,0);
return 1;
}
if(Deep == 1)
{
SetTimer("StartMovingTimer",12*1000,0);
return 1;
}
return 1;
}