02.07.2016, 12:32
I forgot about that streamer function Vince mentioned so no need of variables to check if the objects are moving.
By the way you move POLICEGATE[0] in all four cases, the last two wouldn't be the other object stored in POLICEGATE[1]?
pawn Код:
if (!IsDynamicObjectMoving(POLICEGATE[0]))
{
if (!DOORMODE) // DOORMODE is false
{
...
}
else // DOORMODE is true
{
...
}
}