02.03.2013, 03:48
When i enter first CP the next cp doesn't appear..
Mind telling me why..maybe i made mistake :/
Mind telling me why..maybe i made mistake :/
PHP Code:
public OnPlayerEnterCheckpoint(playerid)
{
if(CPP[playerid] == 1) // Drivers License Test
{
if(IsPlayerInRangeOfPoint(playerid,5,-2047.0905,-78.3515,34.9040)) // Checkpoint 1
{
SetPlayerCheckpoint(playerid,-2498.0962,-45.2208,25.3028,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,-2498.0962,-45.2208,25.3028)) // Checkpoint 2
{
SetPlayerCheckpoint(playerid,-2708.8442,-57.1813,3.9125,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,-2708.8442,-57.1813,3.9125)) // Checkpoint 3
{
SetPlayerCheckpoint(playerid,-2790.4324,-213.4636,6.7723,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,-2790.4324,-213.4636,6.7723)) // Checkpoint 4
{
SetPlayerCheckpoint(playerid,-2263.2546,-90.4397,34.9045,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,-2263.2546,-90.4397,34.9045)) // Checkpoint 5
{
SetPlayerCheckpoint(playerid,-2152.2449,-73.2008,34.9064,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,-2152.2449,-73.2008,34.9064)) // Checkpoint 6
{
SetPlayerCheckpoint(playerid,-2067.7107,-97.8147,34.9002,5);
}