14.09.2011, 02:18
pawn Код:
new
Delivery[MAX_PLAYERS]
;
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(Delivery[playerid] == 1) return SendClientMessage(playerid, -1, "You're making a delivery!");
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");
}
}
Delivery[playerid] = 1;
return 1;
}
When he finished delivering the seven delivery to 0
pawn Код:
Delivery[playerid] = 0;