How do i check if the player finished first?
#2

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


Messages In This Thread
How do i check if the player finished first? - by dan40o - 14.01.2015, 16:20
Re: How do i check if the player finished first? - by erminpr0 - 14.01.2015, 18:21
Re: How do i check if the player finished first? - by dan40o - 14.01.2015, 21:23
Re: How do i check if the player finished first? - by erminpr0 - 15.01.2015, 12:10
Re: How do i check if the player finished first? - by erminpr0 - 15.01.2015, 12:18
Re: How do i check if the player finished first? - by dan40o - 15.01.2015, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)