04.11.2013, 15:24
Why would you need IsPlayerInRangeOfPoint()? It's absolute non-sense entering a checkpoint IMPLIES your within range of a point there is no need for that check, it serves absolutely no purpose but to fuck up your code like it has. You only need to keep track of a checkpoint index for example....
pawn Код:
#define FEDEX_STEP_1
CPIndex[playerid] = FEDEX_STEP_1
OnPlayerEnterCheckPoint(playerid)
{
switch(CPIndex[playerid])
{
case FEDEX_STEP_1: { }
case FEDEX_STEP_2: { }
case FEDEX_STEP_3: { }
case FEDEX_STEP_4: { }
case FEDEX_STEP_5: { }
case FEDEX_STEP_6: { }
}
}