03.04.2013, 22:14
You haven't told it where to move the gates too..
Currently they are the same, thus won't move.
pawn Код:
if(IsACop(playerid) && IsPlayerInRangeOfPoint(playerid, 6, 1544.7363,-1627.0232,13.3672)) // PD: Rampa
{
if(!NYPDBarrierStatus)
{
NYPDBarrierStatus = 1;
MoveDynamicObject(NYPDBarrier, OPEN GATE CORDS HERE);
}
else
{
NYPDBarrierStatus = 0;
MoveDynamicObject(NYPDBarrier, CLOSED GATE CORDS HERE);
}
return 1;
}