14.09.2011, 02:13
When I do /work and start the job, then drive to the delivery spot and do /delivery I want to make it so you cant do /delivery again. Like you got to drive back to work and do /work to start over. But right now, when i go to the delivery spot and do /delivery, I can keep doing it over and over. I want to change that. Here's my current code
What do I need to do to fix it?
pawn Код:
COMMAND:delivery(playerid, cmdtext)
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1829.40002441,-1075.30004883,23.39999962)) return SendClientMessage(playerid, COLOR_RED, "You're not near the delivery spot!");
{
if(simplejobrunning[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "You haven't started the job yet!");
{
GivePlayerMoney(playerid, 7500);
SendClientMessage(playerid, blue, "Congratulations, you have earned 7500");
}
}
return 1;
}