16.01.2013, 22:45
Same thing happens with regular cp
The second racecp does not get destroyed, it just "respawns" where it was
pawn Код:
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)
{
if(checkpointid == buscp1[playerid])
{
DestroyDynamicRaceCP(buscp1[playerid]);
buscp2[playerid] = CreateDynamicRaceCP(0, 393.8065,-1770.1382,5.3697, 850.7170,-1329.2406,13.4902, 2, -1, -1, playerid, 1000000);
}
else if(checkpointid == buscp2[playerid])
{
DestroyDynamicRaceCP(buscp2[playerid]);
buscp3[playerid] = CreateDynamicRaceCP(0, 850.7170,-1329.2406,13.4902, 1206.4131,-1328.0035,13.3984, 2, -1, -1, playerid, 1000000);
}
return 1;
}