SA-MP Forums Archive
Checkpoint minimission - 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)
+--- Thread: Checkpoint minimission (/showthread.php?tid=286320)



Checkpoint minimission - Azzeto - 28.09.2011

I'v tryed to create a mini-mission So for example if a player was in range of a point they would type /startcopmission1 it would create a checkpoint where the player would have to go and pick up the weapons, then after a player entered that checkpoint another checkpoint would get created to the drop off point, I just am SOO confused with checkpoints, iv tryed the wiki, searched, everything so if some one could explain to me how I could do that, thanks!


Re: Checkpoint minimission - Yamoo - 28.09.2011

So you mean; As soon as you enter the checkpoint, another checkpoint would come up automatically?

If so it'll look something like this.

pawn Код:
if(Minimission[playerid] == 1)
{
        if(PlayerToPoint(5.0,playerid,1971.5177,-1930.0858,13.3958))
    {
        Minimission[playerid] = 2;
        SetPlayerCheckpoint(playerid, 1958.7378,-2078.0024,13.0875, 5.0);
        }



Re: Checkpoint minimission - Azzeto - 28.09.2011

Could you explain that? Id have to create a variable, Like CP = Minimission ? and what does minimission[playerid] == 1) mean? and Minimission[playerid] = 2; mean? I know the rest