SA-MP Forums Archive
OnPLayerEnterRaceCheckpoint - 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: OnPLayerEnterRaceCheckpoint (/showthread.php?tid=455428)



OnPLayerEnterRaceCheckpoint - DJRebis - 01.08.2013

HEllo how to add in here:
Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    if(Ccp[0] == 0)
    SetPlayerRaceCheckpoint(playerid,0,-227.0522,1272.1940,26.6959,-342.3507,1246.0431,30.3559,5);
    if(Ccp1[0] == 0)
    SetPlayerRaceCheckpoint(playerid,0,-342.3507,1246.0431,30.3559,-651.5706,1178.7046,27.9706,5);
	return 1;
}
(not working)
But how to make to each checkpoint this?(like 1st Cp does) ?


Re: OnPLayerEnterRaceCheckpoint - appleomax - 01.08.2013

You want to create a new checkpoint when player enters it?


Re: OnPLayerEnterRaceCheckpoint - park4bmx - 01.08.2013

pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
    if(Ccp[0] == 0){
        SetPlayerRaceCheckpoint(playerid,0,-227.0522,1272.1940,26.6959,-342.3507,1246.0431,30.3559,5);
        Ccp1[0]=1;
    }else if(Ccp1[0] == 1){
        SetPlayerRaceCheckpoint(playerid,0,-342.3507,1246.0431,30.3559,-651.5706,1178.7046,27.9706,5);
        Ccp1[0]=2;
    }
    return 1;
}