OnPlayerEnterCheckpoint... Just takes as 1 checkpoint
#1

Hey, I got this:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(Trash1)
    {
      Trash2 = SetPlayerCheckpoint(playerid,242.6356,-89.5200,1.5781,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash2)
    {
      Trash3 = SetPlayerCheckpoint(playerid,273.9276,-62.1197,1.5781,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash3)
    {
      Trash4 = SetPlayerCheckpoint(playerid,290.1207,-61.3583,1.5830,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash4)
    {
      Trash5 = SetPlayerCheckpoint(playerid,322.7198,-88.9753,1.5771,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash5)
    {
      Trash6 = SetPlayerCheckpoint(playerid,322.5689,-124.2119,1.6048,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash6)
    {
      Trash7 = SetPlayerCheckpoint(playerid,754.1161,-540.2138,16.3459,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash7)
    {
      Trash8 = SetPlayerCheckpoint(playerid,768.1290,-540.5839,16.3748,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash8)
    {
      Trash9 = SetPlayerCheckpoint(playerid,749.3525,-520.6990,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash9)
    {
      Trash10 = SetPlayerCheckpoint(playerid,766.8730,-520.2621,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash10)
    {
      Trash11 = SetPlayerCheckpoint(playerid,789.7007,-519.8392,16.3620,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash11)
    {
      Trash12 = SetPlayerCheckpoint(playerid,822.1182,-520.1325,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash12)
    {
      Trash13 = SetPlayerCheckpoint(playerid,731.9541,-585.7091,16.3578,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash13)
    {
      Trash14 = SetPlayerCheckpoint(playerid,665.1755,-622.8512,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash14)
    {
      Trash15 = SetPlayerCheckpoint(playerid,668.1423,-623.2781,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
  if(Trash15)
    {
      Trash16 = SetPlayerCheckpoint(playerid,657.8483,-648.5065,16.3359,3);
      SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
    }
    if(Trash16)
    {
      Trash17 = SetPlayerCheckpoint(playerid,35.1380,-284.3482,2.1188,7);
        GotAll[playerid] = 1;
      SendClientMessage(playerid,COLOR_YELLOW,"Good, you got all. Now go back to the industries and drop it off");
    }
    if(Trash17)
    {
        GotAll[playerid] = 0;
      SendClientMessage(playerid,COLOR_YELLOW,"Nice, you got them all. You got $7000 for doing it.");
      GivePlayerMoney(playerid,7000);
      DisablePlayerCheckpoint(playerid);
    }
    return 1;
}

When i enter the first checkpoint... It sends 16
Код:
SendClientMessage(playerid,COLOR_YELLOW,"Good, now pickup next");
And then the last one... How to put like a ID on the checkpoint?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)