Quote:
Originally Posted by erminpr0
pawn Код:
new RaceFirstPosition = INVALID_PLAYER_ID;
// When player enters final checkpoint if(RaceFirstPosition == INVALID_PLAYER_ID) { RaceFirstPosition = playerid; SendClientMessage(playerid, color, "RACE | You are the 1st."); ... }
And later you reset, when player gets award or when you start new race.
pawn Код:
RaceFirstPosition = INVALID_PLAYER_ID;
|
Can you explain a bit? How to make it under checkpoint?
Код:
else if(nascarcheckpoints[playerid] == 13)
{
nascarcheckpoints[playerid] = 0;
new cash= random(250000);
new fe[128];
format(fe, sizeof(fe), "+%d$", cash);
SendClientMessage(playerid, YELLOW, fe);
}