16.05.2013, 20:18
Hello everyone,
I've made a small trash-cleaner job, the purpose of the job is that you're cleaning trash by going through checkpoints. When you reach the final checkpoint you should have +$50.
But the thing is, when you reach the final checkpoint in reality, you get +$50 and one second later the $50 will go off again.
The code I've used for the final checkpoint:
Does anyone know how I could fix this?
I've made a small trash-cleaner job, the purpose of the job is that you're cleaning trash by going through checkpoints. When you reach the final checkpoint you should have +$50.
But the thing is, when you reach the final checkpoint in reality, you get +$50 and one second later the $50 will go off again.
The code I've used for the final checkpoint:
pawn Код:
if(trashjob[playerid] == 23)
{
DisablePlayerCheckpoint(playerid);
trashjob[playerid] = 0;
GivePlayerMoney(playerid, 50);
SendClientMessage(playerid, COLOR_GREY, "You're done with your mission. You have earned $50!");
}
return 1;
}