Checkpoint system??
#1

pawn Код:
if(strcmp(cmd, "/roadsweep", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        if(PlayerInfo[playerid][pJob] == 17)
        {
                SendClientMessage(playerid, COLOR_GREEN, "You are now sweeping, please drive a sweeper to the first checkpoint");
                new checkpoint1 = 1;
                new checkpoint2 = 0;
                if(checkpoint1 == 0)
                {
                  SetPlayerCheckpoint(playerid, 1724.9197,2280.1985,10.5474, 3.0);
                  OnPlayerEnterCheckpoint(playerid);
                    {
                      checkpoint1 = 0;
                      checkpoint2 = 1;
                      DisablePlayerCheckpoint(playerid);
                      return 1;
                    }
                }
                else if(checkpoint2 == 1)
                {
                  SetPlayerCheckpoint(playerid, 1574.1616,2275.9275,10.4686, 3.0);
                  OnPlayerEnterCheckpoint(playerid);
                  {
                    checkpoint2 = 0;
                        DisablePlayerCheckpoint(playerid);
                        return 1;
                    }
                }
                else
                {
                  SendClientMessage(playerid, COLOR_RED, "You dont have the job/the script is faaaked");
                  return 1;
                }
            }
        }
    }
What's up? Why doesn't it create a checkpoint
Reply


Messages In This Thread
Checkpoint system?? - by javind0 - 10.03.2009, 18:08
Re: Checkpoint system?? - by Sandra18[NL] - 10.03.2009, 18:26
Re: Checkpoint system?? - by Rks25 - 10.03.2009, 18:27
Re: Checkpoint system?? - by javind0 - 10.03.2009, 18:29
Re: Checkpoint system?? - by Rks25 - 10.03.2009, 18:30
Re: Checkpoint system?? - by javind0 - 10.03.2009, 18:33
Re: Checkpoint system?? - by AiVAMAN - 10.03.2009, 18:34
Re: Checkpoint system?? - by javind0 - 10.03.2009, 18:35
Re: Checkpoint system?? - by AiVAMAN - 10.03.2009, 18:38

Forum Jump:


Users browsing this thread: 2 Guest(s)