05.11.2010, 16:27
pawn Код:
public Gate()
{
for(new i;i<MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInRangeOfPoint(i,5.0,-505.5048828125, 2593.0556640625, 55.983978271484))State = 1;
else State = 0;
}
if(State)MoveObject(hgate, -505.5048828125, 2593.0556640625, 55.983978271484,3.0);
else MoveObject(hgate, -505.65878295898, 2601.5754394531, 55.89282989502,5.0);
}