hi i have tried to do this also with this code
but it still spams the money
int onehundredkmreached = 0;
int onehundredkmreachedbefore = 0;
int km = Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000;
if (onehundredkmreachedbefore == 0 && km == 100)
{
onehundredkmreached = 1;
if (onehundredkmreached == 1)
{
onehundredkmreached = 0;
onehundredkmreachedbefore = 1;
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 19155;
}
}
been a few years since ive coded so sorry if there is a stupid error