DMV checkpoint problem. -
Basically the checkpoints are fucked and not showing, do I have to remap them?
Код:
if(CP[playerid] == 1) // Drivers License Test
{
if(IsPlayerInRangeOfPoint(playerid,5,962.2538,-1433.5234,14.0537)) // Checkpoint 1
{
SetPlayerCheckpoint(playerid,959.7175,-1403.0309,13.1974,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,959.7175,-1403.0309,13.1974)) // Checkpoint 2
{
SetPlayerCheckpoint(playerid,1060.2373,-1417.8148,13.3739,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,1060.2373,-1417.8148,13.3739)) // Checkpoint 3
{
SetPlayerCheckpoint(playerid,1057.9766,-1452.5909,13.3650,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,1057.9766,-1452.5909,13.3650)) // Checkpoint 4
{
SetPlayerCheckpoint(playerid,1049.3966,-1490.8463,13.3896,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,1049.3966,-1490.8463,13.3896)) // Checkpoint 5
{
SetPlayerCheckpoint(playerid,1021.3513,-1489.2676,13.3762,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,1021.3513,-1489.2676,13.3762)) // Checkpoint 6
{
SetPlayerCheckpoint(playerid,987.5088,-1487.7224,13.3828,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,987.5088,-1487.7224,13.3828)) // Checkpoint 7
{
SetPlayerCheckpoint(playerid,938.7495,-1487.3009,13.3745,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,938.7495,-1487.3009,13.3745)) // Checkpoint 8
{
SetPlayerCheckpoint(playerid,920.8934,-1487.2595,13.3714,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,920.8934,-1487.2595,13.3714)) // Checkpoint 9
{
SetPlayerCheckpoint(playerid,920.9368,-1461.9626,13.3828,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,920.9368,-1461.9626,13.3828)) // Checkpoint 10
{
SetPlayerCheckpoint(playerid,956.5043,-1416.3969,13.5469,5);
}
else if(IsPlayerInRangeOfPoint(playerid,5,956.5043,-1416.3969,13.5469)) // Checkpoint 12
{
new Float:Health;
GetVehicleHealth(GetPlayerVehicleID(playerid), Health);
if(Health > 900)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[playerid][pCarLic] = 1;
LicenseTest[playerid] = 0;
CP[playerid] = 0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Driving Center: You have successfully passed the test and received your license.");
}
Re: DMV checkpoint problem. -
Re: DMV checkpoint problem. -
Re: DMV checkpoint problem. -
Re: DMV checkpoint problem. -
Sorry for not answering earlier, had some stuff to do.
and the code is placed there where all my checkpoints are. But the other checkpoints seem fine, so I assume the problem is in the checkpoints and is easily fixable.