[Solved half] moving gate
#6

on top of the script:
pawn Код:
new gate;
OnFilterScriptInit / OnGameModeInit:
pawn Код:
gate = CreateObject(986,-302.628,1507.450,76.070,0.0,0.0,0.0);
On the bottom of your script:
pawn Код:
forward CheckGate();
public CheckGate()
{
  for(new i = 0; i < GetMaxPlayers(); i++) {
    if(!IsPlayerConnected(i)) continue;
    if(IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 0) {
      MoveObject(gate,-293.828,1507.450,76.070,10);
      OpenGate[i] = 1;
    }
    else if(!IsPlayerInRangeOfPoint(i, 10.0, -302.628,1507.450,76.070) && OpenGate[i] == 1) {
      MoveObject(gate,-302.628,1507.450,76.070,10);
      OpenGate[i] = 0;
    }
  }
Reply


Messages In This Thread
[Solved half] moving gate - by dclaw - 16.01.2010, 08:25
Re: [help] moving gate - by VonLeeuwen - 16.01.2010, 08:31
Re: [help] moving gate - by KnooL - 16.01.2010, 08:33
Re: [help] moving gate - by dclaw - 16.01.2010, 08:43
Re: [help] moving gate - by dclaw - 16.01.2010, 08:45
Re: [help] moving gate - by KnooL - 16.01.2010, 08:54
Re: [help] moving gate - by dclaw - 16.01.2010, 08:56
Re: [help] moving gate - by KnooL - 16.01.2010, 08:58
Re: [help] moving gate - by dclaw - 16.01.2010, 08:59
Re: [help] moving gate - by KnooL - 16.01.2010, 09:00

Forum Jump:


Users browsing this thread: 3 Guest(s)