02.10.2014, 18:15
pawn Код:
new InMiddle[MAX_PLAYERS];
pawn Код:
InMiddle[playerid] = 0;
pawn Код:
CMD:loadtruck(playerid, params[])
{
if(InMiddle[playerid] == 0) else SendClientMessage(playerid, -1, "You are already in truck job");
{
if(IsPlayerInRangeOfPoint(playerid, 10, 866.5, -1212, 16.9))
{
InMiddle = 1;
PlayerStat[playerid][Removalist] = 1;
SetPlayerCheckpoint(playerid, 850.6198, -1483.6526, 13.3298, 3.0);
SendClientMessage(playerid, ORANGE, "Take the furniture to the businesses to receive your payment. A location has been marked on your map!");
SendClientMessage(playerid, ORANGE, "Reverse the truck into the trailer behind it to connect the load of furtniture!");
}
else
{
SendClientMessage(playerid, GREY, "You are not near the delivery loading area!");
}
}
return 1;
}