25.09.2010, 12:34
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
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);