Checkpoint Bug?
#1

When I go into a Near Checkpoint the server Disable it's before Checkpoints. without Going through the Cps.

--------------------------------------------------Images----------------------------------------------------------------------




--------------------------------------------------Codes------------------------------------------------------------------------


Код:
    
public OnPlayerSpawn(playerid)
Checkpoint[0] = CreateDynamicRaceCP(0, 944.1513,-1155.7281,23.2809, -1, -1, -1, 5.0);
    Checkpoint[1] = CreateDynamicRaceCP(0, 966.4982,-1324.6301,13.3578, -1, -1, -1, 5.0);
    Checkpoint[2] = CreateDynamicRaceCP(0, 1122.5632,-1401.0886,13.4141, -1, -1, -1, 5.0);
	Checkpoint[3] = CreateDynamicRaceCP(0, 1357.6471,-1381.0763,13.4983, -1, -1, -1, 5.0);
	Checkpoint[4] = CreateDynamicRaceCP(0, 1453.8029,-1295.4889,13.3828, -1, -1, -1, 5.0);
	Checkpoint[5] = CreateDynamicRaceCP(0, 1393.0303,-1483.6445,8.6719, -1, -1, -1, 10.0);
	Checkpoint[6] = CreateDynamicRaceCP(0, 1622.3057,-1764.6550,3.5812, -1, -1, -1, 10.0);
	Checkpoint[7] = CreateDynamicRaceCP(0, 2167.5674,-2057.6963,7.6081, -1, -1, -1, 10.0);
	Checkpoint[8] = CreateDynamicRaceCP(1, 2189.3970,-2270.1257,13.1596, -1, -1, -1, 10.0);
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
    if(checkpointid == Checkpoint [0])
    {
    DisablePlayerRaceCheckpoint(playerid);
    }
    if(checkpointid == Checkpoint [1])
    {
	DisablePlayerRaceCheckpoint(playerid);
	}
    if(checkpointid == Checkpoint [2])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
    if(checkpointid == Checkpoint [3])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
 	if(checkpointid == Checkpoint [4])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
 	if(checkpointid == Checkpoint [5])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
 	if(checkpointid == Checkpoint [6])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
 	if(checkpointid == Checkpoint [7])
    {
    DisablePlayerRaceCheckpoint(playerid);
	}
 	if(checkpointid == Checkpoint [8])
    {
    GivePlayerMoney(playerid, 5000);
    ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Ended", "Stadium", "Select", "");
    DisablePlayerRaceCheckpoint(playerid);
	}
    return 1;
}
Also I have used <streamer>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)