OnPLayerEnterRaceCheckpoint
#1

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) ?
Reply
#2

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)