SA-MP Forums Archive
Checkpoint problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checkpoint problem (/showthread.php?tid=125393)



Checkpoint problem - [Bm]rap45 - 03.02.2010

Ok so i can get in the checkpoint and go into an interior but... when i'm in the interior the other checkpoint ( the exit checkpoint) doesn't appear! D: and my script doesn't show any errors so idk D:

My defines
pawn Код:
#define house    0
#define exit     1
My gamemodeinit
pawn Код:
CreateCheckpoint(0, house, 2513.6108,-1650.3096,14.3557, 1.0);
    CreateCheckpoint(7, exit, 225.8443,1021.4703,1084.0177, 1.0);
    SetCheckpointInterior(house, 0);
    SetCheckpointInterior(exit, 7);
    StartCheckpointSeeking();
verifycheckpoint thingy
pawn Код:
public OnPlayerEnterCheckpoint(playerid){
    VerifyCheckpoint(playerid);
    return 1;
}
Checkpointeneterthingy
pawn Код:
public OnCheckpointEnter(playerid, checkpointid){
    switch(checkpointid)
    {

      case house: // The checkpoint ID we specified when we created the checkpoint
      {
            SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
        SetPlayerInterior(playerid,7);
      }
      case exit:
      {
        SetPlayerPos(playerid,2498.4055,-1644.3215,13.7826);
        SetPlayerInterior(playerid,0);
        }
    }
    return 1;
}



Re: Checkpoint problem - [Bm]rap45 - 04.02.2010

Any help? please


Re: Checkpoint problem - mansonh - 04.02.2010

Looks like your using some checkpoint streamer, I would ask on the post for that streamer.


Re: Checkpoint problem - Blantas - 04.02.2010

Try to do this:

Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{

  case house: // The checkpoint ID we specified when we created the checkpoint
  {
    SetPlayerPos(playerid,225.4502,1024.7152,1084.0078);
    SetPlayerInterior(playerid,7);
    DisablePlayerCheckpoint(playerid);
  }
  case exit:
  {
    SetPlayerPos(playerid,2498.4055,-1644.3215,13.7826);
    SetPlayerInterior(playerid,0);
  }
}
return 1;
}



Re: Checkpoint problem - [Bm]rap45 - 05.02.2010

No luck