03.12.2018, 16:37
You need to put an else between the ifs in OnPlayerEnterCheckpoint.
Otherwise all other checkpoints will activate instantly in order, because JobTruckerCheckpoint has been increased and the if() after that executes.
It should look like this:
Otherwise all other checkpoints will activate instantly in order, because JobTruckerCheckpoint has been increased and the if() after that executes.
It should look like this:
PHP код:
}
if(JobTruckerCheckpoint[playerid] == 1)
{
// code
}
else if(JobTruckerCheckpoint[playerid] == 2)
{
// code
}
else if(JobTruckerCheckpoint[playerid] == 3)
{
// code
}
// etc...