Automatic Gates To Team
#4

pawn Код:
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++)
  if (gTeam[i] == TEAM_COP)
  {
    if(PlayerToPoint(10.0, i, 1937.5629882813, 2152.091796875, 11.5703125) && OpenGate == 0)
    {
      MoveObject(c_gate, 1937.5629882813, 2152.091796875, -11.5703125, 1);
      OpenGate = 1;
    }
    else if(!PlayerToPoint(10.0, i, 1937.5629882813, 2152.091796875, 11.5703125) && OpenGate == 1)
    {
      MoveObject(c_gate, 1937.5629882813, 2152.091796875, 11.5703125, 1);
      OpenGate = 0;
    }
  }
}
Reply


Messages In This Thread
Automatic Gates To Team - by SlashPT - 04.10.2009, 18:36
Re: Automatic Gates To Team - by Correlli - 04.10.2009, 18:37
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:40
Re: Automatic Gates To Team - by [CK]Steel - 04.10.2009, 18:41
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:42
Re: Automatic Gates To Team - by DizeL-ZR- - 04.10.2009, 18:45
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:49
Re: Automatic Gates To Team - by Correlli - 04.10.2009, 18:51
Re: Automatic Gates To Team - by SlashPT - 04.10.2009, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)