02.01.2011, 20:27
Well it seems that the example is some kind of elevator since just the z changes from 500 to 600. Here's a script for only checking the z.
pawn Код:
new Float:z;
GetObjectPos(Object1,z,z,z);
if(z == 500)
{
//Down
}
else
{
//Up
}