16.07.2014, 05:28
Quote:
case CHECKPOINT_RETURNTRUCK: { if(TruckDeliveringTo[vehicleid] != INVALID_BUSINESS_ID) { new iBusiness = TruckDeliveringTo[vehicleid]; new Float: iDist = GetPlayerDistanceFromPoint(playerid, Businesses[iBusiness][bSupplyPos][0], Businesses[iBusiness][bSupplyPos][1], Businesses[iBusiness][bSupplyPos][2]); payment = floatround(iDist / 3000 * payment); if (payment > 25000) payment = 25000; GivePlayerCash(playerid, payment); format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the vehicle.", payment); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string); SetVehicleToRespawn(vehicleid); } } |
