Race control point count
#2

New global variable
pawn Код:
new RaceCPsLeft[MAX_PLAYERS];
When they start the race.
pawn Код:
RaceCPsLeft[playerid] = 50;
when they enter a RaceCheckPoint
pawn Код:
new string[25];
RaceCPsLeft[playerid]--;
format(string,sizeof(string),"Checkpoints left: %i.",RaceCPsLeft[playerid]);
GameTextForPlayer(playerid,string,3000,3);
Reply


Messages In This Thread
Race control point count - by RK-2fast4u - 08.10.2013, 12:34
Re: Race control point count - by EiresJason - 08.10.2013, 12:50
Re: Race control point count - by RK-2fast4u - 08.10.2013, 13:05
Re: Race control point count - by EiresJason - 08.10.2013, 13:12
Re: Race control point count - by RK-2fast4u - 08.10.2013, 13:20
Re: Race control point count - by EiresJason - 08.10.2013, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)