if(IsPlayerInCheckpoint(Checkpoint1))
{
Checkpoint2 = SetPlayerCheckpoint(playerid, -2078.9246,-167.7930,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint2))
{
Checkpoint3 = SetPlayerCheckpoint(playerid, -2055.8943,-170.0569,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint3))
{
Checkpoint4 = SetPlayerCheckpoint(playerid, -2066.6545,-151.8407,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint4))
{
Checkpoint5 = SetPlayerCheckpoint(playerid, -2054.3389,-141.4836,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint5))
{
Checkpoint6 = SetPlayerCheckpoint(playerid, -2046.6318,-163.2219,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint6))
{
Checkpoint7 = SetPlayerCheckpoint(playerid, -2063.8262,-209.4338,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint7))
{
Checkpoint8 = SetPlayerCheckpoint(playerid, -2086.9343,-180.6604,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint8))
{
Checkpoint9 = SetPlayerCheckpoint(playerid, -2085.8259,-257.1105,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint9))
{
Checkpoint10 = SetPlayerCheckpoint(playerid, -2043.8909,-263.2249,35.3203,05);
}
if(IsPlayerInCheckpoint(Checkpoint10))
{
Checkpoint11 = SetPlayerCheckpoint(playerid, -2023.0986,-134.7571,35.2853,05);
}
if(IsPlayerInCheckpoint(Checkpoint11))
{
CarroLic[playerid] = 1;
SpawnPlayer(playerid);
SendClientMessage(playerid, -1,"Vocк passou no teste ;D ");
}
Checkpoint10 = SetPlayerCheckpoint(playerid, X, Y, Z, 5.0);
new CheckCount[MAX_PLAYERS];
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
if(CheckCount[playerid] == 0) SetPlayerCheckpoint(playerid, -2078.9246,-167.7930,35.3203,05.0);
if(CheckCount[playerid] == 1) SetPlayerCheckpoint(playerid, -2055.8943,-170.0569,35.3203,05.0);
if(CheckCount[playerid] == 2) SetPlayerCheckpoint(playerid, -2066.6545,-151.8407,35.3203,05.0);
if(CheckCount[playerid] == 3) SetPlayerCheckpoint(playerid, -2054.3389,-141.4836,35.3203,05.0);
if(CheckCount[playerid] == 4) SetPlayerCheckpoint(playerid, -2046.6318,-163.2219,35.3203,05.0);
if(CheckCount[playerid] == 5) SetPlayerCheckpoint(playerid, -2063.8262,-209.4338,35.3203,05.0);
if(CheckCount[playerid] == 6) SetPlayerCheckpoint(playerid, -2086.9343,-180.6604,35.3203,05.0);
if(CheckCount[playerid] == 7) SetPlayerCheckpoint(playerid, -2085.8259,-257.1105,35.3203,05.0);
if(CheckCount[playerid] == 8) SetPlayerCheckpoint(playerid, -2043.8909,-263.2249,35.3203,05.0);
if(CheckCount[playerid] == 9) SetPlayerCheckpoint(playerid, -2023.0986,-134.7571,35.2853,05.0);
if(CheckCount[playerid] == 10)
{
CarroLic[playerid] = 1;
SpawnPlayer(playerid);
SendClientMessage(playerid, -1,"Vocк passou no teste ;D ");
}
return CheckCount[playerid]++;
}
O raio de alcance estб pequeno e o certo seria um numero fracionado como 5.0
pawn Код:
|
Ao meu ver um checkpoint com raio de 05 nгo й grande o bastante...
Lipe, podes tambйm usar CheckPointHideForPlayer(playerid, Antigo CP); antes do SetPlayerCheckpoint |
CheckpointHideForPlayer = DisablePlayerCheckpoint(playerid);
|
Carol, nao funfo
Josma, fico maior mais nao aconteceu nada. screen. |