04.10.2015, 04:04
Como o 99fe3rnando disse, eu faria usando a public OnPlayerEnterRaceCheckpoint.
Faria desta maneira:
Faria desta maneira:
PHP код:
new PlayerInCheck[MAX_PLAYERS];
if(dialogid==xXx)
{
if(response)
{
SetPlayerRaceCheckpoint(playerid, 0, -2042.54, -72.55, 34.89, -2042.54,-72.55,34.89, 3);//Primeiro CP apontado para o segundo CP
PlayerInCheck[playerid] = 1;
}
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(PlayerInCheck[playerid] == 1)
{
//Funзгo para o prуx. checkpoint.
PlayerInCheck[playerid]++; //Prуx. Checkpoint.
}
if(PlayerInCheck[playerid] == 2)
{
//Funзгo para o prуx. Checkpoint.
PlayerInCheck[playerid]++; //Prуx. Checkpoint.
}
return 1;
}