27.12.2010, 17:31
Do something like this:
Then onplayerentercheckpoint
pawn Код:
SetPlayerCheckpoint(playerid, rest of code);
Then onplayerentercheckpoint
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 3, checkpoint they entering coords))//entering first checkpoint
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_COLORHERE, "You've passed a checkpoint, speed up and get to the others!");
SetPlayerCheckpoint(playerid, Checkpoint info);
//rest of your codes
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3, checkpoint they entering coords))checkpoint 2
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_COLORHERE, "You've passed a checkpoint, speed up and get to the others!");
SetPlayerCheckpoint(playerid, Checkpoint info);
// Rest of your codes
return 1;
}