Checkpoint type.
#1

The first checkpoint gives me the correct checkpoint (air - type 3)
When entering it it gives the rest normal race checkpoint (car race - type 0)

How to make it give me the whole time air cp
pawn Код:
//onplayerspawn
SetPlayerRaceCheckpoint(playerid, 3, gCheckpoints[gCheckpoint[playerid]][0], gCheckpoints[gCheckpoint[playerid]][1], gCheckpoints[gCheckpoint[playerid]][2], gCheckpoints[gCheckpoint[playerid] + 1][0], gCheckpoints[gCheckpoint[playerid] + 1][1], gCheckpoints[gCheckpoint[playerid] + 1][2], 12.0);
 
//onplayerenterracecheckpoint
if(gCheckpoint[playerid] == MAX_CHECKPOINTS - 2) { checkpointtype = 1; }
if(gCheckpoint[playerid] != MAX_CHECKPOINTS - 1)
{
SetPlayerRaceCheckpoint(playerid, checkpointtype, gCheckpoints[gCheckpoint[playerid]][0], gCheckpoints[gCheckpoint[playerid]][1], gCheckpoints[gCheckpoint[playerid]][2], gCheckpoints[gCheckpoint[playerid] + 1][0], gCheckpoints[gCheckpoint[playerid] + 1][1], gCheckpoints[gCheckpoint[playerid] + 1][2], 12.0);
Reply


Messages In This Thread
Checkpoint type. - by Seven. - 25.09.2010, 12:34
Re: Checkpoint type. - by Jochemd - 25.09.2010, 12:47
Re: Checkpoint type. - by Seven. - 25.09.2010, 14:08
Re: Checkpoint type. - by [XST]O_x - 25.09.2010, 14:11
Re: Checkpoint type. - by Rachael - 25.09.2010, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)